75 lines
2.3 KiB
Groovy
75 lines
2.3 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply plugin: 'dagger.hilt.android.plugin'
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
|
|
defaultConfig {
|
|
// versionCode and versionName must be hardcoded to support F-droid
|
|
versionCode 702011
|
|
versionName '7.2.1'
|
|
applicationId 'dev.lucasnlm.antimine'
|
|
minSdkVersion 23
|
|
targetSdkVersion 29
|
|
vectorDrawables.useSupportLibrary true
|
|
resConfigs 'ar', 'en', 'cs', 'de', 'el', 'es', 'fr', 'ja', 'pt', 'ru', 'tr', 'uk', 'vi', 'zh'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
targetCompatibility 1.8
|
|
sourceCompatibility 1.8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
}
|
|
}
|
|
|
|
kapt {
|
|
correctErrorTypes true
|
|
}
|
|
|
|
hilt {
|
|
enableTransformForLocalTests true
|
|
}
|
|
|
|
dependencies {
|
|
// Dependencies must be hardcoded to support F-droid
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation project(':common')
|
|
|
|
// Constraint
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'androidx.activity:activity-ktx:1.1.0'
|
|
|
|
// Wear OS
|
|
implementation 'androidx.wear:wear:1.0.0'
|
|
implementation 'com.google.android.gms:play-services-wearable:17.0.0'
|
|
implementation 'com.google.android.support:wearable:2.5.0'
|
|
compileOnly 'com.google.android.wearable:wearable:2.5.0'
|
|
|
|
// Dagger
|
|
implementation 'com.google.dagger:hilt-android:2.28.1-alpha'
|
|
implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha01'
|
|
kapt 'com.google.dagger:hilt-android-compiler:2.28.1-alpha'
|
|
testImplementation 'com.google.dagger:hilt-android-testing:2.28.1-alpha'
|
|
kaptTest 'com.google.dagger:hilt-android-compiler:2.28.1-alpha'
|
|
|
|
// Kotlin
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.5'
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.5'
|
|
}
|