Skip to content

Commit 0669afd

Browse files
pjleonard37maios
andauthored
Prepare v0.7.0 release (#1048)
* Prepare v0.7.0 release --------- Co-authored-by: Mai Mai <[email protected]>
1 parent 902d0c8 commit 0669afd

File tree

28 files changed

+327
-170
lines changed

28 files changed

+327
-170
lines changed

.circleci/config.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ jobs:
3535
type: string
3636
default: example/build/app/outputs/apk
3737
docker:
38-
- image: cimg/android:2022.09
38+
- image: cimg/android:2024.01
3939
resource_class: xlarge
4040
steps:
4141
- checkout
4242
- flutter/install_sdk_and_pub:
43-
version: 3.13.6
43+
version: 3.27.0
4444
app-dir: example
4545
- run:
4646
name: ktlint
@@ -106,7 +106,7 @@ jobs:
106106
gem uninstall activesupport --version '>= 7.0.8' --ignore-dependencies
107107
gem install activesupport --version '7.0.8'
108108
- flutter/install_sdk_and_pub:
109-
version: 3.13.6
109+
version: 3.27.0
110110
app-dir: example
111111
- flutter/install_ios_pod:
112112
app-dir: example
@@ -128,6 +128,7 @@ jobs:
128128
129129
popd # to repo root
130130
131+
bundle install
131132
bundle exec fastlane build_examples_tests
132133
- persist_to_workspace:
133134
root: << parameters.workspace-path >>
@@ -150,7 +151,7 @@ jobs:
150151
command: |
151152
gcloud firebase test ios run \
152153
--test << parameters.workspace-path >>/build_products.zip \
153-
--device model=iphone8,version=15.7 \
154+
--device model=iphone13pro,version=15.7 \
154155
--timeout 5m \
155156
--num-flaky-test-attempts 3
156157
@@ -172,7 +173,7 @@ executors:
172173
macos-xcode-latest:
173174
resource_class: macos.m1.medium.gen1
174175
macos:
175-
xcode: 15.0.0
176+
xcode: 16.2.0
176177
firebase-test-runner:
177178
resource_class: small
178179
docker:

.fastlane/Fastfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ platform :ios do
1414
team_id: "GJZR2MEM28", # Developer Portal Team ID,
1515
profile_name: lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING]["com.mapbox.maps.FlutterMapsExample"],
1616
targets: ["Runner"],
17-
code_sign_identity: "Apple Development: Machiney McMachineface",
17+
code_sign_identity: "Apple Development: Created via API",
1818
)
1919
update_code_signing_settings(
2020
use_automatic_signing: false,
2121
path: "example/ios/Runner.xcodeproj",
2222
team_id: "GJZR2MEM28", # Developer Portal Team ID,
2323
profile_name: lane_context[SharedValues::MATCH_PROVISIONING_PROFILE_MAPPING]["com.mapbox.maps.FlutterRunnerTests"],
2424
targets: ["RunnerTests"],
25-
code_sign_identity: "Apple Development: Machiney McMachineface",
25+
code_sign_identity: "Apple Development: Created via API",
2626
)
2727
# build tests archive in the `output_directory` to launch on firebase
2828
run_tests(
@@ -31,7 +31,7 @@ platform :ios do
3131
xcconfig: "example/ios/Flutter/Release.xcconfig",
3232
derived_data_path: "example/build/output",
3333
configuration: "Release",
34-
xcargs: "ENABLE_TESTABILITY=YES SWIFT_TREAT_WARNINGS_AS_ERRORS=NO COMPILER_INDEX_STORE_ENABLE=NO",
34+
xcargs: "SWIFT_TREAT_WARNINGS_AS_ERRORS=NO COMPILER_INDEX_STORE_ENABLE=NO",
3535
skip_detect_devices: true, # Required
3636
build_for_testing: true, # Required
3737
sdk: 'iphoneos', # Required

.fastlane/Matchfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ git_url("[email protected]:mapbox/apple-certificates.git")
22
type("development") # The default type, can be: appstore, adhoc, enterprise or development
33
app_identifier(["com.mapbox.maps.FlutterMapsExample", "com.mapbox.maps.FlutterRunnerTests"])
44
username("[email protected]")
5+
force_legacy_encryption(true)

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 0.7.0
2+
3+
> [!NOTE]
4+
> This release adds support for Android 16KB page size requirements and iOS compatibility improvements.
5+
6+
### Android
7+
* Update Android Maps SDK version to v10.19.1
8+
* Add support for 16KB page size requirements for Google Play Store compliance
9+
10+
### iOS
11+
* Update iOS Maps SDK version to v10.19.4
12+
* Change minimum iOS version to v12.0
13+
114
## 0.6.0
215

316
> [!NOTE]

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source "https://rubygems.org"
22

3-
gem "fastlane"
3+
gem "fastlane", ">= 2.228.0"
44

55
plugins_path = File.join(File.dirname(__FILE__), '.fastlane', 'Pluginfile')
66
eval_gemfile(plugins_path) if File.exist?(plugins_path)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mapbox Maps SDK Flutter Plugin
22

3-
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.
3+
The Mapbox Maps SDK Flutter Plugin is an officially developed solution from Mapbox that enables use of our latest Maps SDK product (v10.19.1 (Android) & v10.19.4 (iOS)). 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.
44

55
Web and desktop are not supported.
66

@@ -45,7 +45,7 @@ Contributions welcome!
4545

4646
The Maps Flutter Plugin is compatible with applications:
4747

48-
- Deployed on iOS 11 or higher
48+
- Deployed on iOS 12 or higher
4949
- Built using the Android SDK 21 or higher
5050
- Built using the Dart SDK 2.17.1 or higher
5151

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

113113
```
114114
dependencies:
115-
mapbox_maps_flutter: ^0.6.0
115+
mapbox_maps_flutter: ^0.7.0
116116
```
117117

118118
### Configure permissions

android/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ apply plugin: 'com.android.library'
4040
apply plugin: 'kotlin-android'
4141

4242
android {
43+
namespace "com.mapbox.maps.mapbox_maps"
4344
compileSdkVersion 31
4445

4546
sourceSets {
@@ -53,6 +54,10 @@ android {
5354
sourceCompatibility JavaVersion.VERSION_1_8
5455
targetCompatibility JavaVersion.VERSION_1_8
5556
}
57+
58+
kotlinOptions {
59+
jvmTarget = "1.8"
60+
}
5661
}
5762

5863
if (file("$rootDir/gradle/ktlint.gradle").exists() && file("$rootDir/gradle/lint.gradle").exists()) {
@@ -64,7 +69,7 @@ if (file("$rootDir/gradle/ktlint.gradle").exists() && file("$rootDir/gradle/lint
6469

6570
dependencies {
6671
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
67-
implementation ("com.mapbox.maps:android:10.17.0") {
72+
implementation ("com.mapbox.maps:android:10.19.1") {
6873
exclude group: 'com.mapbox.plugin', module: 'maps-lifecycle'
6974
}
7075

example/android/app/build.gradle

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def localProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -6,11 +12,6 @@ if (localPropertiesFile.exists()) {
612
}
713
}
814

9-
def flutterRoot = localProperties.getProperty('flutter.sdk')
10-
if (flutterRoot == null) {
11-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12-
}
13-
1415
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
1516
if (flutterVersionCode == null) {
1617
flutterVersionCode = '1'
@@ -21,31 +22,43 @@ if (flutterVersionName == null) {
2122
flutterVersionName = '1.0'
2223
}
2324

24-
apply plugin: 'com.android.application'
25-
apply plugin: 'kotlin-android'
26-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
27-
2825
android {
29-
compileSdkVersion 33
26+
namespace "com.mapbox.maps.mapbox_maps_example"
27+
compileSdkVersion 35
3028

3129
sourceSets {
3230
main.java.srcDirs += 'src/main/kotlin'
3331
}
3432

3533
defaultConfig {
36-
applicationId "com.mapbox.maps.flutter.example"
34+
applicationId "com.mapbox.maps.mapbox_maps_example"
3735
minSdkVersion 21
3836
targetSdkVersion 31
3937
versionCode flutterVersionCode.toInteger()
4038
versionName flutterVersionName
4139
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4240
}
4341

42+
compileOptions {
43+
sourceCompatibility JavaVersion.VERSION_1_8
44+
targetCompatibility JavaVersion.VERSION_1_8
45+
}
46+
47+
kotlinOptions {
48+
jvmTarget = "1.8"
49+
}
50+
4451
buildTypes {
4552
release {
4653
// TODO: Add your own signing config for the release build.
4754
// Signing with the debug keys for now, so `flutter run --release` works.
4855
signingConfig signingConfigs.debug
56+
minifyEnabled false
57+
shrinkResources false
58+
}
59+
debug {
60+
minifyEnabled false
61+
shrinkResources false
4962
}
5063
}
5164
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Keep Mapbox lifecycle plugin
2+
-keep class com.mapbox.maps.plugin.lifecycle.MapboxLifecyclePluginImpl { *; }
3+
-keep class com.mapbox.maps.plugin.lifecycle.* { *; }
4+
-keep class com.mapbox.maps.plugin.** { *; }
5+
-keep class com.mapbox.maps.** { *; }
6+
7+
# Keep Flutter plugin classes
8+
-keep class io.flutter.plugins.** { *; }
9+
-keep class io.flutter.plugin.** { *; }
10+
-keep class io.flutter.embedding.** { *; }
11+
12+
# Keep Google Play Core classes (for Flutter deferred components)
13+
-dontwarn com.google.android.play.core.**
14+
-keep class com.google.android.play.core.** { *; }

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.mapbox.maps.mapbox_maps_example">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32
<!-- Flutter needs it to communicate with the running application
43
to allow setting breakpoints, to provide hot reload, etc.
54
-->

0 commit comments

Comments
 (0)