60 lines
1.9 KiB
Groovy
60 lines
1.9 KiB
Groovy
plugins {
|
|
id 'com.android.library'
|
|
id 'kotlin-android'
|
|
id 'kotlin-android-extensions'
|
|
}
|
|
|
|
if (System.getenv('IS_GOOGLE_BUILD')) {
|
|
apply plugin: 'com.google.gms.google-services'
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 30
|
|
|
|
defaultConfig {
|
|
versionCode 806021
|
|
versionName '8.6.2'
|
|
minSdkVersion 21
|
|
targetSdkVersion 30
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
|
freeCompilerArgs += [
|
|
'-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi',
|
|
'-Xuse-experimental=kotlinx.coroutines.FlowPreview']
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Dependencies must be hardcoded to support F-droid
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation project(':external')
|
|
|
|
// Google
|
|
implementation 'com.android.billingclient:billing-ktx:3.0.2'
|
|
implementation 'com.google.android.gms:play-services-instantapps:17.0.0'
|
|
implementation 'com.google.android.gms:play-services-games:21.0.0'
|
|
implementation 'com.google.android.gms:play-services-auth:19.0.0'
|
|
implementation 'com.google.android.gms:play-services-ads:19.6.0'
|
|
implementation 'com.google.android.play:core-ktx:1.8.1'
|
|
|
|
// Firebase
|
|
implementation 'com.google.firebase:firebase-analytics-ktx:18.0.0'
|
|
implementation 'com.google.firebase:firebase-crashlytics:17.3.0'
|
|
implementation 'com.google.firebase:firebase-firestore-ktx:22.0.1'
|
|
implementation 'com.google.firebase:firebase-config-ktx:20.0.2'
|
|
|
|
// Kotlin
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10'
|
|
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'
|
|
}
|