Skip to content

Commit

Permalink
Upgrade stately to Kotlin 1.3.40 + AGP to 3.4.1 (#11)
Browse files Browse the repository at this point in the history
* Upgrade to 1.3.40 (#3)
  • Loading branch information
benasher44 authored and kpgalligan committed Jun 20, 2019
1 parent 2fd4a84 commit e1fe999
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
6 changes: 4 additions & 2 deletions Sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ kotlin {
// This preset is for iPhone emulator
// Switch here to presets.iosArm64 (or iosArm32) to build library for iPhone device
fromPreset(presets.iosX64, 'ios') {
compilations.main.outputKinds('FRAMEWORK')
binaries {
framework()
}
}
}
sourceSets {
Expand Down Expand Up @@ -111,4 +113,4 @@ task copyFramework {
include 'app.framework.dSYM'
}
}
}
}
2 changes: 1 addition & 1 deletion Sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
classpath 'com.android.tools.build:gradle:3.4.1'
}
}
repositories {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

kotlin.code.style=official

KOTLIN_VERSION=1.3.30
KOTLIN_VERSION=1.3.40

GROUP=co.touchlab
VERSION_NAME=0.7.2
Expand All @@ -36,4 +36,4 @@ POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=kpgalligan
POM_DEVELOPER_NAME=Kevin Galligan
POM_DEVELOPER_ORG=Kevin Galligan
POM_DEVELOPER_URL=https://touchlab.co/
POM_DEVELOPER_URL=https://touchlab.co/
14 changes: 8 additions & 6 deletions memtest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ kotlin {
// For MacOS, should be changed to e.g. macosX64
// For Windows, should be changed to e.g. mingwX64
macosX64("macos") {
compilations.main {
binaries {
// Comment to generate Kotlin/Native library (KLIB) instead of executable file:
outputKinds("executable")
// Change to specify fully qualified name of your application's entry point:
entryPoint 'sample.main'
executable([RELEASE, DEBUG]) {
compilation = compilations.main
// Change to specify fully qualified name of your application's entry point:
entryPoint 'sample.main'
}
}
}

Expand All @@ -32,7 +34,7 @@ kotlin {

task runProgram {
def buildType = 'DEBUG' // Change to 'DEBUG' to run application with debug symbols.
dependsOn kotlin.targets.macos.compilations.main.linkTaskName('EXECUTABLE', buildType)
dependsOn kotlin.targets.macos.binaries.getExecutable(buildType).linkTask
doLast {
def programFile = kotlin.targets.macos.compilations.main.getBinary('EXECUTABLE', buildType)
exec {
Expand All @@ -45,4 +47,4 @@ task runProgram {
String OS_NAME = System.getProperty("os.name").toLowerCase(Locale.ENGLISH);
if(OS_NAME.contains("mac") || OS_NAME.contains("darwin")) {
// tasks.build.dependsOn runProgram
}
}

0 comments on commit e1fe999

Please sign in to comment.