Build without Google services

Also added little instruction.

Hope this doesn't brake anything for guys from F-Droid.
This commit is contained in:
Sad Ellie 2022-12-11 22:10:46 +04:00
parent 5585eacafe
commit 66ec851bcb
2 changed files with 31 additions and 4 deletions

View File

@ -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
<a href="https://play.google.com/store/apps/details?id=com.sadellie.unitto"><img alt="Google Play" src="./content/googlePlay.png" width="32%"/></a>
<a href="https://appgallery.huawei.com/app/C105740875"><img alt="AppGallery" src="./content/appGallery.png" width="32%"/></a>
<a href="https://f-droid.org/packages/com.sadellie.unitto"><img alt="F-Droid" src="./content/fDroid.png" width="32%"/></a>
@ -43,6 +64,10 @@ Any sort of help is welcomed. Open issues, start threads in discussions or just
<a href="https://ruplay.market/apps/instrumenty/com.sadellie.unitto"><img alt="RuMarket" src="./content/ruMarket.png" width="32%"/></a>
<a href="https://apps.rustore.ru/app/com.sadellie.unitto"><img alt="RuMarket" src="./content/ruStore.png" width="32%"/></a>
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

View File

@ -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"