Skip to content

Commit ceee2c9

Browse files
authored
Prepare 2.19.1 (#1108)
* fix android build * fix customData not being updated on android * add changelog entries * bump version to 2.19.1 * update license
1 parent 951e2b6 commit ceee2c9

10 files changed

Lines changed: 22 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### 2.19.1
2+
3+
* [Android] Fix Gradle build failure when `SDK_REGISTRY_TOKEN` is not set in the environment or `gradle.properties`.
4+
* [Android] Fix `customData` not being applied when updating Circle, Point, Polygon, and Polyline annotations.
5+
16
### 2.19.0
27

38
* Update Maps SDK to v11.19.0

LICENSE

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

3-
Mapbox Maps for Flutter version 2.19.0
3+
Mapbox Maps for Flutter version 2.19.1
44
Mapbox Maps Flutter SDK
55

66
Copyright © 2022 - 2026 Mapbox, Inc. All rights reserved.

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ rootProject.allprojects {
2828
}
2929
credentials {
3030
username = "mapbox"
31-
password = System.getenv("SDK_REGISTRY_TOKEN") ?: project.property("SDK_REGISTRY_TOKEN") as String
31+
password = System.getenv("SDK_REGISTRY_TOKEN") ?: project.findProperty("SDK_REGISTRY_TOKEN") as String
3232
}
3333
}
3434
}

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/annotation/CircleAnnotationController.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ class CircleAnnotationController(private val delegate: ControllerDelegate) : _Ci
191191
annotation.circleStrokeWidth?.let {
192192
originalAnnotation.circleStrokeWidth = it
193193
}
194+
annotation.customData?.let {
195+
originalAnnotation.setData(Gson().toJsonTree(it))
196+
}
194197
return originalAnnotation
195198
}
196199

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/annotation/PointAnnotationController.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ class PointAnnotationController(private val delegate: ControllerDelegate) : _Poi
300300
annotation.textOpacity?.let {
301301
originalAnnotation.textOpacity = it
302302
}
303+
annotation.customData?.let {
304+
originalAnnotation.setData(Gson().toJsonTree(it))
305+
}
303306
return originalAnnotation
304307
}
305308

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/annotation/PolygonAnnotationController.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ class PolygonAnnotationController(private val delegate: ControllerDelegate) : _P
190190
annotation.fillZOffset?.let {
191191
originalAnnotation.fillZOffset = it
192192
}
193+
annotation.customData?.let {
194+
originalAnnotation.setData(Gson().toJsonTree(it))
195+
}
193196
return originalAnnotation
194197
}
195198

android/src/main/kotlin/com/mapbox/maps/mapbox_maps/annotation/PolylineAnnotationController.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ class PolylineAnnotationController(private val delegate: ControllerDelegate) : _
209209
annotation.lineWidth?.let {
210210
originalAnnotation.lineWidth = it
211211
}
212+
annotation.customData?.let {
213+
originalAnnotation.setData(Gson().toJsonTree(it))
214+
}
212215
return originalAnnotation
213216
}
214217

ios/mapbox_maps_flutter.podspec

Lines changed: 1 addition & 1 deletion
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.19.0'
7+
s.version = '2.19.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.'

lib/src/package_info.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
part of mapbox_maps_flutter;
22

3-
const String mapboxPluginVersion = '2.19.0';
3+
const String mapboxPluginVersion = '2.19.1';

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mapbox_maps_flutter
22
description: Interactive, thoroughly customizable maps powered by Mapbox Maps mobile SDKs.
3-
version: 2.19.0
3+
version: 2.19.1
44
homepage: https://github.com/mapbox/mapbox-maps-flutter
55

66
environment:

0 commit comments

Comments
 (0)