blob: 22545fb4383b2bb1bbe351fb2888c00f2f746865 (
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
43
44
45
46
47
48
49
50
51
|
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
defaultConfig {
applicationId 'org.traccar.manager'
minSdkVersion 19
targetSdkVersion 30
versionCode 23
versionName '2.12'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
flavorDimensions 'default'
productFlavors {
regular {
isDefault = true
}
google
}
}
dependencies {
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
googleImplementation 'com.google.firebase:firebase-core:19.0.0'
googleImplementation 'com.google.firebase:firebase-analytics:19.0.0'
googleImplementation 'com.google.firebase:firebase-messaging:22.0.0'
googleImplementation 'com.google.firebase:firebase-crashlytics:18.0.1'
}
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
}
}
|