Skip to content

Commit

Permalink
hot-fix: fix the error l10n not found after build runner build (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockvn authored Jun 6, 2024
1 parent 71ef402 commit 2e0ef9a
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
name: Build

env:
FLUTTER_VERSION: 3.22.0
FLUTTER_VERSION: 3.22.1
XCODE_VERSION: ^15.0.1

jobs:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
pull_request:

env:
FLUTTER_VERSION: 3.22.0
FLUTTER_VERSION: 3.22.1
LIBOLM_VERSION: 3.2.16

name: Deploying on GitHub Pages
Expand Down Expand Up @@ -57,7 +57,6 @@ jobs:
flutter clean
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get # In flutter 3.22, flutter gen-l10n is not working properly, so we need to run flutter pub get again
flutter build web --release --verbose --source-maps --base-href="/${GITHUB_REPOSITORY##*/}/$FOLDER/"
echo "$TWAKE_PREVIEW_CONFIG" | yq '.issue_id = strenv(FOLDER)' > ./build/web/config.json
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- "v*.*.*"

env:
FLUTTER_VERSION: 3.22.0
FLUTTER_VERSION: 3.22.1
XCODE_VERSION: ^15.0.1

name: Release
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
name: Tests

env:
FLUTTER_VERSION: 3.22.0
FLUTTER_VERSION: 3.22.1

jobs:
code_analyze:
Expand Down Expand Up @@ -57,7 +57,6 @@ jobs:
- name: Run widget test
run: |
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get # In flutter 3.22, flutter gen-l10n is not working properly, so we need to run flutter pub get again
flutter test
# integration_test:
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variables:
FLUTTER_VERSION: 3.22.0
FLUTTER_VERSION: 3.22.1

image:
name: cirrusci/flutter:${FLUTTER_VERSION}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Specify versions
ARG FLUTTER_VERSION=3.22.0
ARG FLUTTER_VERSION=3.22.1
ARG OLM_VERSION=3.2.15

# Building libolm
Expand Down
1 change: 0 additions & 1 deletion scripts/build-android-apk.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build apk --release
mkdir -p build/android
cp build/app/outputs/apk/release/app-release.apk build/android/
1 change: 0 additions & 1 deletion scripts/build-android-debug.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env bash
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build apk --debug
1 change: 0 additions & 1 deletion scripts/build-linux-debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ sudo apt-get install -y clang cmake ninja-build \
flutter config --enable-linux-desktop
flutter clean
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build linux --profile -v
1 change: 0 additions & 1 deletion scripts/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ sudo apt-get install -y clang cmake ninja-build \
flutter config --enable-linux-desktop
flutter clean
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build linux --release -v
1 change: 0 additions & 1 deletion scripts/build-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
flutter config --enable-macos-desktop
flutter clean
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
cd macos
bundle exec fastlane sync_dev_id
pod install --repo-update
Expand Down
1 change: 0 additions & 1 deletion scripts/build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ flutter config --enable-web
flutter clean
flutter pub get
flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build web --release --verbose --source-maps --base-href="/web/"
cp config.sample.json ./build/web/config.json
1 change: 0 additions & 1 deletion scripts/build-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ echo "Building for Windows."
flutter config --enable-windows-desktop
flutter clean
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build windows --release -v

# Building libolm
Expand Down
1 change: 0 additions & 1 deletion scripts/code_analyze.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh -ve
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
dart format --set-exit-if-changed lib/ test/
flutter pub get # In flutter 3.22, flutter gen-l10n is not working properly, so we need to run flutter pub get again
flutter analyze
1 change: 0 additions & 1 deletion scripts/prepare-ios.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
# Use alternate beautifier
brew install xcbeautify
cd ios
Expand Down
1 change: 0 additions & 1 deletion scripts/release-playstore-beta.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env bash
flutter pub get && flutter pub run build_runner build --delete-conflicting-outputs
flutter pub get
flutter build appbundle --release
cd android
bundle exec fastlane deploy_internal_test

0 comments on commit 2e0ef9a

Please sign in to comment.