-
-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #847 from bartekpacia/revive
Revive the plugin
- Loading branch information
Showing
34 changed files
with
256 additions
and
197 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,59 @@ | ||
name: location prepare | ||
|
||
on: | ||
push: | ||
branches: [master, develop] | ||
tags-ignore: ['*'] | ||
pull_request: | ||
branches: [master, develop] | ||
|
||
jobs: | ||
prepare-flutter: | ||
name: Flutter ${{ matrix.flutter-version }} | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
flutter-version: ['3.0.x', '3.3.x', '3.7.x', '3.10.0'] | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: ${{ matrix.flutter-version }} | ||
|
||
- name: Set up Melos | ||
run: dart pub global activate melos ^2.0.0 | ||
|
||
- name: melos bootstrap | ||
run: melos bootstrap | ||
|
||
- name: Format and lint | ||
if: success() || failure() | ||
run: melos run lint:all | ||
|
||
- name: Run tests | ||
if: success() || failure() | ||
run: melos run test --no-select | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
|
||
- name: Generate Gradle wrapper | ||
working-directory: packages/location/example | ||
run: flutter build apk --debug --flavor=does-not-exist || true | ||
|
||
- name: Build example app with Gradle | ||
working-directory: packages/location/example/android | ||
run: ./gradlew :app:assembleDebug | ||
|
||
- name: Build example app with Flutter tool | ||
working-directory: packages/location/example | ||
run: flutter build apk --debug |
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,36 @@ | ||
name: location publish | ||
|
||
on: | ||
push: | ||
tags: ['location-v*'] | ||
|
||
jobs: | ||
publish: | ||
name: Publish on pub.dev | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
# This step adds the auth token for pub.dev | ||
- name: Set up Dart | ||
uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: stable | ||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
cache: true | ||
|
||
- name: Publish to pub.dev | ||
id: pub_release | ||
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 | ||
with: | ||
path: packages/location |
36 changes: 36 additions & 0 deletions
36
.github/workflows/location_platform_interface-publish.yaml
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,36 @@ | ||
name: location_platform_interface publish | ||
|
||
on: | ||
push: | ||
tags: ['location_platform_interface-v*'] | ||
|
||
jobs: | ||
publish: | ||
name: Publish on pub.dev | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
# This step adds the auth token for pub.dev | ||
- name: Set up Dart | ||
uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: stable | ||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
cache: true | ||
|
||
- name: Publish to pub.dev | ||
id: pub_release | ||
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 | ||
with: | ||
path: packages/location_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: location_web publish | ||
|
||
on: | ||
push: | ||
tags: ['location_web-v*'] | ||
|
||
jobs: | ||
publish: | ||
name: Publish on pub.dev | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
# This step adds the auth token for pub.dev | ||
- name: Set up Dart | ||
uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: stable | ||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
cache: true | ||
|
||
- name: Publish to pub.dev | ||
id: pub_release | ||
uses: leancodepl/mobile-tools/.github/actions/pub-release@pub-release-v1 | ||
with: | ||
path: packages/location_web |
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
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.