-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/renovate/flutter_local_notificat…
…ions-14.x' into dev
- Loading branch information
Showing
67 changed files
with
2,277 additions
and
1,374 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 |
---|---|---|
|
@@ -25,7 +25,7 @@ jobs: | |
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Flutter analyze' | ||
run: flutter analyze | ||
run: flutter analyze lib | ||
format: | ||
name: 'Format' | ||
runs-on: ubuntu-latest | ||
|
@@ -38,6 +38,24 @@ jobs: | |
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Flutter format' | ||
run: dart format lib --set-exit-if-changed | ||
code-metrics: | ||
name: 'Code metrics' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Setup flutter action' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Get dependencies' | ||
run: flutter pub get | ||
- name: '[Global] Code metrics' | ||
run: flutter pub run dart_code_metrics:metrics analyze --fatal-style --fatal-warnings --fatal-performance --reporter=github lib | ||
- name: '[Unused files] Code metrics' | ||
run: flutter pub run dart_code_metrics:metrics check-unused-files lib | ||
- name: '[Unused code] Code metrics' | ||
run: flutter pub run dart_code_metrics:metrics check-unused-code lib | ||
test: | ||
name: 'Test' | ||
runs-on: ubuntu-latest | ||
|
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,99 +1,99 @@ | ||
name: Flutter - Build | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
flutter_version: | ||
description: 'The Flutter used (ex: 2.5.1)' | ||
required: true | ||
type: string | ||
android_output: | ||
description: 'Android build file type output (apk or abb)' | ||
required: true | ||
type: string | ||
secrets: | ||
passphrase: | ||
description: 'The passphrase to decrypt the configuration' | ||
required: true | ||
|
||
|
||
jobs: | ||
build_android: | ||
name: 'Android (${{ inputs.android_output }})' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: 'Decrypt secret configuration' | ||
run: ./.github/scripts/decrypt_secret.sh | ||
env: | ||
PASSPHRASE: ${{ secrets.passphrase }} | ||
- name: 'Check secret configuration' | ||
run: ./.github/scripts/check_secrets_decryption.sh | ||
- name: 'Set up JAVA' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11.x' | ||
- name: 'Setup Flutter' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Build Android APK' | ||
if: ${{ inputs.android_output == 'apk' }} | ||
# Build APK version of the app | ||
run: flutter build apk --split-per-abi | ||
- name: 'Save APK' | ||
if: ${{ inputs.android_output == 'apk' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'apk-build' | ||
path: build/app/outputs/apk/release/app-arm64-v8a-release.apk | ||
- name: 'Generate build number' | ||
if: ${{ inputs.android_output == 'aab' }} | ||
# Build App Bundle version of the app | ||
run: | | ||
BUILD_NUMBER=$(git rev-list --all --count) | ||
echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV | ||
echo "This build is tagged as $BUILD_NUMBER on $GITHUB_REF" | ||
- name: 'Build Android App Bundle' | ||
if: ${{ inputs.android_output == 'aab' }} | ||
run: flutter build appbundle --dart-define=FLAVOR=prod --build-number="$BUILD_NUMBER" | ||
env: | ||
BUILD_NUMBER: ${{ env.BUILD_NUMBER }} | ||
- name: 'Save AAB' | ||
if: ${{ inputs.android_output == 'aab' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'aab-build' | ||
path: build/app/outputs/bundle/release/app-release.aab | ||
build_ios: | ||
name: 'iOS' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Decrypt secret configuration' | ||
run: ./.github/scripts/decrypt_secret.sh | ||
env: | ||
PASSPHRASE: ${{ secrets.passphrase }} | ||
- name: 'Check secret configuration' | ||
run: ./.github/scripts/check_secrets_decryption.sh | ||
- name: '🥺' | ||
run: echo 'WIP' | ||
build_web: | ||
name: 'WEB' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Decrypt secret configuration' | ||
run: ./.github/scripts/decrypt_secret.sh | ||
env: | ||
PASSPHRASE: ${{ secrets.passphrase }} | ||
- name: 'Check secret configuration' | ||
run: ./.github/scripts/check_secrets_decryption.sh | ||
- name: '🥺' | ||
name: Flutter - Build | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
flutter_version: | ||
description: 'The Flutter used (ex: 2.5.1)' | ||
required: true | ||
type: string | ||
android_output: | ||
description: 'Android build file type output (apk or abb)' | ||
required: true | ||
type: string | ||
secrets: | ||
passphrase: | ||
description: 'The passphrase to decrypt the configuration' | ||
required: true | ||
|
||
|
||
jobs: | ||
build_android: | ||
name: 'Android (${{ inputs.android_output }})' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: 'Decrypt secret configuration' | ||
run: ./.github/scripts/decrypt_secret.sh | ||
env: | ||
PASSPHRASE: ${{ secrets.passphrase }} | ||
- name: 'Check secret configuration' | ||
run: ./.github/scripts/check_secrets_decryption.sh | ||
- name: 'Set up JAVA' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11.x' | ||
- name: 'Setup Flutter' | ||
uses: subosito/[email protected] | ||
with: | ||
flutter-version: ${{ inputs.flutter_version }} | ||
- name: 'Build Android APK' | ||
if: ${{ inputs.android_output == 'apk' }} | ||
# Build APK version of the app | ||
run: flutter build apk --split-per-abi | ||
- name: 'Save APK' | ||
if: ${{ inputs.android_output == 'apk' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'apk-build' | ||
path: build/app/outputs/apk/release/app-arm64-v8a-release.apk | ||
- name: 'Generate build number' | ||
if: ${{ inputs.android_output == 'aab' }} | ||
# Build App Bundle version of the app | ||
run: | | ||
BUILD_NUMBER=$(git rev-list --all --count) | ||
echo "BUILD_NUMBER=$BUILD_NUMBER" >> $GITHUB_ENV | ||
echo "This build is tagged as $BUILD_NUMBER on $GITHUB_REF" | ||
- name: 'Build Android App Bundle' | ||
if: ${{ inputs.android_output == 'aab' }} | ||
run: flutter build appbundle --build-number="$BUILD_NUMBER" | ||
env: | ||
BUILD_NUMBER: ${{ env.BUILD_NUMBER }} | ||
- name: 'Save AAB' | ||
if: ${{ inputs.android_output == 'aab' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'aab-build' | ||
path: build/app/outputs/bundle/release/app-release.aab | ||
build_ios: | ||
name: 'iOS' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Decrypt secret configuration' | ||
run: ./.github/scripts/decrypt_secret.sh | ||
env: | ||
PASSPHRASE: ${{ secrets.passphrase }} | ||
- name: 'Check secret configuration' | ||
run: ./.github/scripts/check_secrets_decryption.sh | ||
- name: '🥺' | ||
run: echo 'WIP' | ||
build_web: | ||
name: 'WEB' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout source code' | ||
uses: actions/checkout@v3 | ||
- name: 'Decrypt secret configuration' | ||
run: ./.github/scripts/decrypt_secret.sh | ||
env: | ||
PASSPHRASE: ${{ secrets.passphrase }} | ||
- name: 'Check secret configuration' | ||
run: ./.github/scripts/check_secrets_decryption.sh | ||
- name: '🥺' | ||
run: echo 'WIP' |
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.