Skip to content

Commit 146b113

Browse files
pjleonard37Release SDK bot for Maps SDK teamevil159
authored
Update versions for v2.5.0-beta.1 release (#795)
* Update versions * Change symbol-elevation-reference from paint to layout property * Update versions * Revert "Remove secret token requirement from Android side (#789)" This reverts commit 73e9719. * Update event listeners on initState * Fix image underflow exception on android (#797) * Revert "Revert "Remove secret token requirement from Android side (#789)"" This reverts commit 71e9b2a. --------- Co-authored-by: Release SDK bot for Maps SDK team <[email protected]> Co-authored-by: Roman Laitarenko <[email protected]>
1 parent f25319c commit 146b113

File tree

12 files changed

+39
-33
lines changed

12 files changed

+39
-33
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
### main
22

3+
### 2.5.0-beta.1
4+
35
* Added viewport support to `MapWidget`. Control the camera’s initial position and behavior by specifying a ViewportState subclass in the viewport parameter. This allows for centering on specific locations, following the user’s position, or showing an overview of a geometry. If no viewport is provided, the map uses its default camera settings.
46
```dart
57
MapWidget(
@@ -9,6 +11,7 @@ MapWidget(
911
),
1012
);
1113
```
14+
* Update Turf dependency to `4.0.0-beta.1`
1215

1316
### 2.4.1
1417

README.md

Lines changed: 2 additions & 2 deletions
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.8.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.9.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

@@ -98,7 +98,7 @@ To use the Maps Flutter SDK add the git dependency to the pubspec.yaml:
9898

9999
```
100100
dependencies:
101-
mapbox_maps_flutter: ^2.4.1
101+
mapbox_maps_flutter: ^2.5.0-beta.1
102102
```
103103

104104
### Configure permissions

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:11.8.0"
62+
implementation "com.mapbox.maps:android:11.9.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/StyleController.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,8 +514,9 @@ class StyleController(private val context: Context, private val styleManager: Ma
514514
return
515515
}
516516

517-
val byteArray = ByteArray(image.data.buffer.capacity())
518-
image.data.buffer.get(byteArray)
517+
val buffer = image.data.buffer.also { it.rewind() }
518+
val byteArray = ByteArray(buffer.capacity())
519+
buffer.get(byteArray)
519520
callback(
520521
Result.success(
521522
MbxImage(width = image.width.toLong(), height = image.height.toLong(), data = byteArray)

example/ios/Podfile.lock

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,24 @@ PODS:
22
- Flutter (1.0.0)
33
- integration_test (0.0.1):
44
- Flutter
5-
- mapbox_maps_flutter (2.4.0):
5+
- mapbox_maps_flutter (2.5.0-beta.1):
66
- Flutter
7-
- MapboxMaps (~> 11.8.0)
8-
- Turf (= 3.0.0)
9-
- MapboxCommon (24.8.0)
10-
- MapboxCoreMaps (11.8.0):
11-
- MapboxCommon (~> 24.8)
12-
- MapboxMaps (11.8.0):
13-
- MapboxCommon (= 24.8.0)
14-
- MapboxCoreMaps (= 11.8.0)
15-
- Turf (= 3.0.0)
7+
- MapboxMaps (~> 11.9.0-beta.1)
8+
- Turf (= 4.0.0-beta.1)
9+
- MapboxCommon (24.9.0-beta.1):
10+
- Turf (= 4.0.0-beta.1)
11+
- MapboxCoreMaps (11.9.0-beta.1):
12+
- MapboxCommon (~> 24.9.0-beta)
13+
- MapboxMaps (11.9.0-beta.1):
14+
- MapboxCommon (= 24.9.0-beta.1)
15+
- MapboxCoreMaps (= 11.9.0-beta.1)
16+
- Turf (= 4.0.0-beta.1)
1617
- path_provider_foundation (0.0.1):
1718
- Flutter
1819
- FlutterMacOS
1920
- permission_handler_apple (9.1.1):
2021
- Flutter
21-
- Turf (3.0.0)
22+
- Turf (4.0.0-beta.1)
2223

2324
DEPENDENCIES:
2425
- Flutter (from `Flutter`)
@@ -49,14 +50,14 @@ EXTERNAL SOURCES:
4950
SPEC CHECKSUMS:
5051
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
5152
integration_test: 252f60fa39af5e17c3aa9899d35d908a0721b573
52-
mapbox_maps_flutter: 564903a43401bad6b277ffef34b0ab03329a34c1
53-
MapboxCommon: 95fe03b74d0d0ca39dc646ca14862deb06875151
54-
MapboxCoreMaps: f2a82182c5f6c6262220b81547c6df708012932b
55-
MapboxMaps: dbe1869006c5918d62efc6b475fb884947ea2ecd
53+
mapbox_maps_flutter: 0a7ec31e0bd2c6036814e8e4b60f4f1339509730
54+
MapboxCommon: 0b383667ab2f9225f370ecc80cbb05f6708b79a4
55+
MapboxCoreMaps: 198e32a078b274e6d82f2f24700b2860a280f8e6
56+
MapboxMaps: 3bd42eafda66dcbf3ff886c4b0b8af5dc9df9604
5657
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
5758
permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
58-
Turf: a1604e74adce15c58462c9ae2acdbf049d5be35e
59+
Turf: ce90b58ad96b4f71cf03b1ba80f71753ee586932
5960

6061
PODFILE CHECKSUM: e9395e37b54f3250ebce302f8de7800b2ba2b828
6162

62-
COCOAPODS: 1.15.2
63+
COCOAPODS: 1.16.2

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ packages:
200200
path: ".."
201201
relative: true
202202
source: path
203-
version: "2.4.0"
203+
version: "2.5.0-beta.1"
204204
matcher:
205205
dependency: transitive
206206
description:

ios/Classes/PointAnnotationController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is generated.
2-
import MapboxMaps
2+
@_spi(Experimental) import MapboxMaps
33
import Foundation
44
import Flutter
55

ios/Classes/PolylineAnnotationController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is generated.
2-
import MapboxMaps
2+
@_spi(Experimental) import MapboxMaps
33
import Foundation
44
import Flutter
55

ios/mapbox_maps_flutter.podspec

Lines changed: 3 additions & 3 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.4.1'
7+
s.version = '2.5.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,8 +17,8 @@ Pod::Spec.new do |s|
1717
s.dependency 'Flutter'
1818
s.platform = :ios, '12.0'
1919

20-
s.dependency 'MapboxMaps', '~> 11.8.0'
21-
s.dependency 'Turf', '3.0.0'
20+
s.dependency 'MapboxMaps', '~> 11.9.0-beta.1'
21+
s.dependency 'Turf', '4.0.0-beta.1'
2222

2323
# Flutter.framework does not contain a i386 slice.
2424
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }

lib/src/map_widget.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class _MapWidgetState extends State<MapWidget> {
203203
'textureView': widget.textureView,
204204
'styleUri': widget.styleUri,
205205
'channelSuffix': _mapboxMapsPlatform.channelSuffix,
206-
'mapboxPluginVersion': '2.4.1',
206+
'mapboxPluginVersion': '2.5.0-beta.1',
207207
'eventTypes': _events.eventTypes.map((e) => e.index).toList(),
208208
};
209209

@@ -231,6 +231,7 @@ class _MapWidgetState extends State<MapWidget> {
231231
binaryMessenger: _mapboxMapsPlatform.binaryMessenger,
232232
channelSuffix: _suffix.toString());
233233

234+
_updateEventListeners();
234235
// Here we mark the state as needing an update to ensure
235236
// the widget configuration is propagated to the platform side.
236237
//

0 commit comments

Comments
 (0)