2021-01-02 02:27:20 +01:00
|
|
|
plugins {
|
|
|
|
application
|
2021-05-30 01:35:56 +02:00
|
|
|
kotlin("plugin.serialization")
|
2021-01-02 02:27:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Android stub library
|
|
|
|
implementation(fileTree("lib/"))
|
|
|
|
|
|
|
|
// XML
|
2022-04-02 16:03:58 +02:00
|
|
|
compileOnly("xmlpull:xmlpull:1.1.3.4a")
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
// Config API
|
2021-03-25 22:37:00 +01:00
|
|
|
implementation(project(":AndroidCompat:Config"))
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
// APK sig verifier
|
2022-04-02 16:03:58 +02:00
|
|
|
compileOnly("com.android.tools.build:apksig:7.1.2")
|
2021-01-02 02:27:20 +01:00
|
|
|
|
|
|
|
// AndroidX annotations
|
2022-04-02 16:03:58 +02:00
|
|
|
compileOnly("androidx.annotation:annotation:1.3.0")
|
2021-01-02 02:27:20 +01:00
|
|
|
|
2021-03-27 21:45:22 +01:00
|
|
|
// substitute for duktape-android
|
2022-04-02 16:03:58 +02:00
|
|
|
implementation("org.mozilla:rhino-runtime:1.7.14") // slimmer version of 'org.mozilla:rhino'
|
|
|
|
implementation("org.mozilla:rhino-engine:1.7.14") // provides the same interface as 'javax.script' a.k.a Nashorn
|
2021-05-30 01:35:56 +02:00
|
|
|
|
|
|
|
// Kotlin wrapper around Java Preferences, makes certain things easier
|
2022-04-02 16:03:58 +02:00
|
|
|
val multiplatformSettingsVersion = "0.8.1"
|
2021-05-30 01:35:56 +02:00
|
|
|
implementation("com.russhwolf:multiplatform-settings-jvm:$multiplatformSettingsVersion")
|
|
|
|
implementation("com.russhwolf:multiplatform-settings-serialization-jvm:$multiplatformSettingsVersion")
|
2021-08-22 02:32:34 +02:00
|
|
|
|
|
|
|
// Android version of SimpleDateFormat
|
2022-04-02 16:03:58 +02:00
|
|
|
implementation("com.ibm.icu:icu4j:70.1")
|
2021-05-30 01:35:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
|
|
|
|
}
|
2021-01-02 02:27:20 +01:00
|
|
|
}
|