FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
Describe the bug
With the implementation of distance calculation feature, setup for location services implemented in the main activity runs for every project.
There's a need to only process location services for projects have the feature enabled.
To Reproduce
Steps to reproduce the behavior:
Run an app that does not have distance calculation as a feature
Set up and login to the app
On loading the register, a prompt to give location permissions to the app shows
Expected behavior
Only apps that use distance calculation in rules should prompt users to allow location permissions.
Describe the bug With the implementation of distance calculation feature, setup for location services implemented in the main activity runs for every project.
There's a need to only process location services for projects have the feature enabled.
To Reproduce Steps to reproduce the behavior:
Expected behavior Only apps that use distance calculation in rules should prompt users to allow location permissions.
Screenshots![Screenshot_1715865579](https://github.com/opensrp/fhircore/assets/696759/40b9ec97-c3ea-49ac-8ce3-c825ce4f5123)