Skip to content

Commit c61d000

Browse files
author
Erwan Jestin
committed
Merge remote-tracking branch 'upstream/main' into v0.2.0-no-ios-upstream
# Conflicts: # ios/Classes/Pigeon.g.swift # ios/maplibre.podspec
2 parents 7163368 + a090528 commit c61d000

File tree

373 files changed

+66909
-52352
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+66909
-52352
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
custom: ["https://www.paypal.com/paypalme/joschaeckert"]
1+
2+
github: ["josxha"]
3+
custom: ["https://paypal.me/joschaeckert"]

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: "Q&A - GitHub Discussions"
4-
url: https://github.com/josxha/flutter-maplibre/discussions/categories/q-a
3+
- name: "Ask a Question"
4+
url: https://github.com/josxha/flutter-maplibre/discussions/new?category=q-a
55
about: "If you have a question about using MapLibre on Flutter"
6+
- name: "Start a Discussion"
7+
url: https://github.com/josxha/flutter-maplibre/discussions/new?category=general
8+
about: "Start a discussion on some topic"
9+
- name: "Share some Idea"
10+
url: https://github.com/josxha/flutter-maplibre/discussions/new?category=ideas
11+
about: "Share an idea, that isn't quite ready for a feature request"
612
- name: "Join on Slack"
713
url: https://slack.openstreetmap.us/
814
about: "Join #maplibre-flutter on the OpenStreetMap Slack"

codecov.yml renamed to .github/codecov.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,12 @@ comment:
88
ignore:
99
- "**/*.g.dart"
1010
- "lib/src/platform/android/jni/**"
11-
- "example/**"
11+
- "example/**"
12+
13+
github_checks:
14+
annotations: false
15+
16+
coverage:
17+
status:
18+
project: off
19+
patch: off

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- uses: subosito/flutter-action@v2
2121
with:
2222
cache: true
23+
- name: "Get Flutter dependencies"
24+
run: dart pub get
2325
- name: Lint analysis
2426
run: dart format --set-exit-if-changed .
2527
lint-dart:
@@ -69,7 +71,7 @@ jobs:
6971
strategy:
7072
fail-fast: false
7173
matrix:
72-
sdk: [ '3.27.0', '' ]
74+
sdk: [ '3.32.0', '' ]
7375
timeout-minutes: 30
7476
steps:
7577
- uses: actions/checkout@v4
@@ -176,7 +178,7 @@ jobs:
176178
strategy:
177179
fail-fast: false
178180
matrix:
179-
sdk: [ '3.27.0', '' ]
181+
sdk: [ '3.32.0', '' ]
180182
steps:
181183
- uses: actions/checkout@v4
182184
- uses: subosito/flutter-action@v2
@@ -208,7 +210,7 @@ jobs:
208210
# strategy:
209211
# fail-fast: false
210212
# matrix:
211-
# sdk: [ '3.27.0', '' ]
213+
# sdk: [ '3.32.0', '' ]
212214
# steps:
213215
# - uses: actions/checkout@v4
214216
# - uses: subosito/flutter-action@v2
@@ -237,7 +239,7 @@ jobs:
237239
strategy:
238240
fail-fast: false
239241
matrix:
240-
sdk: [ '3.27.0', '' ]
242+
sdk: [ '3.32.0', '' ]
241243
steps:
242244
- uses: actions/checkout@v4
243245
- uses: subosito/flutter-action@v2
@@ -257,7 +259,7 @@ jobs:
257259
strategy:
258260
fail-fast: false
259261
matrix:
260-
sdk: [ '3.27.0', '' ]
262+
sdk: [ '3.32.0', '' ]
261263
steps:
262264
- uses: actions/checkout@v4
263265
- uses: subosito/flutter-action@v2

.metadata

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
7+
revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf"
88
channel: "stable"
99

1010
project_type: plugin
@@ -13,26 +13,26 @@ project_type: plugin
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
17-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
16+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
17+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
1818
- platform: android
19-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
20-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
19+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
20+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
2121
- platform: ios
22-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
23-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
22+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
23+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
2424
- platform: linux
25-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
26-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
25+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
26+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
2727
- platform: macos
28-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
29-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
28+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
29+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
3030
- platform: web
31-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
32-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
31+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
32+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
3333
- platform: windows
34-
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
35-
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
34+
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
35+
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
3636

3737
# User provided section
3838

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
## 0.2.1
2+
3+
This release builds upon the long anticipated merged threads in Flutter 3.29.0
4+
which removes the need of switching threads. Furthermore, the release contains a
5+
couple of features and new fixes.
6+
7+
Thanks for your contributions for this release, @felix-larsen and @pamtbaau!
8+
9+
### New Features
10+
11+
- Upgrade MapLibre Native on Android
12+
to [11.8.0](https://github.com/maplibre/maplibre-native/blob/main/platform/android/CHANGELOG.md#1180)
13+
which introduces support for PMTiles.
14+
- Add `removePinchOnPressed` and `webRotationSpeed` as parameters to the
15+
`MapCompass` widget.
16+
- Allow the `SourceAttribution` widget to use multiple lines for its
17+
attributions.
18+
- Underline an attribution link for a `SourceAttribution` widget when hovered
19+
with a cursor.
20+
- Add the parameter `allowInteraction` to the `WidgetLayer` that allows widgets
21+
to detect gestures on these widgets.
22+
- Reintroduce awaitable `moveCamera()`, `animateCamera()` and `fitCamera()` on
23+
Android.
24+
- Use synchronous JNI calls on Android to prevent thread hopping.
25+
26+
### Bug Fixes
27+
28+
- Fix exceptions when the map widget rebuilds a lot in a short amount of time.
29+
- Fix `moveCamera()`, `animateCamera()` and `fitCamera()` does not ignore null
30+
parameters.
31+
- Fix app freeze on Android using Flutter 3.29.0 caused by the merged threads.
32+
- Fix exception when adding a RasterSource programatically.
33+
34+
### Misc
35+
36+
- Update examples and documentation.
37+
- Set minimum Flutter version
38+
to [3.29.0](https://discord.com/channels/951867686378409984/951879268227485707/1339719764574081148)
39+
and minimum Dart version
40+
to [3.7.0](https://discord.com/channels/951867686378409984/951879268227485707/1339719747981545485).
41+
- Use the new code formatting.
42+
- Upgrade pigeon to 24.
43+
144
## 0.2.0
245

346
This release is a collection of user affecting changes along a couple of new

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![stars](https://badgen.net/github/stars/josxha/flutter-maplibre?label=stars&color=green&icon=github)](https://github.com/josxha/flutter-maplibre/stargazers)
55
[![likes](https://img.shields.io/pub/likes/maplibre?logo=flutter)](https://pub.dev/packages/maplibre)
66
[![Pub Points](https://img.shields.io/pub/points/maplibre)](https://pub.dev/packages/maplibre/score)
7-
[![Pub Popularity](https://img.shields.io/pub/popularity/maplibre)](https://pub.dev/packages/maplibre)
7+
[![Pub Downloads](https://img.shields.io/pub/dm/maplibre)](https://pub.dev/packages/maplibre)
88

99
[![codecov](https://codecov.io/gh/josxha/flutter-maplibre/graph/badge.svg?token=3LK7EQMSUM)](https://codecov.io/gh/josxha/flutter-maplibre)
1010
[![style: very good analysis](https://img.shields.io/badge/style-very_good_analysis-B22C89.svg)](https://pub.dev/packages/very_good_analysis)
@@ -76,8 +76,6 @@ functionality.
7676
</td>
7777
<td style="text-align: center;">
7878
</td>
79-
<td style="text-align: center;">
80-
</td>
8179
</tr>
8280
</tbody>
8381
</table>
@@ -112,4 +110,5 @@ development:
112110
feature, [open a feature request](https://github.com/josxha/flutter-maplibre/issues/new?assignees=&labels=feature&projects=&template=2-feature.yml&title=%5BFEATURE%5D+%3Ctitle%3E).
113111
or [post your idea as discussion](https://github.com/josxha/flutter-maplibre/discussions/categories/ideas).
114112
- Enhance the package documentation.
115-
- [Sponsor this project](https://www.paypal.com/paypalme/joschaeckert).
113+
- Sponsor this
114+
project: [GitHub-Sponsors](https://github.com/sponsors/josxha), [PayPal](https://www.paypal.com/paypalme/joschaeckert).

android/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group = "com.github.josxha.maplibre"
22
version = "1.0-SNAPSHOT"
33

44
buildscript {
5-
ext.kotlin_version = "2.1.0"
5+
ext.kotlin_version = "2.1.21"
66
repositories {
77
google()
88
mavenCentral()
@@ -12,10 +12,10 @@ buildscript {
1212
}
1313

1414
dependencies {
15-
classpath("com.android.tools.build:gradle:8.6.1")
15+
classpath("com.android.tools.build:gradle:8.10.1")
1616
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
1717
// noinspection GradleDynamicVersion
18-
classpath("org.jlleitschuh.gradle:ktlint-gradle:12.1.+")
18+
classpath("org.jlleitschuh.gradle:ktlint-gradle:12.3.+")
1919
}
2020
}
2121

@@ -45,7 +45,7 @@ android {
4545
namespace = "com.github.josxha.maplibre"
4646
}
4747

48-
compileSdk = 34
48+
compileSdk = 35
4949

5050
compileOptions {
5151
sourceCompatibility = JavaVersion.VERSION_11
@@ -67,18 +67,18 @@ android {
6767

6868
dependencies {
6969
// noinspection GradleDynamicVersion
70-
implementation 'org.maplibre.gl:android-sdk:11.7.+' // JNIGEN
7170
// JNIGEN implementation project(":MapLibreAndroid")
7271
// JNIGEN implementation 'com.google.code.gson:gson:2.11.0'
7372
// JNIGEN implementation 'org.maplibre.gl:maplibre-android-gestures:0.0.3'
7473
// JNIGEN implementation 'org.maplibre.gl:android-sdk-geojson:6.0.1'
7574
// JNIGEN implementation 'org.maplibre.gl:android-sdk-turf:6.0.1'
7675
// JNIGEN implementation 'com.jakewharton.timber:timber:5.0.1'
7776
// JNIGEN implementation 'androidx.annotation:annotation:1.9.0'
77+
implementation 'org.maplibre.gl:android-sdk:11.10.+' // JNIGEN
7878
// implementation 'org.maplibre.gl:android-plugin-offline-v9:3.0.2'
7979
// JNIGEN implementation 'com.squareup.okhttp3:okhttp:4.12.0'
8080
testImplementation("org.jetbrains.kotlin:kotlin-test")
81-
testImplementation("org.mockito:mockito-core:5.14.2")
81+
testImplementation("org.mockito:mockito-core:5.18.0")
8282
}
8383

8484
testOptions {

android/gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)