Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.

Selectively apply the GMS + Crashlytics plugins #836

Merged
merged 1 commit into from
Jul 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*
*/

import java.nio.file.Files

plugins {
id 'com.android.application'
id 'dagger.hilt.android.plugin'
Expand Down Expand Up @@ -223,11 +221,7 @@ android.applicationVariants.all { variant ->
}
}

def googleServices = file("google-services.json")
if (!googleServices.exists()) {
// If there isn't a google-services.json available, we'll copy our fake version to the
// google-services.json
Files.copy(file("fake-google-services.json").toPath(), googleServices.toPath())
if (file("google-services.json").exists()) {
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'
85 changes: 0 additions & 85 deletions app/fake-google-services.json

This file was deleted.