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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
url = uri("https://jitpack.io")
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
url = uri("https://maven.google.com")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// Android stub library
|
|
|
|
implementation(fileTree("lib/"))
|
|
|
|
|
|
|
|
|
|
|
|
// Android JAR libs
|
|
|
|
// compileOnly( fileTree(dir: new File(rootProject.rootDir, "libs/other"), include: "*.jar")
|
|
|
|
|
|
|
|
// JSON
|
|
|
|
compileOnly( "com.google.code.gson:gson:2.8.6")
|
|
|
|
|
|
|
|
// Javassist
|
|
|
|
compileOnly( "org.javassist:javassist:3.27.0-GA")
|
|
|
|
|
|
|
|
// XML
|
|
|
|
compileOnly( group= "xmlpull", name= "xmlpull", version= "1.1.3.1")
|
|
|
|
|
|
|
|
// 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
|
|
|
|
compileOnly("com.android.tools.build:apksig:4.2.0-alpha13")
|
|
|
|
|
|
|
|
// AndroidX annotations
|
|
|
|
compileOnly( "androidx.annotation:annotation:1.2.0-alpha01")
|
|
|
|
|
2021-03-27 21:45:22 +01:00
|
|
|
// substitute for duktape-android
|
|
|
|
// 'org.mozilla:rhino' includes some code that we don't need so use 'org.mozilla:rhino-runtime' instead
|
|
|
|
implementation("org.mozilla:rhino-runtime:1.7.13")
|
|
|
|
// 'org.mozilla:rhino-engine' provides the same interface as 'javax.script' a.k.a Nashorn
|
|
|
|
implementation("org.mozilla:rhino-engine:1.7.13")
|
2021-05-30 01:35:56 +02:00
|
|
|
|
|
|
|
// Kotlin wrapper around Java Preferences, makes certain things easier
|
|
|
|
val multiplatformSettingsVersion = "0.7.7"
|
|
|
|
implementation("com.russhwolf:multiplatform-settings-jvm:$multiplatformSettingsVersion")
|
|
|
|
implementation("com.russhwolf:multiplatform-settings-serialization-jvm:$multiplatformSettingsVersion")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
|
|
kotlinOptions.freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
|
|
|
|
}
|
2021-01-02 02:27:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
//def fatJarTask = tasks.getByPath(':AndroidCompat:JVMPatch:fatJar')
|
|
|
|
//
|
|
|
|
//// Copy JVM core patches
|
|
|
|
//task copyJVMPatches(type: Copy) {
|
|
|
|
// from fatJarTask.outputs.files
|
|
|
|
// into 'src/main/resources/patches'
|
|
|
|
//}
|
|
|
|
//
|
|
|
|
//compileOnly(Java.dependsOn gradle.includedBuild('dex2jar').task(':dex-translator:assemble')
|
|
|
|
//compileOnly(Java.dependsOn copyJVMPatches
|
|
|
|
//copyJVMPatches.dependsOn fatJarTask
|
|
|
|
//
|