[android] Make location provider optional#9488
Conversation
| compile rootProject.ext.dep.timber | ||
| compile rootProject.ext.dep.okhttp3 | ||
| compile(rootProject.ext.dep.lost) { | ||
| provided(rootProject.ext.dep.lost) { |
There was a problem hiding this comment.
Could it be completely removed and rely solely on MAS?
There was a problem hiding this comment.
@zugaldia Nope, mainly because LocationSource is part of the public API. We should deprecate LocationSource and eventually remove it, at that point we'll be able to completely remove that dependency and rely solely on MAS.
| } | ||
|
|
||
| Mapbox(@NonNull Context context, @NonNull String accessToken, LocationSource locationSource) { | ||
| Mapbox(@NonNull Context context, @NonNull String accessToken, LocationEngine locationSource) { |
There was a problem hiding this comment.
This would be an API breaking change - let's explore if we can work it out in a way we keep public APIs untouched for now. Adding is fine, not removing or changing if we want this merged shorter term.
There was a problem hiding this comment.
@zugaldia Mapbox is only used internally (note that there is no modifier) so it doesn't mean an API breaking change.
There was a problem hiding this comment.
@zugaldia Problem though is public getLocationSource() which returns a LocationSource.
| allprojects { | ||
| repositories { | ||
| jcenter() | ||
| mavenLocal() |
There was a problem hiding this comment.
This needs to be removed before merging.
a4bfc86 to
b7ccf16
Compare
|
Any progress on this PR? Would love to start testing this integration. |
b7ccf16 to
9dedf29
Compare
|
Code has been updated to use the new APIs 👀 mapbox/mapbox-java#502 (comment) so this PR is ready for review. |
abf9737 to
02167e5
Compare
Considering that the location code in MAS is getting its own artifact, I'd suggest holding on this PR until this new artifact is ready. Unless timing doesn't align well with the new release, in that case we could revisit the approach. |
02167e5 to
dbe2342
Compare
zugaldia
left a comment
There was a problem hiding this comment.
Let's ship it as soon as the SNAPSHOT is replaced with a release.
|
🚀 |
dbe2342 to
be72dbd
Compare
be72dbd to
33ee844
Compare
In order to merge this PR mapbox-java/#502 has to be merged first.
👀 @tobrun @zugaldia