yayaa / LocationManager

Simplify getting user's location for Android
806 stars 187 forks source link

Updated to connectionless APIs (fix #105) #107

Closed victor-denisenko closed 3 years ago

victor-denisenko commented 3 years ago

Fix #105

Remove deprecated FusedLocationProviderApi, use FusedLocationProviderClient.

Public API changes:

Other changes:

About deleting public api fields: I don't known, maybe save this fields and mark them as deprecated? @yayaa, what your opinion?

codecov-commenter commented 3 years ago

Codecov Report

Merging #107 into master will increase coverage by 2.25%. The diff coverage is 68.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #107      +/-   ##
==========================================
+ Coverage   67.69%   69.94%   +2.25%     
==========================================
  Files          31       31              
  Lines        1074     1028      -46     
  Branches       92       87       -5     
==========================================
- Hits          727      719       -8     
+ Misses        289      254      -35     
+ Partials       58       55       -3     
Impacted Files Coverage Δ
...ndroid/locationmanager/configuration/Defaults.java 100.00% <ø> (ø)
...tionprovider/GooglePlayServicesLocationSource.java 0.00% <0.00%> (ø)
...onprovider/GooglePlayServicesLocationProvider.java 88.18% <90.19%> (-0.87%) :arrow_down:
...configuration/GooglePlayServicesConfiguration.java 100.00% <100.00%> (ø)
...ders/locationprovider/DefaultLocationProvider.java 89.47% <0.00%> (+2.25%) :arrow_up:
...om/yayandroid/locationmanager/LocationManager.java 78.66% <0.00%> (+2.66%) :arrow_up:
...er/configuration/DefaultProviderConfiguration.java 98.52% <0.00%> (+4.41%) :arrow_up:
...manager/configuration/PermissionConfiguration.java 100.00% <0.00%> (+13.63%) :arrow_up:
...r/providers/locationprovider/LocationProvider.java 84.84% <0.00%> (+15.15%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 48dd7cd...c3796aa. Read the comment docs.

yayaa commented 3 years ago

Hey @victor-denisenko, thanks a lot for the PR. Specially for taking time to integrating the new API, updating tests and ReadMe. Really appreciated. 🙏

Unfortunately, it contains a lot of different changes. I cannot accept it as is. Would you mind splitting into several PRs as following?

victor-denisenko commented 3 years ago

Hi, Thanks for the review, I will try to check code changes additionally and write answers soon. Yes, I agree with splitting changes into several PRs.