Skip to content

Commit 1c8662e

Browse files
authored
Update glNative to 11.8.0-beta.1, common to 24.8.0-beta.1. (#2786)
1 parent cf9d48c commit 1c8662e

File tree

6 files changed

+66
-5
lines changed

6 files changed

+66
-5
lines changed

CHANGELOG.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,36 @@ Mapbox welcomes participation and contributions from everyone.
44

55
# main
66
## Features ✨ and improvements 🏁
7-
* Introduce experimental `getStyleGlyphURL` / `setStyleGlyphURL` functions for `MapboxMap` and `Style`.
8-
* Introduce `OnClusterClickListener` and `OnClusterLongClickListener` for `CircleAnnotationManager` and `PointAnnotationManager`. These callbacks receive the clicked cluster represented by a `ClusterFeature`.
97
* [compose] Deprecate all `Annotation` and `AnnotationGroup` composables that take `onClick` parameter. Now all annotation interactions could be set with appropriate `AnnotationInteractionsState` or `AnnotationGroupInteractionsState` stored in `AnnotationGroupState`.
108
* [compose] Introduce `AnnotationInteractionsState` and `AnnotationGroupInteractionsState` states that allow to set callbacks for annotation interactions via `onClicked()` and `onLongClicked()`.`PointAnnotationGroupInteractionsState` and `CircleAnnotationGroupInteractionsState` also provide ability to set callbacks for interactions with clusters via `onClusterClicked` and `onClusterLongClicked`.
119
* [compose] Introduce `remember` (e.g. `rememberPolylineAnnotationGroupInteractionsState` and `rememberPolylineAnnotationInteractionsState`) composable functions to create, init and remember all types of `AnnotationInteractionsState` and `AnnotationGroupInteractionsState`.
1210
* [compose] Introduce `<AnnotationType>InteractionsState.isDraggable` / `<AnnotationType>GroupInteractionsState.isDraggable` API for all annotation types allowing to drag annotations. Callbacks `onDragStarted()`, `onDragged()`,`onDragFinished()` are added as well.
11+
* Introduce experimental `getStyleGlyphURL` / `setStyleGlyphURL` functions for `MapboxMap` and `Style`.
12+
* Introduce `OnClusterClickListener` and `OnClusterLongClickListener` for `CircleAnnotationManager` and `PointAnnotationManager`. These callbacks receive the clicked cluster represented by a `ClusterFeature`.
13+
* Make `fill-extrusion-emissive-strength` property data-driven.
14+
* Dispatch view annotations update before rendering, so that view annotations and map layers are rendered simultaneously and thus decreasing the view annotations latency when using `ViewAnnotationUpdateMode.MAP_FIXED_DELAY` mode.
15+
* Overscale composited tile components in Offline.
16+
* Skip rendering landmarks when the camera is inside them.
17+
18+
## Bug fixes 🐞
19+
* Improve zooming performance on dynamic Standard terrain and optimize terrain re-rendering performance on e.g routeline `line-trim-offset` change.
20+
* Respect polygons with holes on querying rendered features.
21+
* Fix self-overlap of line corners when large `line-width` is used.
22+
* Adjust conflation intersection test padding to fix disappearing `fill-extrusion`.
23+
* Fix TileCover bug with polygon horizontal edges.
24+
* Fixing a bug with image dependent paint properties not getting a correct value after image become available.
25+
* Clear tile pyramid on color theme change before the tiles are updated.
26+
* Fixed missing images notifications for images within coalesce expression when other images in coalesce are present. Image expressions with two arguments are no longer being considered present if only second image is present.
27+
* Return operation error for featurestate related API in case the featureset is not valid.
28+
* Fix crash on style pack load when no access token is set.
29+
* Fix crash in TerrainRenderer when using snapshotter.
30+
* Fix crash on re-creation of a custom raster source when different options are provided.
31+
* Return parsing errors if runtime added style import JSON is not valid.
32+
* Fix missing models in rendering result if reduceMemoryUse is called before taking snapshot.
33+
* Compilation error due to dynamic_cast on embedded linux.
34+
* Fix the incorrect behaviour when using `symbol-z-oder` property.
35+
* Fix `raster-particle` trail discontinuity at the antimeridian.
36+
1337

1438

1539
# 11.7.1 October 10, 2024

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ License: [The Apache Software License, Version 2.0](http://www.apache.org/licens
474474

475475
===========================================================================
476476

477-
### MapboxCoreMaps,11.8.0-SNAPSHOT,Mapbox ToS,Mapbox,https://www.mapbox.com/
477+
### MapboxCoreMaps,11.8.0-beta.1,Mapbox ToS,Mapbox,https://www.mapbox.com/
478478

479479
```
480480
Mapbox Core Maps version 11.0

app/src/main/java/com/mapbox/maps/testapp/MapboxApplication.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ class MapboxApplication : MultiDexApplication() {
4848
override fun onError(error: GeofencingError) {
4949
logD("MapboxApplication", "onError() called with: error = $error")
5050
}
51+
52+
override fun onUserConsentChanged(isConsentGiven: Boolean) {
53+
logW("MapboxApplication", "onUserConsentChanged() called with: isConsentGiven = $isConsentGiven")
54+
}
5155
}
5256

5357
// TODO: temporary workaround to avoid double adding of listener if we don't

app/src/main/java/com/mapbox/maps/testapp/examples/geofence/GeofencingActivity.kt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import android.content.pm.PackageManager
1515
import android.net.Uri
1616
import android.os.Build
1717
import android.os.Bundle
18+
import android.view.View
1819
import android.widget.ArrayAdapter
1920
import android.widget.Toast
2021
import androidx.activity.result.ActivityResultLauncher
@@ -119,6 +120,7 @@ class GeofencingActivity : AppCompatActivity() {
119120
private var exitFeature: Feature? = null
120121
private val datastoreBaseUrl =
121122
"https://opendata.arcgis.com/datasets/89b6b5142a9b4bb9a5c5f4404ff28963_0.geojson"
123+
122124
// NOTE: You need to grant location permissions before initialising GeofencingService with getOrCreate()
123125
private val geofencing by lazy {
124126
GeofencingFactory.getOrCreate()
@@ -240,6 +242,11 @@ class GeofencingActivity : AppCompatActivity() {
240242
override fun onError(error: GeofencingError) {
241243
logD(TAG, "onError() called with: error = $error")
242244
}
245+
246+
override fun onUserConsentChanged(isConsentGiven: Boolean) {
247+
logD(TAG, "onUserConsentChanged() called with: isConsentGiven = $isConsentGiven")
248+
userRevokedConsentUi(isConsentGiven)
249+
}
243250
}
244251

245252
private var geofencingStarted: Boolean = false
@@ -553,6 +560,18 @@ class GeofencingActivity : AppCompatActivity() {
553560
}
554561
}
555562

563+
private fun userRevokedConsentUi(isConsentGiven: Boolean) = lifecycleScope.launch {
564+
with(binding) {
565+
if (isConsentGiven) {
566+
buttonLoadGeofenceZones.visibility = View.VISIBLE
567+
textGeofencesDisabled.visibility = View.GONE
568+
} else {
569+
buttonLoadGeofenceZones.visibility = View.GONE
570+
textGeofencesDisabled.visibility = View.VISIBLE
571+
}
572+
}
573+
}
574+
556575
private fun createNotificationChannel() {
557576
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
558577
val importance = NotificationManager.IMPORTANCE_HIGH

app/src/main/res/layout/activity_geofencing.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@
1515
app:layout_constraintStart_toStartOf="parent"
1616
app:layout_constraintTop_toTopOf="parent" />
1717

18+
<TextView
19+
android:id="@+id/text_geofences_disabled"
20+
android:layout_width="wrap_content"
21+
android:layout_height="wrap_content"
22+
android:padding="8dp"
23+
android:visibility="gone"
24+
android:layout_marginBottom="20dp"
25+
android:background="@color/design_default_color_secondary"
26+
android:text="User consent revoked"
27+
android:textAppearance="@style/TextAppearance.MaterialComponents.Button"
28+
app:layout_constraintBottom_toBottomOf="parent"
29+
app:layout_constraintEnd_toEndOf="parent"
30+
app:layout_constraintStart_toStartOf="parent" />
31+
1832
<Button
1933
android:id="@+id/button_load_geofence_zones"
2034
android:layout_width="wrap_content"

gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ japicmp = "0.4.1"
3434
# Dependencies
3535

3636
# GlNative and Common are used by the convention plugin
37-
mapboxGlNative = "11.8.0-SNAPSHOT.1007T0604Z.9abe2f8"
38-
mapboxCommon = "24.8.0-SNAPSHOT.1007T0604Z.9abe2f8"
37+
mapboxGlNative = "11.8.0-beta.1"
38+
mapboxCommon = "24.8.0-beta.1"
3939

4040
mapboxBase = "0.11.0"
4141
mapboxGestures = "0.8.0"

0 commit comments

Comments
 (0)