Skip to content

Commit

Permalink
Storage abstraction (#15)
Browse files Browse the repository at this point in the history
* refactor local storage into standalone plugin

* update storage interface

* export interface libs

* remove duplicate property getters, using RetryClient, fix log not show on result

* fix logger on io compute

* code reformat

* Update pubspec.yaml

* Delete credentials.sh

* Update parse_test.dart

* Update pub-publish-test.yaml

* Update pub-publish.yaml

* update .idea
  • Loading branch information
alann-maulana authored Aug 29, 2021
1 parent 1648f23 commit fb31172
Show file tree
Hide file tree
Showing 24 changed files with 341 additions and 1,016 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/pub-publish-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
build:
name: Publishing Test (Dry Run)
runs-on: ubuntu-latest
env:
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
Expand All @@ -23,15 +21,30 @@ jobs:
with:
flutter-version: '2.0.5'
channel: 'stable'
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.PUB_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.PUB_REFRESH_TOKEN }}",
"idToken":"${{ secrets.PUB_ID_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": 1627651143489
}
EOF
- name: Documenting package
run: |
echo "FLUTTER_ROOT=$FLUTTER_HOME" >> $GITHUB_ENV
bash scripts/credentials.sh
rm -rf scripts/
make
make deps
pub global activate dartdoc
make docs
- name: Pana analyzer
run: |
pub global activate pana
make pana
pub publish -n -v
pana -s path . --no-warning
- name: Publish dry run
run: |
pub publish -n
25 changes: 15 additions & 10 deletions .github/workflows/pub-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ jobs:
build:
name: Publishing
runs-on: ubuntu-latest
env:
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
Expand All @@ -20,13 +18,20 @@ jobs:
with:
flutter-version: '2.0.5'
channel: 'stable'
- name: Documenting package
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.PUB_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.PUB_REFRESH_TOKEN }}",
"idToken":"${{ secrets.PUB_ID_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": 1627651143489
}
EOF
- name: Publishing package
run: |
echo "FLUTTER_ROOT=$FLUTTER_HOME" >> $GITHUB_ENV
bash scripts/credentials.sh
rm -rf scripts/
make
make deps
pub global activate dartdoc
make docs
pub publish -f -v
pub publish -f
Loading

0 comments on commit fb31172

Please sign in to comment.