47d7e8ef09
* Ease migration to Gradle Kotlin DSL by changing quotes, function calls and plugin definitions * Migrate build scripts to Gradle Kotlin DSL
39 lines
No EOL
704 B
Text
39 lines
No EOL
704 B
Text
import com.android.build.gradle.internal.tasks.factory.dependsOn
|
|
import com.unciv.build.BuildConfig
|
|
|
|
sourceSets {
|
|
main {
|
|
java.srcDir("src/")
|
|
}
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
tasks {
|
|
compileJava {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
compileTestJava {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
}
|
|
|
|
extra.set("mainClassName", "IOSLauncher")
|
|
|
|
tasks {
|
|
launchIPhoneSimulator.dependsOn(build)
|
|
launchIPadSimulator.dependsOn(build)
|
|
launchIOSDevice.dependsOn(build)
|
|
createIPA.dependsOn(build)
|
|
}
|
|
|
|
robovm {
|
|
archs = "thumbv7:arm64"
|
|
}
|
|
|
|
eclipse.project {
|
|
name = "${BuildConfig.appName}-ios"
|
|
natures("org.robovm.eclipse.RoboVMNature")
|
|
} |