Skip to content

Commit

Permalink
feat: Audio player feat: Camera view feat: Video player feat: Star ra…
Browse files Browse the repository at this point in the history
…ting feat: Interactive viewer feat: Speed scroll list fix: Add semantics to SplitTabNavigator chore: enable GitHub actions for code quality, preview, release fix: html viewer bugs chore: update dependencies chore: Update icons chore: Update flutter_quill chore: Update translations
  • Loading branch information
thelukewalton committed Feb 26, 2024
1 parent 23d4c83 commit 8c86b9c
Show file tree
Hide file tree
Showing 201 changed files with 9,132 additions and 10,005 deletions.
74 changes: 0 additions & 74 deletions .github/workflows/merge.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "CI - Release"
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"

jobs:
check-package:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: pub.dev
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.19.x"
channel: "stable"
- name: Install dependencies
run: flutter pub get
- name: Format code
run: dart format --fix .
- name: Check Publish Warnings
run: dart pub publish --dry-run
- name: Publish
run: dart pub publish --force
deploy-preview:
name: Deploy preview version of the example app on firebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.19.x"
channel: "stable"
- name: Setup flutter
run: flutter pub get
- name: Build example app
run: |
cd example
flutter build web -o ../build --no-tree-shake-icons
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZDS_FLUTTER }}"
expires: 7d
projectId: zds-c9c24
channelId: "release"
64 changes: 51 additions & 13 deletions .github/workflows/pr.yml → .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,52 @@
name: "PR"

name: CI - Pull Request
on:
pull_request:

jobs:
changes:
up-to-date:
name: "Check branch is up to date"
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
files: ${{steps.changed-files.outputs.any_changed}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
ref: ${{ github.head_ref }}
- name: Check branch is up to date
run: |
if git merge-base --is-ancestor ${{ github.event.pull_request.base.sha}} ${{ github.event.pull_request.head.sha}}
echo ${{ github.event.pull_request.base.sha}}
echo ${{ github.event.pull_request.head.sha}}
if git merge-base --is-ancestor ${{ github.event.pull_request.base.sha}} ${{ github.event.pull_request.head.sha}}
then
echo "Your branch is up to date."
exit 0
else
echo "You need to merge / rebase."
exit 1
fi
- name: Get all changed *.dart, files in docs or pubspec.yaml
changes:
name: "Check for changes in code"
needs: up-to-date
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
files: ${{steps.changed-files.outputs.any_changed}}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
persist-credentials: false
- name: Get all changed *.dart and pubspec.yaml
id: changed-files
uses: tj-actions/changed-files@v37
uses: tj-actions/changed-files@v41
with:
base_sha: ${{ github.event.pull_request.base.sha }}
sha: ${{ github.event.pull_request.head.sha }}
files: |
**/*.dart
pubspec.yaml
analyze:
code-quality:
runs-on: ubuntu-latest
timeout-minutes: 20
needs: changes
Expand All @@ -44,17 +56,20 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v7.0.7
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.13.x"
flutter-version: "3.19.x"
channel: "stable"
- name: Setup flutter
run: flutter pub get
- name: Lint and format
run: |
dart format . -l 120
dart fix --apply
dart analyze
flutter analyze
- name: Check for modified files
id: git-check
run: echo "modified=$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)" >> $GITHUB_ENV
Expand All @@ -66,3 +81,26 @@ jobs:
git add -A
git commit -m '[automated commit] lint format and import sort'
git push
deploy-preview:
name: Deploy preview version of the example app on firebase
needs: code-quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.19.x"
channel: "stable"
- name: Setup flutter
run: flutter pub get
- name: Build example app
run: |
cd example
flutter build web -o ../build --no-tree-shake-icons
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZDS_FLUTTER }}"
expires: 7d
projectId: zds-c9c24
channelId: "pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}"
17 changes: 17 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: release-please
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
31 changes: 0 additions & 31 deletions .github/workflows/release.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ pubspec.lock

**/node_modules
.master/
**/.fvm/
**/.fvm/
.fvmrc
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.0.1"
}
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ A library of Flutter components made by Zebra Technologies based on the Zebra De
Make sure your app meets the following requirements before using ZDS Flutter

- sdk: >=3.0.10 <4.0.0
- flutter: >=3.7.0 <3.16.0

```
Note: This package version may not work on the newest versions of Flutter (<3.16.0).
```
- flutter: >=3.16.0

## Usage

Expand Down

0 comments on commit 8c86b9c

Please sign in to comment.