40 lines
1.4 KiB
Groovy
40 lines
1.4 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
namespace "net.moasdawiki.app"
|
|
compileSdk 33 // 33 = Android 13
|
|
defaultConfig {
|
|
applicationId "net.moasdawiki.app"
|
|
minSdk 28 // 28 = Android 9
|
|
targetSdk 33 // should be same as compileSdk
|
|
versionCode 36
|
|
versionName "3.6.1.0"
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
buildFeatures {
|
|
buildConfig true
|
|
}
|
|
lint {
|
|
// Workaround for KotlinNullPointerException in :app:lintVitalAnalyzeRelease
|
|
checkReleaseBuilds false
|
|
}
|
|
base {
|
|
archivesName = "moasdawiki-" + defaultConfig.versionName + "-" + defaultConfig.versionCode
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'net.moasdawiki:moasdawiki-server:3.6.1'
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
// androidx.appcompat:appcompat:1.5.0 causes dependency conflict, waiting for 1.6
|
|
// https://stackoverflow.com/questions/73406969/duplicate-class-androidx-lifecycle-viewmodellazy-found-in-modules-lifecycle-view
|
|
implementation 'androidx.appcompat:appcompat:1.4.2'
|
|
// androidx.preference 1.2.0 causes dependency conflict
|
|
implementation 'androidx.preference:preference:1.1.1'
|
|
compileOnly 'org.jetbrains:annotations:24.0.1'
|
|
testImplementation 'org.testng:testng:7.7.1'
|
|
}
|