Skip to content

Commit

Permalink
Prepare v0.6.0 release (#510)
Browse files Browse the repository at this point in the history
* bump deps version to v10.17.0 (iOS & Android)

* bump Maps Flutter to v0.6.0

* Fix StyleColor -> Int conversion
  • Loading branch information
maios authored Apr 26, 2024
1 parent 3f5f734 commit 902d0c8
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 30 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
### 0.5.1
## 0.6.0

> [!NOTE]
> This release contains fixes to the Privacy Manifest on iOS. Upgrade to avoid issues in the App Store app submission starting from May 1st.
### Android
* Fix map being pixelated on some devices when ContextMode.SHARED is used (e.g. in AndroidAuto extension).
* Fix incorrect widget position and scale when resizing the drawing surface.
* Fix a crash in MapView.snapshot happening on specific devices.

### iOS
* Fix the issue with invalid privacy manifest

## 0.5.1
### Android

* Fix registry token lookup failing with an unrelated error in certain circumstances.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mapbox Maps SDK Flutter Plugin

The Mapbox Maps SDK Flutter Plugin is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v10.13.0). It is currently in beta, but can be used in production. The plugin allows developers to embed highly customized maps using a Flutter widget on Android and iOS.
The Mapbox Maps SDK Flutter Plugin is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v10.17.0). It is currently in beta, but can be used in production. The plugin allows developers to embed highly customized maps using a Flutter widget on Android and iOS.

Web and desktop are not supported.

Expand Down Expand Up @@ -112,7 +112,7 @@ To use the Maps Flutter Plugin add the git dependency to the pubspec.yaml:

```
dependencies:
mapbox_maps_flutter: ^0.5.1
mapbox_maps_flutter: ^0.6.0
```

### Configure permissions
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (file("$rootDir/gradle/ktlint.gradle").exists() && file("$rootDir/gradle/lint

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation ("com.mapbox.maps:android:10.13.0") {
implementation ("com.mapbox.maps:android:10.17.0") {
exclude group: 'com.mapbox.plugin', module: 'maps-lifecycle'
}

Expand Down
32 changes: 16 additions & 16 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ PODS:
- Flutter (1.0.0)
- integration_test (0.0.1):
- Flutter
- mapbox_maps_flutter (0.5.0):
- mapbox_maps_flutter (0.6.0):
- Flutter
- MapboxMaps (~> 10.13.1)
- MapboxCommon (23.5.0)
- MapboxCoreMaps (10.13.1):
- MapboxCommon (~> 23.5)
- MapboxMaps (10.13.1):
- MapboxCommon (= 23.5.0)
- MapboxCoreMaps (= 10.13.1)
- MapboxMaps (~> 10.17.0)
- MapboxCommon (23.9.2)
- MapboxCoreMaps (10.17.0):
- MapboxCommon (~> 23.9)
- MapboxMaps (10.17.0):
- MapboxCommon (= 23.9.2)
- MapboxCoreMaps (= 10.17.0)
- MapboxMobileEvents (= 1.0.10)
- Turf (~> 2.0)
- Turf (= 2.7.0)
- MapboxMobileEvents (1.0.10)
- permission_handler_apple (9.0.4):
- Flutter
- Turf (2.6.1)
- Turf (2.7.0)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand Down Expand Up @@ -45,14 +45,14 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
integration_test: 13825b8a9334a850581300559b8839134b124670
mapbox_maps_flutter: bad1576756da36dce455f94bd8a9a3e2afd0ff76
MapboxCommon: fdf7fd31c90b7b607cd9c63e37797f023c01d860
MapboxCoreMaps: 24270c7c6b8cb71819fc2f3c549db9620ee4d019
MapboxMaps: cb76511b98d3b95c74b0771ed105bc69f30ace6b
mapbox_maps_flutter: 1b0f2c21a17107d39e0d3e7d956590af6983bd1b
MapboxCommon: 768660d6fca8193529ecf82eb6f5f9ae7a5acdf9
MapboxCoreMaps: be412ff97b16aa7820922c818115a9a0d8211caa
MapboxMaps: 87ef0003e6db46e45e7a16939f29ae87e38e7ce2
MapboxMobileEvents: de50b3a4de180dd129c326e09cd12c8adaaa46d6
permission_handler_apple: 44366e37eaf29454a1e7b1b7d736c2cceaeb17ce
Turf: 469ce2c3d22e5e8e4818d5a3b254699a5c89efa4
Turf: 13d1a92d969ca0311bbc26e8356cca178ce95da2

PODFILE CHECKSUM: 04c8a50f0eb98e8e64bc4237a0712e89ba6c14b8

COCOAPODS: 1.14.2
COCOAPODS: 1.15.2
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.5.0"
version: "0.6.0"
matcher:
dependency: transitive
description:
Expand Down
8 changes: 4 additions & 4 deletions ios/Classes/Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,10 @@ func toRgb(alpha: Int, red: Int, green: Int, blue: Int) -> Int {
extension StyleColor {
func rgb() -> Int {
return toRgb(
alpha: Int(self.alpha * 255),
red: Int(self.red),
green: Int(self.green),
blue: Int(self.blue)
alpha: Int(alpha.rounded() * 255),
red: Int(self.red.rounded()),
green: Int(self.green.rounded()),
blue: Int(self.blue.rounded())
)
}
}
Expand Down
4 changes: 2 additions & 2 deletions ios/mapbox_maps_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'mapbox_maps_flutter'
s.version = '0.5.1'
s.version = '0.6.0'

s.summary = 'Mapbox Maps SDK Flutter Plugin.'
s.description = 'An officially developed solution from Mapbox that enables use of our latest Maps SDK product.'
Expand All @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.platform = :ios, '11.0'
s.dependency 'MapboxMaps', '~> 10.13.1'
s.dependency 'MapboxMaps', '~> 10.17.0'

# Flutter.framework does not contain a i386 slice.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
Expand Down
2 changes: 1 addition & 1 deletion lib/src/map_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class _MapWidgetState extends State<MapWidget> {
'textureView': widget.textureView,
'styleUri': widget.styleUri,
'eventTypes': widget._eventTypes,
'mapboxPluginVersion': '0.5.1'
'mapboxPluginVersion': '0.6.0'
};

return _mapboxMapsPlatform.buildView(
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mapbox_maps_flutter
description: A Flutter plugin for integrating Mapbox Maps SDK v10 in Android/iOS application.
version: 0.5.1
version: 0.6.0
homepage: https://github.com/mapbox/mapbox-maps-flutter

environment:
Expand All @@ -26,7 +26,7 @@ dev_dependencies:
pigeon:
git:
url: https://github.com/evil159/packages.git
ref: 53718b121f385905a7baa1531f771d24bbb25a1d
ref: cc713e558de9bbfd037620c83b001e10a8af2119
path: packages/pigeon


Expand Down

0 comments on commit 902d0c8

Please sign in to comment.