-
Notifications
You must be signed in to change notification settings - Fork 219
/
build.gradle
129 lines (108 loc) · 3.95 KB
/
build.gradle
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
ext {
versionNumber = computeVersionNumber()
versionName = rootProject.version
keystorePath = properties.keystorePath
storePassword = properties.storePassword
keyAlias = properties.keyAlias
keyPassword = properties.keyPassword
println "HyperTrack Live version is " + versionName
}
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, "seconds"
}
android {
compileSdkVersion 33
defaultConfig {
applicationId "com.hypertrack.live"
minSdkVersion 23
targetSdkVersion 33
versionCode project.ext.versionNumber
versionName project.ext.versionName
testInstrumentationRunner
multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
signingConfigs {
if (project.ext.keystorePath != null) {
debug {
storeFile file(project.ext.keystorePath)
storePassword project.ext.storePassword
keyAlias project.ext.keyAlias
keyPassword project.ext.keyPassword
}
release {
storeFile file(project.ext.keystorePath)
storePassword project.ext.storePassword
keyAlias project.ext.keyAlias
keyPassword project.ext.keyPassword
}
}
}
buildTypes {
debug {
minifyEnabled false
debuggable true
if (signingConfigs.hasProperty("debug")) {
signingConfig signingConfigs.debug
}
}
release {
minifyEnabled false
shrinkResources false
debuggable false
if (signingConfigs.hasProperty("release")) {
signingConfig signingConfigs.release
}
}
}
}
repositories {
mavenLocal()
maven {
name 'hypertrack'
url 'http://m2.hypertrack.com'
}
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.libraries.places:places:2.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.android.material:material:1.2.1'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.2.14'
implementation 'com.amazonaws:aws-android-sdk-mobile-client:2.16.7'
implementation 'com.hypertrack:hypertrack:6.4.0'
implementation 'com.hypertrack:hypertrack-views:0.8.6'
implementation 'com.hypertrack:maps-google:0.1.8'
implementation project(':hypertrack-backend')
implementation 'com.airbnb.android:lottie:3.1.0'
// branch.io
implementation 'io.branch.sdk.android:library:5.0.1'
implementation 'com.google.firebase:firebase-appindexing:19.1.0'
implementation 'com.google.android.gms:play-services-ads-identifier:17.0.0'
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.robolectric:robolectric:4.4'
testImplementation 'org.mockito:mockito-core:2.28.2'
testImplementation 'org.threeten:threetenbp:1.4.0'
androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
def computeVersionNumber() {
def versionString = rootProject.version
def match = (versionString =~ /(\d+)\.(\d+)\.(\d+)/)
if (match) {
def versionMajor = match.group(1).toInteger()
def versionMinor = match.group(2).toInteger()
def versionPatch = match.group(3).toInteger()
return versionMajor * 1000000 + versionMinor * 10000 + versionPatch
}
throw new Exception("Could not read version.properties!")
}