Skip to content

android-v10.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 15 Feb 23:37
97b6e14

✨ Features and improvements

  • 💥 Breaking: Changed resourcePrefix to maplibre_ from mapbox_ (#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. Use LocationComponentActivationOptions.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 removed GoogleLocationEngineImpl in your source tree.

    Pass an instance of LocationEngine based on GoogleLocationEngineImpl to LocationComponentActivationOptions.Builder.locationEngine (this was done in a now removed LocationEngineProvider 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 a LocationEngineResult 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)