55 lines
2 KiB
Groovy
55 lines
2 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
android {
|
|
publishNonDefault true
|
|
compileSdkVersion buildVersion.targetSdk
|
|
|
|
defaultConfig {
|
|
// versionCode and versionName must be hardcoded to support F-droid
|
|
versionCode 603011
|
|
versionName '6.3.1'
|
|
applicationId buildVersion.applicationId
|
|
minSdkVersion buildVersion.wearMinAppSdk
|
|
targetSdkVersion buildVersion.targetSdk
|
|
vectorDrawables.useSupportLibrary true
|
|
resConfigs 'en', 'cs', 'de', 'es', 'fr', 'pt', 'ru', 'tr', 'vi', 'uk', 'zh'
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation project(':common')
|
|
|
|
// Constraint
|
|
implementation "androidx.appcompat:appcompat:$versions.appcompat"
|
|
implementation "androidx.constraintlayout:constraintlayout:$versions.constraintlayout"
|
|
implementation "androidx.recyclerview:recyclerview:$versions.recyclerview"
|
|
implementation "androidx.legacy:legacy-support-v4:$versions.legacySupport"
|
|
|
|
|
|
// Wear OS
|
|
implementation "androidx.wear:wear:$versions.wear"
|
|
implementation "com.google.android.gms:play-services-wearable:$versions.playWearable"
|
|
implementation "com.google.android.support:wearable:$versions.supportWearable"
|
|
compileOnly "com.google.android.wearable:wearable:$versions.supportWearable"
|
|
|
|
// Dagger
|
|
api "com.google.dagger:dagger-android:$versions.dagger"
|
|
api "com.google.dagger:dagger-android-support:$versions.dagger"
|
|
kapt "com.google.dagger:dagger-android-processor:$versions.dagger"
|
|
kapt "com.google.dagger:dagger-compiler:$versions.dagger"
|
|
|
|
// Kotlin
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$versions.coroutines"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
|
|
}
|