android-v10.0.0
✨ Features and improvements
-
💥 Breaking: Changed resourcePrefix to
maplibre_
frommapbox_
(#647) and renamed resources accordingly. Note that this is a breaking change since the names of public resources were renamed as well. Replaced Mapbox logo with MapLibre logo.To migrate:
If you use any of the public Android resources, you will get an error that they can not be found. Replace the prefix of each, e.g.R.style.mapbox_LocationComponent
->R.style.maplibre_LocationComponent
. -
💥 Breaking: several deprecated overloads of
LocationComponent.activateLocationComponent
were removed. UseLocationComponentActivationOptions.Builder
instead.To migrate, as an example:
locationComponent.activateLocationComponent(context, style, false, locationEngineRequest, locationComponentOptions)
becomes
val options = LocationComponentActivationOptions.builder(context, style).useDefaultLocationEngine(false).locationEngineRequest(locationEngineRequest).locationComponentOptions(locationComponentOptions).build() locationComponent.activateLocationComponent(options)
-
💥 Breaking: the
LocationEngine
implemented with Google Location Services has been removed to make MapLibre GL Native for Android fully FLOSS (#379).To migrate:
Include the source code of the removedGoogleLocationEngineImpl
in your source tree.Pass an instance of
LocationEngine
based onGoogleLocationEngineImpl
toLocationComponentActivationOptions.Builder.locationEngine
(this was done in a now removedLocationEngineProvider
class):val locationEngine = LocationEngineProxy<Any>(GoogleLocationEngineImpl(context)) val options = LocationComponentActivationOptions.builder(context, style).locationEngine(locationEngine).build() locationComponent.activateLocationComponent(options)
-
💥 Breaking: The static
LocationEngineResult.extractResult
can no longer extract aLocationEngineResult
from a Google Play intent.To migrate, include and use the previous implementation in your source tree.
-
Improve Kotlinification of LatLng (#742)
-
Increment minSdkVersion from 14 to 21, as it covers 99.2%% of the newer devices since 2014 and lessens the backward compatibility burden (#630)
🐞 Bug fixes
- Catches NaN for onMove event (621)
BitmapUtils.mergeBitmap
was deprecated,BitmapUtils.mergeBitmaps
is a new method that does not offset views rendered on top of snapshots (#733)- Fixed a crash when native code was accessing the LatLngBounds class #655
⛵ Dependencies
- Revert "Revert "Gradle update"" - Update Gradle from v3 to v7 (#619)