diff --git a/README.md b/README.md index 2a488872..5f64b891 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,28 @@ The goal of this little project is to make an app that will allow it's users to ## Contribute Any sort of help is welcomed. Open issues, start threads in discussions or just use ***Unitto***. Thank you! +*Note: If your contribution is related to Firebase/Google Services, contact me first.* + +### How to build without `google-services.json` +Ideally you need a Firebase project and `google-services.json` in `app` folder. This way you will be able to use all build variants. + +If you don't need all build variants, you can: +1. **Import** this project into Android Studio. +2. **Select** any build variant that has *fdroid* in it's name (e.g. *fdroidDebug*). +3. **Build**. You should see the following in **Build Output**: + ``` + ... + > Configure project :app + 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. + ## Links + +### Download Google Play AppGallery F-Droid @@ -43,6 +64,10 @@ Any sort of help is welcomed. Open issues, start threads in discussions or just RuMarket RuMarket +yes, 6 different app stores + +### Additional + The app is in active development and has its own Trello board, where you can check out all the new stuff that will be added. You can also leave your feature requests. Trello board link: https://trello.com/b/cxAbRlvu/unitto diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 06b91b53..365cbd0c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -7,13 +7,15 @@ plugins { id("kotlin-kapt") id("dagger.hilt.android.plugin") - // Google Services - id("com.google.gms.google-services") - // Firebase Crashlytics id("com.google.firebase.crashlytics") +} -// id("io.freefair.lombok") version "6.6" +if (!gradle.startParameter.taskRequests.toString().contains("Fdroid")) { + // Google Services are for all flavors except fdroid + apply(plugin="com.google.gms.google-services") +} else { + println("Didn't add Google Services since F-Droid flavor was chosen.") } val composeVersion = "1.4.0-alpha02"