blob: 0425ceafaa1d34220bd6d102d0deb71c7b58a089 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion '28.0.2'
defaultConfig {
applicationId 'org.traccar.manager'
minSdkVersion 19
targetSdkVersion 28
versionCode 17
versionName '2.7'
}
flavorDimensions 'default'
productFlavors {
regular
google
}
}
dependencies {
implementation 'com.android.support:design:28.0.0-rc02'
googleImplementation 'com.google.firebase:firebase-core:16.0.1'
googleImplementation 'com.crashlytics.sdk.android:crashlytics:2.9.4'
}
if (getGradle().getStartParameter().getTaskRequests().toString().contains('Google')) {
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'
task copyJson(type: Copy) {
from '../../traccar-shared/google-services'
into '.'
include 'traccar-manager-android.json'
rename('traccar-manager-android.json', 'google-services.json')
}
afterEvaluate {
preBuild.dependsOn copyJson
}
}
|