Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Implement location feature in f-droid build #2008

Merged
merged 1 commit into from Jun 26, 2019

Conversation

liveHarshit
Copy link
Member

Fixes #2006

  • Remove flavor specific module as not required.

@auto-label auto-label bot added the feature label Jun 26, 2019
@liveHarshit liveHarshit changed the title feat: Implement location feature in f-droid feat: Implement location feature in f-droid build Jun 26, 2019
@iamareebjamal
Copy link
Member

Remove flavor specific module as not required.

Why not required?

@liveHarshit
Copy link
Member Author

Remove flavor specific module as not required.

Why not required?

There was only one module which is configured for location feature, now the location feature is implemented in both variant in the same way, so I have removed the blank module

@iamareebjamal
Copy link
Member

How was it implemented previously in Google Play Variant?

@liveHarshit
Copy link
Member Author

How was it implemented previously in Google Play Variant?

There was a ViewModel: WelcomeViewMode same copy of GeoLocationViewModel in flavor specific view model. Now I use the GeoLocationViewModel in place of that.

now the location feature is implemented in both variant in the same way

The same way means ViewModel type is same but location service implementation is different. No change in location service implementation for play variant, I have just implemented the location service class for fdroid variant.

@liveHarshit
Copy link
Member Author

Also, there were two welcome fragments for different variant, which is really not required now.

@@ -7,6 +7,8 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No use of fine AFAIK, or is there?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here LocationManager.NETWORK_PROVIDER is used so fine location is required.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iamareebjamal iamareebjamal merged commit dc746c5 into fossasia:development Jun 26, 2019
@liveHarshit liveHarshit deleted the 2006 branch June 26, 2019 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add current location feature for f froid build
2 participants