Legg til fdroid-byggvariant uten Google Play Services
Splitt LocationProvider, ShelterWidgetProvider og WidgetUpdateWorker i to varianter: standard (med Play Services for bedre GPS) og fdroid (kun AOSP LocationManager). Play Services-avhengigheten er nå begrenset til standardImplementation. Begge varianter bygger og har identisk funksjonalitet — fdroid-varianten mangler bare FusedLocationProviderClient som en ekstra lokasjonskilde. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f1b405950e
commit
ff4b3245f5
7 changed files with 529 additions and 2 deletions
|
|
@ -40,6 +40,16 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
flavorDimensions += "distribution"
|
||||
productFlavors {
|
||||
create("standard") {
|
||||
dimension = "distribution"
|
||||
}
|
||||
create("fdroid") {
|
||||
dimension = "distribution"
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
isMinifyEnabled = true
|
||||
|
|
@ -88,8 +98,8 @@ dependencies {
|
|||
// OSMDroid (offline-capable OpenStreetMap)
|
||||
implementation("org.osmdroid:osmdroid-android:6.1.20")
|
||||
|
||||
// Google Play Services Location (precise GPS)
|
||||
implementation("com.google.android.gms:play-services-location:21.3.0")
|
||||
// Google Play Services Location (precise GPS) — standard flavor only
|
||||
"standardImplementation"("com.google.android.gms:play-services-location:21.3.0")
|
||||
|
||||
// WorkManager (periodic widget updates)
|
||||
implementation("androidx.work:work-runtime-ktx:2.9.1")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue