-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable google-services if the file is present (#720)
* fix: enable google-services if the file is present * fix: replace the service.properties.enc file * test: ignore broken tests * fix: set default key values in defaultConfig
- Loading branch information
1 parent
0f0dc2e
commit 1efe847
Showing
5 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
ext { | ||
useGoogleServices = rootProject.file("google-services").exists() | ||
useGoogleServices = file(projectDir.path + "/google-services.json").exists() | ||
} | ||
|
||
if (ext.useGoogleServices) { | ||
if (!file("google-services.json").exists()) { | ||
afterEvaluate { | ||
copy { | ||
from rootProject.file("google-services/google-services.json") | ||
into projectDir | ||
} | ||
} | ||
} | ||
|
||
println "google-services.json was found" | ||
apply plugin: 'com.google.gms.google-services' | ||
//TODO: add other plugins here such as: | ||
//apply plugin: 'com.google.firebase.appdistribution' | ||
//apply plugin: 'com.google.firebase.crashlytics' | ||
} else { | ||
println "google-services.json was not found" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters