For example. A brand new Tab-Nav sample from New Project
Previously, when I can use the following build.gradle
to compile the main.kt
and finally replace the main entry of an Obj-C project.
buildscript {
repositories {
mavenCentral()
maven {
url "https://dl.bintray.com/jetbrains/kotlin-native-dependencies"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-native-gradle-plugin:0.3.4"
}
}
apply plugin: "konan"
konan.targets = ["iphone"]
konanArtifacts {
program('app')
}
But when building from kotlin code to a framework
, how to write the build.gradle
file?
Pretty new to gradle building system. I want to setup a project like this:
-Xcode Project
-Kotlin native shared logic
-Kotlin native repo
-build.gradle
-build folder
Such that, I can use KN repo
to catch up with the latest update, and compile my KN shared logic
to iOS framework with the build.gradle
setting using the KN repo
code base, the outcome will be saved to the build folder
.
How to write the build.gradle
to make it work? Thanks.