Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
1897f73
build(deps): bump the dependencies group in /docs with 3 updates (#193)
dependabot[bot] Jan 1, 2025
ac4256b
build(deps): bump the dependencies group across 1 directory with 2 up…
dependabot[bot] Jan 17, 2025
efcfade
build(deps): bump katex from 0.16.11 to 0.16.21 in /docs in the npm_a…
dependabot[bot] Jan 19, 2025
85a3d7b
build(deps): bump org.jetbrains.kotlin:kotlin-gradle-plugin from 2.1.…
dependabot[bot] Jan 28, 2025
1321148
chore: update codecov config and readme (#209)
josxha Jan 30, 2025
6edded3
feat: MapLibre Android 11.8.+ (#207)
josxha Jan 30, 2025
b5e68f2
fix: jni exceptions if map rebuilds a lot in a short amount of time (…
josxha Jan 30, 2025
9fb1c6f
build(deps): bump the dependencies group in /docs with 7 updates (#212)
dependabot[bot] Feb 1, 2025
abdddca
build(deps): bump pigeon from 22.7.4 to 24.1.0 (#215)
dependabot[bot] Feb 13, 2025
b93e9e4
docs: bump dependency constraint (#216)
felix-larsen Feb 13, 2025
dfbee5b
feat: ui widget enhancements (#217)
josxha Feb 13, 2025
9a43395
feat: add interactivity to markers in `WidgetLayer` (#213)
pamtbaau Feb 13, 2025
abbab6f
example: Interactive `WidgetLayer` (#214)
pamtbaau Feb 13, 2025
b1566ae
refactor: new dart 3.7 formatting (#223)
josxha Feb 14, 2025
7f76183
feat: sync jni calls (#222)
josxha Feb 14, 2025
639e6a4
fix: `OfflineManager` causes app to freeze (#224)
josxha Feb 15, 2025
fd85747
feat: reintroduce awaitable `MapController` calls (#225)
josxha Feb 15, 2025
e766c70
fix: add RasterSource programatically throws exception (#228)
josxha Feb 16, 2025
2e4f01c
chore: prepare `v0.2.1` release (#226)
josxha Feb 16, 2025
eecca95
build(deps): bump dompurify from 3.2.2 to 3.2.4 in /docs in the npm_a…
dependabot[bot] Feb 16, 2025
022b1a5
build(deps): bump com.android.tools.build:gradle from 8.8.0 to 8.8.1 …
dependabot[bot] Feb 19, 2025
9938566
chore: update example app icon (#235)
josxha Feb 24, 2025
a6e9c46
feat: jni / jnigen 0.14.0 (#237)
josxha Feb 24, 2025
387b65b
build(deps): bump the dependencies group across 2 directories with 4 …
dependabot[bot] Mar 6, 2025
0d1acf1
build(deps-dev): bump typescript from 5.7.3 to 5.8.2 in /docs in the …
dependabot[bot] Mar 6, 2025
c9edfe0
feat: further embrace jni (#241)
josxha Mar 8, 2025
dfe0f15
build(deps): bump com.android.tools.build:gradle from 8.8.2 to 8.9.0 …
dependabot[bot] Mar 15, 2025
48d11a5
build(deps): bump prismjs from 1.29.0 to 1.30.0 in /docs in the npm_a…
dependabot[bot] Mar 15, 2025
1df507b
build(deps): bump the npm_and_yarn group in /docs with 3 updates (#245)
dependabot[bot] Mar 15, 2025
6beea86
build(deps): bump org.mockito:mockito-core from 5.16.0 to 5.16.1 in /…
dependabot[bot] Mar 23, 2025
60d449b
build(deps): bump the dependencies group in /docs with 2 updates (#252)
dependabot[bot] Apr 2, 2025
a832d6b
build(deps): bump the dependencies group across 1 directory with 2 up…
dependabot[bot] Apr 2, 2025
4db3f52
build(deps): bump pigeon from 24.2.2 to 25.2.0 (#251)
dependabot[bot] Apr 2, 2025
b93a648
build(deps): bump image-size from 1.1.1 to 1.2.1 in /docs in the npm_…
dependabot[bot] Apr 2, 2025
7cfe380
build(deps): bump org.mockito:mockito-core from 5.16.1 to 5.17.0 in /…
dependabot[bot] Apr 7, 2025
d680bd1
chore: update project files (#258)
josxha Apr 10, 2025
b25f505
build(deps): bump estree-util-value-to-estree from 3.1.2 to 3.3.3 in …
dependabot[bot] Apr 10, 2025
1095c24
feat: add `LngLatBounds.fromPoints` method (#266)
jt274 Jun 4, 2025
9ec8a44
feat: update dependencies, bump min flutter version to 3.32.0, maplib…
josxha Jun 4, 2025
97f4b2e
build(deps): bump the dependencies group across 1 directory with 4 up…
dependabot[bot] Jun 4, 2025
51b6012
build(deps): bump http-proxy-middleware from 2.0.7 to 2.0.9 in /docs …
dependabot[bot] Jun 4, 2025
8fe85ae
build(deps): bump go_router from 14.8.1 to 15.1.2 in /example (#268)
dependabot[bot] Jun 4, 2025
a70b1c0
build(deps): bump very_good_analysis from 8.0.0 to 9.0.0 in /example …
dependabot[bot] Jun 9, 2025
cdf655c
build(deps): bump org.jlleitschuh.gradle.ktlint from 12.2.+ to 12.3.0…
dependabot[bot] Jun 9, 2025
69a7d8b
build(deps): bump very_good_analysis from 8.0.0 to 9.0.0 (#280)
dependabot[bot] Jun 9, 2025
e6bf021
build(deps): bump brace-expansion from 1.1.11 to 1.1.12 in /docs in t…
dependabot[bot] Jun 12, 2025
a090528
build(deps): bump the dependencies group in /docs with 6 updates (#286)
dependabot[bot] Jul 1, 2025
c61d000
Merge remote-tracking branch 'upstream/main' into v0.2.0-no-ios-upstream
Jul 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
custom: ["https://www.paypal.com/paypalme/joschaeckert"]

github: ["josxha"]
custom: ["https://paypal.me/joschaeckert"]
10 changes: 8 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: "Q&A - GitHub Discussions"
url: https://github.com/josxha/flutter-maplibre/discussions/categories/q-a
- name: "Ask a Question"
url: https://github.com/josxha/flutter-maplibre/discussions/new?category=q-a
about: "If you have a question about using MapLibre on Flutter"
- name: "Start a Discussion"
url: https://github.com/josxha/flutter-maplibre/discussions/new?category=general
about: "Start a discussion on some topic"
- name: "Share some Idea"
url: https://github.com/josxha/flutter-maplibre/discussions/new?category=ideas
about: "Share an idea, that isn't quite ready for a feature request"
- name: "Join on Slack"
url: https://slack.openstreetmap.us/
about: "Join #maplibre-flutter on the OpenStreetMap Slack"
10 changes: 9 additions & 1 deletion codecov.yml → .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,12 @@ comment:
ignore:
- "**/*.g.dart"
- "lib/src/platform/android/jni/**"
- "example/**"
- "example/**"

github_checks:
annotations: false

coverage:
status:
project: off
patch: off
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
- uses: subosito/flutter-action@v2
with:
cache: true
- name: "Get Flutter dependencies"
run: dart pub get
- name: Lint analysis
run: dart format --set-exit-if-changed .
lint-dart:
Expand Down Expand Up @@ -69,7 +71,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: [ '3.27.0', '' ]
sdk: [ '3.32.0', '' ]
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -176,7 +178,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: [ '3.27.0', '' ]
sdk: [ '3.32.0', '' ]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -208,7 +210,7 @@ jobs:
# strategy:
# fail-fast: false
# matrix:
# sdk: [ '3.27.0', '' ]
# sdk: [ '3.32.0', '' ]
# steps:
# - uses: actions/checkout@v4
# - uses: subosito/flutter-action@v2
Expand Down Expand Up @@ -237,7 +239,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: [ '3.27.0', '' ]
sdk: [ '3.32.0', '' ]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
Expand All @@ -257,7 +259,7 @@ jobs:
strategy:
fail-fast: false
matrix:
sdk: [ '3.27.0', '' ]
sdk: [ '3.32.0', '' ]
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
Expand Down
30 changes: 15 additions & 15 deletions .metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This file should be version controlled and should not be manually edited.

version:
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf"
channel: "stable"

project_type: plugin
Expand All @@ -13,26 +13,26 @@ project_type: plugin
migration:
platforms:
- platform: root
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
- platform: android
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
- platform: ios
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
- platform: linux
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
- platform: macos
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
- platform: web
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
- platform: windows
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf
base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf

# User provided section

Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
## 0.2.1

This release builds upon the long anticipated merged threads in Flutter 3.29.0
which removes the need of switching threads. Furthermore, the release contains a
couple of features and new fixes.

Thanks for your contributions for this release, @felix-larsen and @pamtbaau!

### New Features

- Upgrade MapLibre Native on Android
to [11.8.0](https://github.com/maplibre/maplibre-native/blob/main/platform/android/CHANGELOG.md#1180)
which introduces support for PMTiles.
- Add `removePinchOnPressed` and `webRotationSpeed` as parameters to the
`MapCompass` widget.
- Allow the `SourceAttribution` widget to use multiple lines for its
attributions.
- Underline an attribution link for a `SourceAttribution` widget when hovered
with a cursor.
- Add the parameter `allowInteraction` to the `WidgetLayer` that allows widgets
to detect gestures on these widgets.
- Reintroduce awaitable `moveCamera()`, `animateCamera()` and `fitCamera()` on
Android.
- Use synchronous JNI calls on Android to prevent thread hopping.

### Bug Fixes

- Fix exceptions when the map widget rebuilds a lot in a short amount of time.
- Fix `moveCamera()`, `animateCamera()` and `fitCamera()` does not ignore null
parameters.
- Fix app freeze on Android using Flutter 3.29.0 caused by the merged threads.
- Fix exception when adding a RasterSource programatically.

### Misc

- Update examples and documentation.
- Set minimum Flutter version
to [3.29.0](https://discord.com/channels/951867686378409984/951879268227485707/1339719764574081148)
and minimum Dart version
to [3.7.0](https://discord.com/channels/951867686378409984/951879268227485707/1339719747981545485).
- Use the new code formatting.
- Upgrade pigeon to 24.

## 0.2.0

This release is a collection of user affecting changes along a couple of new
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![stars](https://badgen.net/github/stars/josxha/flutter-maplibre?label=stars&color=green&icon=github)](https://github.com/josxha/flutter-maplibre/stargazers)
[![likes](https://img.shields.io/pub/likes/maplibre?logo=flutter)](https://pub.dev/packages/maplibre)
[![Pub Points](https://img.shields.io/pub/points/maplibre)](https://pub.dev/packages/maplibre/score)
[![Pub Popularity](https://img.shields.io/pub/popularity/maplibre)](https://pub.dev/packages/maplibre)
[![Pub Downloads](https://img.shields.io/pub/dm/maplibre)](https://pub.dev/packages/maplibre)

[![codecov](https://codecov.io/gh/josxha/flutter-maplibre/graph/badge.svg?token=3LK7EQMSUM)](https://codecov.io/gh/josxha/flutter-maplibre)
[![style: very good analysis](https://img.shields.io/badge/style-very_good_analysis-B22C89.svg)](https://pub.dev/packages/very_good_analysis)
Expand Down Expand Up @@ -76,8 +76,6 @@ functionality.
</td>
<td style="text-align: center;">
</td>
<td style="text-align: center;">
</td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -112,4 +110,5 @@ development:
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).
or [post your idea as discussion](https://github.com/josxha/flutter-maplibre/discussions/categories/ideas).
- Enhance the package documentation.
- [Sponsor this project](https://www.paypal.com/paypalme/joschaeckert).
- Sponsor this
project: [GitHub-Sponsors](https://github.com/sponsors/josxha), [PayPal](https://www.paypal.com/paypalme/joschaeckert).
12 changes: 6 additions & 6 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group = "com.github.josxha.maplibre"
version = "1.0-SNAPSHOT"

buildscript {
ext.kotlin_version = "2.1.0"
ext.kotlin_version = "2.1.21"
repositories {
google()
mavenCentral()
Expand All @@ -12,10 +12,10 @@ buildscript {
}

dependencies {
classpath("com.android.tools.build:gradle:8.6.1")
classpath("com.android.tools.build:gradle:8.10.1")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
// noinspection GradleDynamicVersion
classpath("org.jlleitschuh.gradle:ktlint-gradle:12.1.+")
classpath("org.jlleitschuh.gradle:ktlint-gradle:12.3.+")
}
}

Expand Down Expand Up @@ -45,7 +45,7 @@ android {
namespace = "com.github.josxha.maplibre"
}

compileSdk = 34
compileSdk = 35

compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
Expand All @@ -67,18 +67,18 @@ android {

dependencies {
// noinspection GradleDynamicVersion
implementation 'org.maplibre.gl:android-sdk:11.7.+' // JNIGEN
// JNIGEN implementation project(":MapLibreAndroid")
// JNIGEN implementation 'com.google.code.gson:gson:2.11.0'
// JNIGEN implementation 'org.maplibre.gl:maplibre-android-gestures:0.0.3'
// JNIGEN implementation 'org.maplibre.gl:android-sdk-geojson:6.0.1'
// JNIGEN implementation 'org.maplibre.gl:android-sdk-turf:6.0.1'
// JNIGEN implementation 'com.jakewharton.timber:timber:5.0.1'
// JNIGEN implementation 'androidx.annotation:annotation:1.9.0'
implementation 'org.maplibre.gl:android-sdk:11.10.+' // JNIGEN
// implementation 'org.maplibre.gl:android-plugin-offline-v9:3.0.2'
// JNIGEN implementation 'com.squareup.okhttp3:okhttp:4.12.0'
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.mockito:mockito-core:5.14.2")
testImplementation("org.mockito:mockito-core:5.18.0")
}

testOptions {
Expand Down
Empty file modified android/gradlew
100644 → 100755
Empty file.
Loading
Loading