From 4bc9c14c190f590cdd943702962770aa7c2067f6 Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 09:55:28 +0200 Subject: [PATCH 01/15] feat: Update and rename test-action.yml to compile.yml --- .github/workflows/compile.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/test-action.yml | 24 ------------------------ 2 files changed, 28 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/compile.yml delete mode 100644 .github/workflows/test-action.yml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml new file mode 100644 index 00000000..85f68573 --- /dev/null +++ b/.github/workflows/compile.yml @@ -0,0 +1,28 @@ +name: compileAPKIPA + +on: + pull_request: + types: + - opened + - synchronize + +jobs: + compile_IPA_APK: + runs-on: macos-14 + + steps: + - uses: actions/checkout@v4 + - name: Read app version from YAML + run: | + APP_VERSION=$(grep -oP 'version:\s*\K(.*)' pubspec.yaml | tr -d '[:space:]') + echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV + + - uses: subosito/flutter-action@v2 + - uses: oberhauser-dev/flutter-release-action@v0 + with: + token: ${{ github.token }} + dry-run: true + app-name: 'moonchain_app' + app-version: ${{ env.APP_VERSION }} + tag: ${{ github.ref }} + build-type: 'apk' diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml deleted file mode 100644 index c49dbed0..00000000 --- a/.github/workflows/test-action.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: GPTReviewWorkflow - -on: - pull_request: - types: - - opened - - synchronize - -jobs: - review_with_gpt: - runs-on: ubuntu-latest - - steps: - - name: GPTReviewWorkflow - uses: sheenhx/GPT4ReviewWorkflow@chunk - with: - GIT_COMMIT_HASH: ${{ github.event.pull_request.head.sha }} - GIT_PATCH_OUTPUT: ${{ github.event.pull_request.patch_url }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_ORG_KEY: ${{ secrets.OPENAI_ORG_KEY }} - PR_NUMBER: ${{ github.event.pull_request.number }} - PR_TITLE: ${{ github.event.pull_request.title }} - REPOSITORY_NAME: ${{ github.repository }} From 89f6b503b938ab332a0b2aba504734a20cd06d55 Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 09:56:11 +0200 Subject: [PATCH 02/15] Delete .github/workflows/translate.yml --- .github/workflows/translate.yml | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 .github/workflows/translate.yml diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml deleted file mode 100644 index c778cee3..00000000 --- a/.github/workflows/translate.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Translate - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - -jobs: - translate: - runs-on: ubuntu-latest - - steps: - - name: translate - uses: sheenhx/translatei18n - with: - GIT_COMMIT_HASH: ${{ github.event.pull_request.head.sha }} - GIT_PATCH_OUTPUT: ${{ github.event.pull_request.patch_url }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - OPENAI_ORG_KEY: ${{ secrets.OPENAI_ORG_KEY }} - PR_NUMBER: ${{ github.event.pull_request.number }} - PR_TITLE: ${{ github.event.pull_request.title }} - REPOSITORY_NAME: ${{ github.repository }} From b607e4c35076c0bf8b75cb2ab2fe9810d226b461 Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:15:02 +0200 Subject: [PATCH 03/15] featUpdate compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 85f68573..76e55490 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -26,3 +26,4 @@ jobs: app-version: ${{ env.APP_VERSION }} tag: ${{ github.ref }} build-type: 'apk' + build-args: --flavor product --release From 01650f3ee24e331a1d08f7b33871ae7c39f3c669 Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:24:44 +0200 Subject: [PATCH 04/15] bug:Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 76e55490..984c21b6 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - name: Read app version from YAML run: | - APP_VERSION=$(grep -oP 'version:\s*\K(.*)' pubspec.yaml | tr -d '[:space:]') + APP_VERSION=$(sed -n 's/^version:[ ]*//p' pubspec.yaml | tr -d '[:space:]') echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV - uses: subosito/flutter-action@v2 From f4bfc95513ae38840fed4892b88e43a1c946e9ef Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:32:17 +0200 Subject: [PATCH 05/15] bug:Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 984c21b6..c11cb7bc 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -26,4 +26,4 @@ jobs: app-version: ${{ env.APP_VERSION }} tag: ${{ github.ref }} build-type: 'apk' - build-args: --flavor product --release + build-args: --flavor product From 2ad7898d100f034218cccdce72d8f8e92aed3962 Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:37:37 +0200 Subject: [PATCH 06/15] Update compile.yml --- .github/workflows/compile.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index c11cb7bc..e16317a0 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -26,4 +26,6 @@ jobs: app-version: ${{ env.APP_VERSION }} tag: ${{ github.ref }} build-type: 'apk' - build-args: --flavor product + build-args: |- + --flavor product + --release From 1ce84e045ea6da84ca08f93ef6e76b7dcb761097 Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:38:14 +0200 Subject: [PATCH 07/15] bug:Update compile.yml --- .github/workflows/compile.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e16317a0..5a090912 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -10,6 +10,7 @@ jobs: compile_IPA_APK: runs-on: macos-14 + steps: - uses: actions/checkout@v4 - name: Read app version from YAML From 8a58879a01c282d0641dced810604d547751c41a Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:55:35 +0200 Subject: [PATCH 08/15] fix:Update compile.yml --- .github/workflows/compile.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 5a090912..191d35b2 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -12,7 +12,11 @@ jobs: steps: - - uses: actions/checkout@v4 + - name: Checkout code with submodules + uses: actions/checkout@v4 + with: + submodules: 'recursive' + - name: Read app version from YAML run: | APP_VERSION=$(sed -n 's/^version:[ ]*//p' pubspec.yaml | tr -d '[:space:]') From ad6313d2a52e6274e182c87f780a54efce7b6a51 Mon Sep 17 00:00:00 2001 From: Reza <53487920+reasje@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:52:27 +0330 Subject: [PATCH 09/15] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 8ed3055d..0f94c52e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -58,7 +58,7 @@ dependencies: flutter_blue_plus: ^1.32.7 flutter_dotenv: ^5.1.0 flutter_hooks: ^0.18.5+1 - flutter_i18n: ^0.32.4 + flutter_i18n: 0.32.4 flutter_inappwebview: ^5.8.0 flutter_local_notifications: ^16.1.0 flutter_mailer: ^2.0.2 From 90970335b2998643985708850d0b0c5c9b89de27 Mon Sep 17 00:00:00 2001 From: Reza <53487920+reasje@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:00:26 +0330 Subject: [PATCH 10/15] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 0f94c52e..e2648a34 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -58,7 +58,7 @@ dependencies: flutter_blue_plus: ^1.32.7 flutter_dotenv: ^5.1.0 flutter_hooks: ^0.18.5+1 - flutter_i18n: 0.32.4 + flutter_i18n: ^0.32.5 flutter_inappwebview: ^5.8.0 flutter_local_notifications: ^16.1.0 flutter_mailer: ^2.0.2 From 21dad60b54b564d6b46e23ee86e8c0a7d297e34b Mon Sep 17 00:00:00 2001 From: Reza <53487920+reasje@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:05:15 +0330 Subject: [PATCH 11/15] Update pubspec.yaml --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index e2648a34..d081317e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -58,7 +58,7 @@ dependencies: flutter_blue_plus: ^1.32.7 flutter_dotenv: ^5.1.0 flutter_hooks: ^0.18.5+1 - flutter_i18n: ^0.32.5 + flutter_i18n: ^0.35.1 flutter_inappwebview: ^5.8.0 flutter_local_notifications: ^16.1.0 flutter_mailer: ^2.0.2 From d04c63e53cb90ff82798afd05f7fcb7f3ba404ce Mon Sep 17 00:00:00 2001 From: Reza <53487920+reasje@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:01:33 +0330 Subject: [PATCH 12/15] Update pubspec.yaml --- pubspec.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index d081317e..dec9843d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -103,7 +103,9 @@ dev_dependencies: flutter_lints: ^2.0.0 flutter_test: sdk: flutter - + +dependency_overrides: + flutter_i18n: ^0.35.1 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter packages. From 2867fbcee33ea3aded59b897bbe86cb37851a80d Mon Sep 17 00:00:00 2001 From: Reza <53487920+reasje@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:16:00 +0330 Subject: [PATCH 13/15] Update compile.yml --- .github/workflows/compile.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 191d35b2..729cf1ab 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -22,7 +22,11 @@ jobs: APP_VERSION=$(sed -n 's/^version:[ ]*//p' pubspec.yaml | tr -d '[:space:]') echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV - - uses: subosito/flutter-action@v2 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + flutter-version: 3.7.12 - uses: oberhauser-dev/flutter-release-action@v0 with: token: ${{ github.token }} From 8b2fe9d072c4cfbb69638f6553986b7f41ea5b9e Mon Sep 17 00:00:00 2001 From: Reza <53487920+reasje@users.noreply.github.com> Date: Fri, 6 Sep 2024 17:18:24 +0330 Subject: [PATCH 14/15] Update pubspec.yaml --- pubspec.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index dec9843d..9623cb91 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -58,7 +58,7 @@ dependencies: flutter_blue_plus: ^1.32.7 flutter_dotenv: ^5.1.0 flutter_hooks: ^0.18.5+1 - flutter_i18n: ^0.35.1 + flutter_i18n: ^0.32.4 flutter_inappwebview: ^5.8.0 flutter_local_notifications: ^16.1.0 flutter_mailer: ^2.0.2 @@ -104,8 +104,6 @@ dev_dependencies: flutter_test: sdk: flutter -dependency_overrides: - flutter_i18n: ^0.35.1 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter packages. From dba7636bfa579acf6bd99e1a744270a78990ae26 Mon Sep 17 00:00:00 2001 From: Sheen <9674168+sheenhx@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:02:38 +0200 Subject: [PATCH 15/15] fix:Update compile.yml --- .github/workflows/compile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 729cf1ab..5d72c8d8 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -8,7 +8,7 @@ on: jobs: compile_IPA_APK: - runs-on: macos-14 + runs-on: ubuntu-latest steps: