diff --git a/README.md b/README.md index cf86d6f..2491ba0 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ This simple app helps you avoid forgetting to consume foods that are about to ex git clone https://github.com/lorenzovngl/FoodExpirationDates.git ``` -2. Setup your Firebase project as described below **or** switch to the `foss` build variant to disable the Firebase SDK in the app. +2. Setup your Firebase project as described below **or** set `buildFoss = true` in [build.gradle.kts](https://github.com/lorenzovngl/FoodExpirationDates/blob/main/app/build.gradle.kts#L12) and switch to the `foss` build variant to disable the Firebase SDK in the app. - Setup your Firebase project: diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 14a534b..b29bb3f 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -9,8 +9,7 @@ plugins { alias(libs.plugins.com.google.devtools.ksp) } -// Set firebaseEnabled = false for foss build -var firebaseEnabled = true +var buildFoss = false android { namespace = "com.lorenzovainigli.foodexpirationdates" @@ -62,10 +61,12 @@ android { create("full") { dimension = "version" } - create("foss"){ - dimension = "version" - applicationIdSuffix = ".foss" - versionNameSuffix = "-foss" + if (buildFoss) { + create("foss") { + dimension = "version" + applicationIdSuffix = ".foss" + versionNameSuffix = "-foss" + } } } @@ -145,7 +146,7 @@ dependencies { } -if (firebaseEnabled){ +if (!buildFoss){ apply(plugin = "com.google.gms.google-services") apply(plugin = "com.google.firebase.crashlytics") }