Skip to content

Instantly share code, notes, and snippets.

@Albert-Gao
Created January 31, 2018 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Albert-Gao/10c3d8c801b5d303ca81202847cc1976 to your computer and use it in GitHub Desktop.
Save Albert-Gao/10c3d8c801b5d303ca81202847cc1976 to your computer and use it in GitHub Desktop.
buildscript {
ext.kotlin_native_version = '0.5'
ext.kotlin_version = '1.2.21'
repositories {
mavenCentral()
maven {
url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:$kotlin_native_version"
}
}
group 'nz.salect'
version '0.1'
apply plugin: 'kotlin'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib"
}
apply plugin: "konan"
konan.targets = ["iphone", "iphone_sim"]
konanArtifacts {
framework('nativeLibs')
}
kotlin {
experimental {
coroutines "enable"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment