Build without Firebase

This commit is contained in:
Sad Ellie 2022-12-13 01:13:05 +04:00
parent 9c7130c6f9
commit f0925f0f86
2 changed files with 2 additions and 5 deletions

View File

@ -50,7 +50,6 @@ If you don't need all build variants, you can:
Didn't add Google Services since F-Droid flavor was chosen.
...
```
There should some warnings from Firebase, ignore them.
Open issue in case you need any sort of help. It's free.

View File

@ -6,14 +6,12 @@ plugins {
// Hilt
id("kotlin-kapt")
id("dagger.hilt.android.plugin")
// Firebase Crashlytics
id("com.google.firebase.crashlytics")
}
if (!gradle.startParameter.taskRequests.toString().contains("Fdroid")) {
// Google Services are for all flavors except fdroid
// Google Services and Firebase Crashlytics are for all flavors except fdroid
apply(plugin="com.google.gms.google-services")
apply(plugin="com.google.firebase.crashlytics")
} else {
println("Didn't add Google Services since F-Droid flavor was chosen.")
}