-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated project dependencies & improved the docs (#21)
* Updated FVM and Github Actions config * Updated package dependencies * Added missing readme about adding Proguard config Fixed the README formatting * Updated changelog * Updated publish jobs * Job fix * Updated Flutter constraint Removed ignored file from git * Github Actions cleanup
- Loading branch information
1 parent
b2d0817
commit 879240c
Showing
13 changed files
with
208 additions
and
106 deletions.
There are no files selected for viewing
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,4 @@ | ||
{ | ||
"flutter": "3.19.6", | ||
"flavors": {} | ||
} |
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 |
---|---|---|
|
@@ -4,6 +4,25 @@ on: | |
push: | ||
tags: | ||
- '[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
env: | ||
FLUTTER_VERSION: 3.19.6 | ||
|
||
jobs: | ||
publish: | ||
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | ||
name: 'Publish to pub.dev' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install and set Flutter version | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: stable | ||
cache: true | ||
- name: Install dependencies | ||
run: flutter pub get | ||
- name: Publish - dry run | ||
run: flutter pub publish --dry-run | ||
- name: Publish to pub.dev | ||
run: flutter pub publish -f |
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 |
---|---|---|
|
@@ -2,24 +2,29 @@ name: Run tests and static checks | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- main | ||
workflow_dispatch: | ||
|
||
env: | ||
FLUTTER_VERSION: 3.19.6 | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Install and set Flutter version | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: '3.13.6' | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: stable | ||
cache: true | ||
- name: Restore packages | ||
run: flutter pub get | ||
- name: Generate required files | ||
|
@@ -28,6 +33,16 @@ jobs: | |
run: flutter analyze | ||
- name: Run tests | ||
run: flutter test --coverage | ||
|
||
|
||
|
||
validate-for-pub: | ||
name: "Perform dry run for pub.dev publish" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install and set Flutter version | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ env.FLUTTER_VERSION }} | ||
channel: stable | ||
cache: true | ||
- name: Publish - dry run | ||
run: flutter pub publish --dry-run |
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,12 +1,10 @@ | ||
{ | ||
"dart.flutterSdkPath": ".fvm/flutter_sdk", | ||
// Remove .fvm files from search | ||
"search.exclude": { | ||
"**/.fvm": true | ||
}, | ||
// Remove from file watching | ||
"files.watcherExclude": { | ||
"**/.fvm": true | ||
}, | ||
"java.configuration.updateBuildConfiguration": "automatic" | ||
} | ||
"dart.flutterSdkPath": ".fvm/versions/3.19.6", | ||
"search.exclude": { | ||
"**/.fvm": true | ||
}, | ||
"files.watcherExclude": { | ||
"**/.fvm": true | ||
}, | ||
"java.configuration.updateBuildConfiguration": "automatic" | ||
} |
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.