Skip to content

Commit 2b7e02b

Browse files
authored
bump version to 2.17.0-beta.1 and Maps SDK to 11.17.0-beta.1 (#1061)
1 parent 6baafbe commit 2b7e02b

File tree

13 files changed

+80
-47
lines changed

13 files changed

+80
-47
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
### main
1+
### 2.17.0-beta.1
22

3+
> [!NOTE]
4+
> Version numbering has been updated to align with Mapbox's cross-platform SDK versioning scheme. This release skips from 2.12.0 to 2.17.0-beta.1 to synchronize with other Mapbox SDKs (version x.17.0-beta.1), ensuring consistent version numbers across all platforms.
5+
6+
* Update Maps SDK to v11.17.0-beta.1
37
* Bump Flutter SDK minimum required version to 3.27.0 and `compileSdk` to 35 on Android.
8+
* Fix memory leaks on Android.
49

510
### 2.12.0
611

LICENSE

Lines changed: 38 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## License
22

3-
Mapbox Maps for Flutter version 2.12.0
3+
Mapbox Maps for Flutter version 2.17.0-beta.1
44
Mapbox Maps Flutter SDK
55

66
Copyright © 2022 - 2025 Mapbox, Inc. All rights reserved.
@@ -134,7 +134,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
134134

135135
## License
136136

137-
Mapbox Maps for iOS version 11.16.0
137+
Mapbox Maps for iOS version 11.17.0-beta.1
138138
Mapbox Maps iOS SDK
139139

140140
Copyright © 2021 - 2025 Mapbox, Inc. All rights reserved.
@@ -165,7 +165,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
165165

166166
---
167167

168-
### MapboxCoreMaps,11.16.0,Mapbox ToS,Mapbox,https://www.mapbox.com/
168+
### MapboxCoreMaps,11.17.0-beta.1,Mapbox ToS,Mapbox,https://www.mapbox.com/
169169

170170
```
171171
Mapbox Core Maps version 11.0
@@ -762,18 +762,20 @@ SOFTWARE.
762762
### protozero,1.7.1,BSD-2-Clause,Mapbox,https://github.com/mapbox/protozero
763763

764764
```
765-
protozero copyright (c) Mapbox.
765+
Copyright (C) 2022, Mapbox.
766+
All rights reserved.
766767

767768
Redistribution and use in source and binary forms, with or without
768769
modification, are permitted provided that the following conditions are
769770
met:
770771

771-
* Redistributions of source code must retain the above copyright
772-
notice, this list of conditions and the following disclaimer.
773-
* Redistributions in binary form must reproduce the above copyright
774-
notice, this list of conditions and the following disclaimer in
775-
the documentation and/or other materials provided with the
776-
distribution.
772+
1. Redistributions of source code must retain the above copyright
773+
notice, this list of conditions and the following disclaimer.
774+
775+
2. Redistributions in binary form must reproduce the above copyright
776+
notice, this list of conditions and the following disclaimer in
777+
the documentation and/or other materials provided with the
778+
distribution.
777779

778780
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
779781
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
@@ -1944,7 +1946,7 @@ DEALINGS IN THE SOFTWARE.
19441946

19451947
### License
19461948

1947-
Mapbox Maps for Android version 11.16.0
1949+
Mapbox Maps for Android version 11.17.0-beta.1
19481950
Mapbox Maps Android SDK
19491951

19501952
Copyright © 2021 - 2025 Mapbox, Inc. All rights reserved.
@@ -2214,6 +2216,12 @@ License: [Chromium and built-in dependencies](https://storage.cloud.google.com/c
22142216

22152217
===========================================================================
22162218

2219+
Mapbox Maps Android uses portions of the error-prone annotations.
2220+
2221+
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
2222+
2223+
===========================================================================
2224+
22172225
Mapbox Maps Android uses portions of the Experimental annotation.
22182226

22192227
URL: [https://developer.android.com/jetpack/androidx/releases/annotation#1.3.0](https://developer.android.com/jetpack/androidx/releases/annotation#1.3.0)
@@ -2222,9 +2230,17 @@ License: [The Apache Software License, Version 2.0](http://www.apache.org/licens
22222230

22232231
===========================================================================
22242232

2233+
Mapbox Maps Android uses portions of the Gradle License Plugin.
2234+
2235+
URL: [https://github.com/jaredsburrows/gradle-license-plugin](https://github.com/jaredsburrows/gradle-license-plugin)
2236+
2237+
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
2238+
2239+
===========================================================================
2240+
22252241
Mapbox Maps Android uses portions of the Gson.
22262242

2227-
License: [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
2243+
License: [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0.txt)
22282244

22292245
===========================================================================
22302246

@@ -2418,15 +2434,7 @@ License: [The Apache Software License, Version 2.0](http://www.apache.org/licens
24182434

24192435
===========================================================================
24202436

2421-
Mapbox Maps Android uses portions of the Gradle License Plugin.
2422-
2423-
URL: [https://github.com/jaredsburrows/gradle-license-plugin](https://github.com/jaredsburrows/gradle-license-plugin)
2424-
2425-
License: [The Apache Software License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
2426-
2427-
===========================================================================
2428-
2429-
### MapboxCoreMaps,11.16.0,Mapbox ToS,Mapbox,https://www.mapbox.com/
2437+
### MapboxCoreMaps,11.17.0-beta.1,Mapbox ToS,Mapbox,https://www.mapbox.com/
24302438

24312439
```
24322440
Mapbox Core Maps version 11.0
@@ -3082,18 +3090,20 @@ SOFTWARE.
30823090
### protozero,1.7.1,BSD-2-Clause,Mapbox,https://github.com/mapbox/protozero
30833091

30843092
```
3085-
protozero copyright (c) Mapbox.
3093+
Copyright (C) 2022, Mapbox.
3094+
All rights reserved.
30863095

30873096
Redistribution and use in source and binary forms, with or without
30883097
modification, are permitted provided that the following conditions are
30893098
met:
30903099

3091-
* Redistributions of source code must retain the above copyright
3092-
notice, this list of conditions and the following disclaimer.
3093-
* Redistributions in binary form must reproduce the above copyright
3094-
notice, this list of conditions and the following disclaimer in
3095-
the documentation and/or other materials provided with the
3096-
distribution.
3100+
1. Redistributions of source code must retain the above copyright
3101+
notice, this list of conditions and the following disclaimer.
3102+
3103+
2. Redistributions in binary form must reproduce the above copyright
3104+
notice, this list of conditions and the following disclaimer in
3105+
the documentation and/or other materials provided with the
3106+
distribution.
30973107

30983108
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
30993109
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mapbox Maps SDK Flutter SDK
22

3-
The Mapbox Maps SDK Flutter SDK is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v11.16.0). The SDK allows developers to embed highly-customized maps using a Flutter widget on Android and iOS.
3+
The Mapbox Maps SDK Flutter SDK is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v11.17.0-beta.1). The SDK allows developers to embed highly-customized maps using a Flutter widget on Android and iOS.
44

55
Web and desktop are not supported.
66

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if (file("$rootDir/gradle/ktlint.gradle").exists() && file("$rootDir/gradle/lint
5959
}
6060

6161
dependencies {
62-
implementation "com.mapbox.maps:android-ndk27:11.16.0"
62+
implementation "com.mapbox.maps:android-ndk27:11.17.0-beta.1"
6363

6464
implementation "androidx.annotation:annotation:1.5.0"
6565
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2"

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/EventHandler.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ class MapboxEventHandler(
5656
.forEach { subscribeToEvent(it) }
5757
}
5858

59+
fun dispose() {
60+
cancellables.forEach { it.cancel() }
61+
cancellables.clear()
62+
}
63+
5964
override fun onMethodCall(methodCall: MethodCall, result: MethodChannel.Result) {
6065
if (methodCall.method == "subscribeToEvents" && methodCall.arguments is List<*>) {
6166
cancellables.forEach { it.cancel() }

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/MapboxMapController.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,16 @@ class MapboxMapController(
231231
return mapView
232232
}
233233

234+
private var onFlutterViewAttachedCalled = false
234235
override fun onFlutterViewAttached(flutterView: View) {
235236
super.onFlutterViewAttached(flutterView)
237+
238+
if (onFlutterViewAttachedCalled) {
239+
return
240+
}
241+
242+
onFlutterViewAttachedCalled = true
243+
236244
val context = flutterView.context
237245
val shouldDestroyOnDestroy = when (context is FlutterActivity) {
238246
true -> context.shouldDestroyEngineWithHost()
@@ -245,6 +253,9 @@ class MapboxMapController(
245253

246254
override fun onFlutterViewDetached() {
247255
super.onFlutterViewDetached()
256+
257+
onFlutterViewAttachedCalled = false
258+
248259
lifecycleHelper?.dispose()
249260
lifecycleHelper = null
250261
mapView?.setViewTreeLifecycleOwner(null)
@@ -254,6 +265,8 @@ class MapboxMapController(
254265
if (mapView == null) {
255266
return
256267
}
268+
269+
eventHandler.dispose()
257270
lifecycleHelper?.dispose()
258271
lifecycleHelper = null
259272
mapView?.setViewTreeLifecycleOwner(null)

example/integration_test/map_interface_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,15 +234,15 @@ void main() {
234234
await app.events.onMapIdle.future;
235235

236236
await mapboxMap.setFeatureState(
237-
'source', 'custom', 'point', json.encode({'choose': true}));
237+
'source', null, 'point', json.encode({'choose': true}));
238238
var featureState =
239-
await mapboxMap.getFeatureState('source', 'custom', 'point');
239+
await mapboxMap.getFeatureState('source', null, 'point');
240240
var stateMap = json.decode(featureState);
241241
expect(stateMap.length, 1);
242242
expect(stateMap['choose'], true);
243243

244-
await mapboxMap.removeFeatureState('source', 'custom', 'point', 'choose');
245-
featureState = await mapboxMap.getFeatureState('source', 'custom', 'point');
244+
await mapboxMap.removeFeatureState('source', null, 'point', 'choose');
245+
featureState = await mapboxMap.getFeatureState('source', null, 'point');
246246
stateMap = json.decode(featureState);
247247
expect(stateMap.length, 0);
248248
});

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ packages:
269269
path: ".."
270270
relative: true
271271
source: path
272-
version: "2.12.0"
272+
version: "2.17.0-beta.1"
273273
matcher:
274274
dependency: transitive
275275
description:

ios/mapbox_maps_flutter.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'mapbox_maps_flutter'
7-
s.version = '2.12.0'
7+
s.version = '2.17.0-beta.1'
88

99
s.summary = 'Mapbox Maps SDK Flutter Plugin.'
1010
s.description = 'An officially developed solution from Mapbox that enables use of our latest Maps SDK product.'
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
1717
s.dependency 'Flutter'
1818
s.platform = :ios, '14.0'
1919

20-
s.dependency 'MapboxMaps', '11.16.0'
20+
s.dependency 'MapboxMaps', '11.17.0-beta.1'
2121
s.dependency 'Turf', '4.0.0'
2222

2323
# Flutter.framework does not contain a i386 slice.

ios/mapbox_maps_flutter/Package.resolved

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)