forked from maplibre/flutter-maplibre-gl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare project for publishing (maplibre#411)
The main idea here is to get a the publishing working with the current state of the project. The `maplibre_gl_web` has never been published. With the new publishing workflow all packages will hopefully be published with a single tag ( `v0.19.0` in this case). * raise version to 0.19.0 * raise min Dart SDK to 3.0.0 as required by the `js: ^0.6.7` dependency * add `pubspec_overrides.yaml` files and move overridden local deps there * add `.pubignore` to prevent publishing unnecessary files * prepare new publish workflow * add supported platforms to `pubspec.yaml` * cancel in progress jobs if new commits are pushed * necessary lint fixes and formatting to satisfy Flutter version --------- Co-authored-by: Joscha <[email protected]>
- Loading branch information
1 parent
3dddd49
commit 793bf81
Showing
47 changed files
with
177 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish a package to pub.dev | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
working-directory: | ||
description: Directory of the package to publish | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
publish: | ||
name: 'Publish to pub.dev' | ||
permissions: | ||
id-token: write # This is required for requesting the OIDC | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Setup Dart SDK with JWT token | ||
- uses: dart-lang/setup-dart@v1 | ||
- name: Install dependencies | ||
run: dart pub get | ||
# Publishing... | ||
# skip validation due to https://github.com/dart-lang/setup-dart/issues/68 | ||
- name: Publish to pub.dev | ||
run: dart pub publish --force --skip-validation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Publish maplibre_gl packages to pub.dev | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
publish_maplibre_gl_platform_interface: | ||
uses: ./.github/workflows/publish_single.yml | ||
with: | ||
working-directory: maplibre_gl_platform_interface | ||
publish_maplibre_gl_web: | ||
needs: [publish_maplibre_gl_platform_interface] | ||
uses: ./.github/workflows/publish_single.yml | ||
with: | ||
working-directory: maplibre_gl_web | ||
publish_maplibre_gl: | ||
needs: [publish_maplibre_gl_platform_interface, publish_maplibre_gl_web] | ||
uses: ./.github/workflows/publish_single.yml | ||
with: | ||
working-directory: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
scripts | ||
screenshot.png | ||
maplibre_gl_web | ||
maplibre_gl_platform_interface |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ android { | |
} | ||
|
||
kotlinOptions { | ||
jvmTarget = '1.8' | ||
jvmTarget = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
sourceSets { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
dependency_overrides: | ||
maplibre_gl: | ||
path: .. | ||
maplibre_gl_platform_interface: | ||
path: ../maplibre_gl_platform_interface | ||
maplibre_gl_web: | ||
path: ../maplibre_gl_web |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
name: maplibre_gl_platform_interface | ||
description: A common platform interface for the maplibre_gl plugin. | ||
version: 0.18.0 | ||
version: 0.19.0 | ||
repository: https://github.com/maplibre/flutter-maplibre-gl | ||
issue_tracker: https://github.com/maplibre/flutter-maplibre-gl/issues | ||
|
||
environment: | ||
sdk: ">=3.0.0 <4.0.0" | ||
flutter: ">=3.10.0" | ||
|
||
dependencies: | ||
flutter: | ||
sdk: flutter | ||
meta: ^1.0.5 | ||
|
||
dev_dependencies: | ||
flutter_lints: '>=3.0.0 <5.0.0' | ||
|
||
environment: | ||
sdk: '>=2.14.0 <3.0.0' | ||
flutter: '>=2.10.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.