fix(android): drop geolocator for a native LocationManager channel
Removes the geolocator dependency, which transitively embedded com.google.android.gms.* (play-services-location) — proprietary classes that F-Droid's scanner rejects. The optional coarse-location button now talks to Android's own LocationManager over a small platform channel (org.comunes.tane/coarse_location): permission prompt, single coarse fix with a 12s timeout, last-known fallback, null on any failure. Behavior is unchanged and the CoarseLocationProvider interface is preserved, so the UI, i18n and widget tests need no changes. Also sets dependenciesInfo.includeInApk/Bundle = false so the AGP dependency-metadata block (also flagged by F-Droid) is not embedded. Neither change affects the Google Play build.
This commit is contained in:
parent
7f1118a243
commit
d0fabb80a9
9 changed files with 264 additions and 93 deletions
|
|
@ -1,7 +1,7 @@
|
|||
name: tane
|
||||
description: "Tane — local-first, encrypted, decentralized traditional-seed inventory and market."
|
||||
publish_to: 'none'
|
||||
version: 0.1.0+2
|
||||
version: 0.1.1+3
|
||||
|
||||
environment:
|
||||
sdk: ^3.11.5
|
||||
|
|
@ -67,10 +67,10 @@ dependencies:
|
|||
material_symbols_icons: ^4.2951.0
|
||||
url_launcher: ^6.3.2
|
||||
package_info_plus: ^9.0.1
|
||||
# Optional coarse device location (BSD-3) to set the sharing area without
|
||||
# typing a code. Low accuracy only; the value is immediately reduced to a
|
||||
# low-precision geohash. Behind an interface so it's fakeable and pluggable.
|
||||
geolocator: ^13.0.1
|
||||
# Optional coarse device location goes through a small platform channel to
|
||||
# Android's own LocationManager (lib/services/coarse_location.dart) — no
|
||||
# location plugin, and deliberately no Google Play Services, so the APK
|
||||
# stays free of proprietary classes (F-Droid).
|
||||
# Network reachability (BSD-3) to show a global "you're offline" banner — the
|
||||
# social layer needs a connection; the inventory works regardless.
|
||||
connectivity_plus: ^6.1.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue