56 строки
1.7 KiB
Groovy
56 строки
1.7 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
compileSdkVersion 33
|
|
|
|
defaultConfig {
|
|
applicationId 'org.traccar.manager'
|
|
minSdkVersion 19
|
|
targetSdkVersion 33
|
|
versionCode 33
|
|
versionName '3.2'
|
|
multiDexEnabled true
|
|
}
|
|
namespace 'org.traccar.manager'
|
|
|
|
flavorDimensions 'default'
|
|
productFlavors {
|
|
regular {
|
|
isDefault = true
|
|
}
|
|
google
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.google.android.material:material:1.6.1'
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
|
|
implementation 'androidx.preference:preference-ktx:1.2.0'
|
|
implementation 'androidx.core:core-ktx:1.8.0'
|
|
implementation 'androidx.biometric:biometric-ktx:1.2.0-alpha05'
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
googleImplementation platform('com.google.firebase:firebase-bom:29.0.3')
|
|
googleImplementation 'com.google.firebase:firebase-core'
|
|
googleImplementation 'com.google.firebase:firebase-analytics'
|
|
googleImplementation 'com.google.firebase:firebase-crashlytics'
|
|
googleImplementation 'com.google.firebase:firebase-messaging'
|
|
}
|
|
|
|
if (getGradle().getStartParameter().getTaskRequests().toString().contains('Google')) {
|
|
apply plugin: 'com.google.gms.google-services'
|
|
apply plugin: 'com.google.firebase.crashlytics'
|
|
|
|
task copyJson(type: Copy) {
|
|
from '../../environment/google-services'
|
|
into '.'
|
|
include 'traccar-manager-android.json'
|
|
rename('traccar-manager-android.json', 'google-services.json')
|
|
}
|
|
|
|
afterEvaluate {
|
|
preBuild.dependsOn copyJson
|
|
}
|
|
}
|