File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ if (secretsPropertiesFile.exists()){
2929 secretsProperties. load(new FileInputStream (secretsPropertiesFile))
3030}
3131
32+ def geoApiKey = secretsProperties. getProperty(' GEO_API_KEY' )?. trim() ?: project. findProperty(' GEO_API_KEY' )?. toString()?. trim()
33+ if (! geoApiKey) {
34+ throw GradleException (" Google Maps API key is missing. Define GEO_API_KEY in android/secrets.properties or pass -PGEO_API_KEY=<key>." )
35+ }
36+
3237
3338
3439def isFirebaseDistribution = System . getenv(' IS_FIREBASE_DISTRIBUTION' ) == ' true'
@@ -52,7 +57,7 @@ defaultConfig {
5257 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
5358
5459 manifestPlaceholders = [
55- GEO_API_KEY : project . findProperty( ' GEO_API_KEY ' ) ?: " DUMMY " ,
60+ GEO_API_KEY : geoApiKey ,
5661 applicationName : project. findProperty(' applicationName' ) ?: " android.app.Application"
5762 ]
5863}
You can’t perform that action at this time.
0 commit comments