Open Y0ngg4n opened 6 months ago
Dear @Y0ngg4n,
Thanks for filing this issue. According to our best knowledge we don't "officially" support F-droid. Furthermore, I don't fully understand your issue. To use the geolocator the google play services should be installed on the device. Could this be an indication of the error?
Kind regards,
@TimHoogstrate it should work without Google Play Services on android, because i use forceAndroidLocationManager always with true. And there was already a different issue that was closed because it was fixed: https://github.com/Baseflow/flutter-geolocator/issues/841 But it seems like it does not work anymore
Dear @Y0ngg4n,
Then, can you elaborate a bit more on the subject? Your issue is a bit unclear to me.
Kind regards,
@TimHoogstrate ok so for building apps for f-droid you have to remove all proprietary dependencies from the app. I tried that by adding the gradle exclude like described in the other issue. but it seems like there are still proprietary dependencies even if i dont use them and also exclude them in gradle like described in #841 So there should be an option to exclude all proprietary dependencies for fdroid builds. as described in #841 it should work with the gradle exclude but as you can see in the gitlab build there are still google service dependencies in the build even when i exclude them
@TimHoogstrate is that helpfull?
According to our best knowledge we don't "officially" support F-droid.
https://pub.dev/documentation/geolocator/latest/geolocator/AndroidSettings/forceLocationManager.html
To exclude Google mobile services from your app (for example because you want to publish your app to the F-Droid app store) you can add the following code to your android/app/build.gradle file:
configurations.implementation { exclude group: 'com.google.android.gms' }
@rusty-snake thats exactly what i did but fdroid builds are still failing because the google library is still there
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
I am trying to build this Fdroid app:
I have added
https://github.com/Y0ngg4n/kifferkarte/blob/master/android/app/build.gradle and i am never calling any service methods in the code
Expected results
I would expect that all unfree classes are not contained in the apk
Actual results
https://gitlab.com/yonggan/fdroiddata/-/jobs/6620611451
Code sample
Code sample
```dart import 'dart:async'; import 'dart:io'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:geolocator/geolocator.dart'; import 'package:kifferkarte/map.dart'; import 'package:kifferkarte/overpass.dart'; import 'package:kifferkarte/provider_manager.dart'; import 'package:latlong2/latlong.dart'; import 'package:vibration/vibration.dart'; import 'package:point_in_polygon/point_in_polygon.dart' as pip; class LocationManager { final GeolocatorPlatform _geolocatorPlatform = GeolocatorPlatform.instance; StreamSubscriptionScreenshots or video
Screenshots or video demonstration
[Upload media here]Version
11.0.0
Flutter Doctor output
Doctor output
```console Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.19.0, on NixOS 23.11 (Tapir) 6.1.79, locale de_DE.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [✓] Linux toolchain - develop for Linux desktop [!] Android Studio (not installed) [✓] Connected device (1 available) [✓] Network resources ! Doctor found issues in 2 categories. ```