-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
181 lines (151 loc) · 6.1 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
apply plugin: 'com.android.application'
android {
compileSdk 33
// buildToolsVersion '31.0.0'
def versionPropsFile = file('version.properties')
def vName = ""
def vCode = 0
if (versionPropsFile.canRead()) {
Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropsFile))
vCode = versionProps['VERSION_CODE'].toInteger()
def major = versionProps['MAJOR'].toInteger()
def minor = versionProps['MINOR'].toInteger()
def revision = versionProps['REVISION'].toInteger()
def build = versionProps['BUILD'].toInteger() + 1
versionProps['BUILD'] = build.toString()
versionProps.store(versionPropsFile.newWriter(), null)
vName = String.format("%d.%d.%d-%d", major, minor, revision, build)
}
defaultConfig {
applicationId "com.usda.fmsc.twotrails"
minSdkVersion 29
targetSdkVersion 33
versionCode vCode
versionName vName
multiDexEnabled true
resValue "string", "arcgis_runtime_license", property("TwoTrails.ArcGIS.RuntimeLicenseKey") //100.7.0
resValue "string", "dev_email_addr", property("TwoTrails.Dev.EmailAddress")
}
signingConfigs {
release_config {
keyAlias 'ReleaseKey'
keyPassword project.property("TwoTrails.release_pass")
storeFile file(project.property("TwoTrails.release_keystore"))
storePassword project.property("TwoTrails.release_pass")
}
debug_config {
keyAlias 'DebugKey'
keyPassword project.property("TwoTrails.debug_pass")
storeFile file(project.property("TwoTrails.debug_keystore"))
storePassword project.property("TwoTrails.debug_pass")
}
}
buildTypes {
release {
shrinkResources true
minifyEnabled true
proguardFiles 'proguard-rules.pro'
signingConfig signingConfigs.release_config
resValue "string", "maps_api_key", project.property("TwoTrails.release_maps_key")
ndk {
debugSymbolLevel 'SYMBOL_TABLE'
abiFilters "arm64-v8a"
// abiFilters "armeabi-v7a", "arm64-v8a"
}
}
preview {
shrinkResources true
minifyEnabled true
proguardFiles 'proguard-rules.pro'
signingConfig signingConfigs.release_config
resValue "string", "maps_api_key", project.property("TwoTrails.release_maps_key")
versionNameSuffix "-preview"
ndk {
abiFilters "arm64-v8a"
}
}
debug {
minifyEnabled false
signingConfig signingConfigs.debug_config
resValue "string", "maps_api_key", project.property("TwoTrails.debug_maps_key")
versionNameSuffix "-debug"
ndk {
abiFilters "arm64-v8a"
// abiFilters "armeabi-v7a", "arm64-v8a", "x86"
}
}
}
flavorDimensions "version"
productFlavors {
latest {
dimension "version"
}
legacy {
dimension "version"
minSdkVersion 28
targetSdkVersion 33
versionNameSuffix "-legacy"
ndk {
abiFilters "arm64-v8a", "armeabi-v7a"
}
}
}
//Set Filename
applicationVariants.all { variant ->
variant.outputs.all { output ->
output.outputFileName = "TwoTrailsApp-${variant.versionCode}-${variant.versionName}-${variant.getFlavorName()}.apk"
}
}
// compileOptions {
// sourceCompatibility JavaVersion.VERSION_1_8
// targetCompatibility JavaVersion.VERSION_1_8
// }
buildFeatures {
dataBinding true
viewBinding true
}
packagingOptions {
resources {
excludes += ['META-INF/DEPENDENCIES.txt', 'META-INF/LICENSE.txt', 'META-INF/NOTICE.txt', 'META-INF/NOTICE', 'META-INF/LICENSE', 'META-INF/DEPENDENCIES', 'META-INF/notice.txt', 'META-INF/license.txt', 'META-INF/dependencies.txt', 'META-INF/LGPL2.1']
}
}
useLibrary 'org.apache.http.legacy'
namespace 'com.usda.fmsc.twotrails'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':AndroidEx')
implementation project(':GeoSpatial')
implementation project(':Utilities')
implementation 'androidx.recyclerview:recyclerview:1.3.1'
implementation 'androidx.mediarouter:mediarouter:1.4.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.3.6'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.preference:preference:1.2.1'
// implementation 'androidx.navigation:navigation-fragment:2.5.3'
// implementation 'androidx.navigation:navigation-ui:2.5.3'
implementation 'com.google.android.gms:play-services-maps:18.1.0'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'com.google.android.material:material:1.9.0'
implementation ('com.github.ozodrukh:CircularReveal:2.0.1') {
transitive = true
}
implementation 'com.sothree.slidinguppanel:library:3.3.0'
implementation 'com.larswerkman:HoloColorPicker:1.5'
implementation 'com.esri.arcgisruntime:arcgis-android:100.10.0'
implementation 'com.esri.arcgisruntime:arcgis-android-toolkit:100.10.0'
implementation 'com.android.volley:volley:1.2.1'
implementation 'joda-time:joda-time:2.10.10'
implementation ('jp.wasabeef:recyclerview-animators:4.0.2') {
transitive = true
}
// implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
implementation 'me.zhanghai.android.materialprogressbar:library:1.1.4'
implementation 'org.apache.commons:commons-csv:1.2'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'com.github.mukeshsolanki:MarkdownView-Android:1.1.1'
}