-
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.
feat: add type parameter on registerAdapter method
- Loading branch information
1 parent
303a5b7
commit 7ccdc62
Showing
11 changed files
with
104 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
# .github/workflows/publish.yml | ||
name: Publish to pub.dev | ||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' # for tags like: 'v1.2.3' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: 📚 Git Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🐦 Setup Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
channel: stable | ||
cache: true | ||
|
||
- name: 📦 Install Dependencies | ||
run: flutter pub get | ||
|
||
- name: 🔐 Setup Pub Credentials | ||
run: | | ||
mkdir -p $XDG_CONFIG_HOME/dart | ||
echo "$XDG_CONFIG_HOME/dart/pub-credentials.json" | ||
cat <<EOF > "$XDG_CONFIG_HOME/dart/pub-credentials.json" | ||
{ | ||
"accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}", | ||
"refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}", | ||
"tokenEndpoint":"${{ secrets.OAUTH_TOKEN_ENDPOINT }}", | ||
"scopes": ${{ secrets.OAUTH_SCOPE }}, | ||
"expiration": ${{ secrets.OAUTH_EXPIRY_TIME }} | ||
} | ||
EOF | ||
- name: 📝 Format Code | ||
run: dart format . | ||
|
||
- name: 📝 Analyze Code | ||
run: dart analyze . | ||
|
||
- name: 🚀 Publish package | ||
run: dart 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
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,11 @@ | ||
# This is a generated file; do not edit or check into version control. | ||
flutter_secure_storage=/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.0.0/ | ||
flutter_secure_storage_linux=/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.0/ | ||
flutter_secure_storage_macos=/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.0.1/ | ||
flutter_secure_storage_web=/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.1.2/ | ||
flutter_secure_storage_windows=/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.0.0/ | ||
path_provider=/Users/kishor/.pub-cache/hosted/pub.dev/path_provider-2.1.2/ | ||
path_provider_android=/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_android-2.2.2/ | ||
path_provider_foundation=/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/ | ||
path_provider_linux=/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ | ||
path_provider_windows=/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/ |
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 @@ | ||
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_secure_storage","path":"/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.0.0/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"flutter_secure_storage","path":"/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage-9.0.0/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_android-2.2.2/","native_build":true,"dependencies":[]}],"macos":[{"name":"flutter_secure_storage_macos","path":"/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.0.1/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"flutter_secure_storage_linux","path":"/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.0/","native_build":true,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"flutter_secure_storage_windows","path":"/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage_windows-3.0.0/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/kishor/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]}],"web":[{"name":"flutter_secure_storage_web","path":"/Users/kishor/.pub-cache/hosted/pub.dev/flutter_secure_storage_web-1.1.2/","dependencies":[]}]},"dependencyGraph":[{"name":"flutter_secure_storage","dependencies":["flutter_secure_storage_linux","flutter_secure_storage_macos","flutter_secure_storage_web","flutter_secure_storage_windows"]},{"name":"flutter_secure_storage_linux","dependencies":[]},{"name":"flutter_secure_storage_macos","dependencies":[]},{"name":"flutter_secure_storage_web","dependencies":[]},{"name":"flutter_secure_storage_windows","dependencies":["path_provider"]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-02-20 13:44:30.387915","version":"3.19.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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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