-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathandroid.gradle
More file actions
35 lines (31 loc) · 827 Bytes
/
android.gradle
File metadata and controls
35 lines (31 loc) · 827 Bytes
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
android {
compileSdkVersion 31
buildToolsVersion "30.0.3"
defaultConfig {
minSdkVersion 24
targetSdkVersion 31
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
flavorDimensions "version"
productFlavors {
qa {
dimension "version"
}
prod {
dimension "version"
}
dev {
dimension "version"
}
}
Properties props = new Properties()
props.load(new FileInputStream(new File('local.properties')))
buildTypes {
release {
buildConfigField 'String', 'OPEN_WEATHER_API_KEY', props['OPEN_WEATHER_API_KEY']
}
debug {
buildConfigField 'String', 'OPEN_WEATHER_API_KEY', props['DEBUG_OPEN_WEATHER_API_KEY']
}
}
}