File tree 3 files changed +6
-33
lines changed
3 files changed +6
-33
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ android {
9
9
compileSdkVersion 31
10
10
buildToolsVersion " 30.0.3"
11
11
12
+ def localProperties = new Properties ()
13
+ localProperties. load(new FileInputStream (rootProject. file(" local.properties" )))
14
+
12
15
defaultConfig {
13
16
applicationId " cz.crusty.aircrafter"
14
17
minSdkVersion 23
@@ -17,6 +20,8 @@ android {
17
20
versionName " 1.0"
18
21
19
22
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
23
+
24
+ manifestPlaceholders. MAPS_API_KEY = localProperties[' mapsApiKey' ]
20
25
}
21
26
22
27
buildTypes {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 18
18
android : supportsRtl =" true"
19
19
android : theme =" @style/Theme.Aircrafter" >
20
20
21
- <!--
22
- The API key for Google Maps-based APIs is defined as a string resource.
23
- (See the file "res/values/google_maps_api.xml").
24
- Note that the API key is linked to the encryption key used to sign the APK.
25
- You need a different API key for each encryption key, including the release key that is used to
26
- sign the APK for publishing.
27
- You can define the keys for the debug and release targets in src/debug/ and src/release/.
28
- -->
29
21
<meta-data
30
22
android : name =" com.google.android.geo.API_KEY"
31
- android : value =" @string/google_maps_key " />
23
+ android : value =" ${MAPS_API_KEY} " />
32
24
33
25
<activity
34
26
android : name =" .MapsActivity"
You can’t perform that action at this time.
0 commit comments