@@ -33,22 +33,12 @@ android {
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
}
}
compileOptions {
sourceCompatibility = Java.version
targetCompatibility = Java.version
}
kotlinOptions {
jvmTarget = Java.version.toString()
}
lint {
disable("InvalidPackage") // tox4j is still not really allowed on Android. :/
// The macOS domain:lint task fails due to not guarding AudioRecord with permission checks in this module.
// This doesn't fail locally, and use of the audio code is guarded in the UI in the aTox module.
isAbortOnError = false
}
sourceSets["main"].java.srcDir("src/main/kotlin")
sourceSets["test"].java.srcDir("src/test/kotlin")
sourceSets["androidTest"].java.srcDir("src/androidTest/kotlin")
packagingOptions {
// Work around scala-compiler and scala-library (via tox4j) trying to place files in the
// same place.