This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #288 from MXCzkEVM/pre_main_qa
Moonbase Release Candidate 1
- Loading branch information
Showing
462 changed files
with
7,645 additions
and
3,349 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 |
---|---|---|
@@ -0,0 +1,145 @@ | ||
name: Build and distribute | ||
|
||
on: | ||
push: | ||
branches: | ||
- pre_main_qa | ||
|
||
jobs: | ||
build-apk: | ||
name: Build-apk | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code with submodules | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
|
||
- name: Set Version Code | ||
run: | | ||
echo "Received Number: ${{ github.run_number }}" | ||
echo "VERSION_CODE=${{ github.run_number }}" >> $GITHUB_ENV | ||
echo "Set VERSION_CODE to: ${{ github.run_number }}" | ||
shell: bash | ||
|
||
- uses: sheenhx/action-flutter-build-android@v3 | ||
with: | ||
keystore-base64: ${{ secrets.ANDROID_RELEASE_KEY }} | ||
keystore-password: "${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}" | ||
build-cmd: flutter build apk --flavor product --release --build-number=${{ env.VERSION_CODE }} | ||
working-directory: ./ | ||
|
||
- name: Rename APK | ||
run: mv build/app/outputs/flutter-apk/app-product-release.apk build/app/outputs/flutter-apk/moonchain.apk | ||
|
||
- name: Archive APK | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: release-apk | ||
# Try running the build locally with the build command to be sure of this path | ||
path: build/app/outputs/flutter-apk/moonchain.apk | ||
|
||
- uses: ryand56/r2-upload-action@latest | ||
with: | ||
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} | ||
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} | ||
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} | ||
r2-bucket: ${{ secrets.R2_BUCKET }} | ||
source-dir: build/app/outputs/flutter-apk | ||
destination-dir: app | ||
|
||
|
||
build-macos: | ||
name: Build-ios | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code with submodules | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: sheenhx/action-flutter-build-ios@v1 | ||
with: | ||
# always use --export-options-plist=ios/GithubActionsExportOptions.plist | ||
build-cmd: flutter build ipa --build-number=$(( 15 + ${{ github.run_number }})) --export-options-plist=ios/GithubActionsExportOptions.plist | ||
certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }} | ||
certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }} | ||
provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }} | ||
keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }} | ||
|
||
- name: Archive IPA | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: release-ipa | ||
# Try running the build locally with the build command to be sure of this path | ||
path: build/ios/ipa/*.ipa | ||
|
||
upload-combined: | ||
name: Combine and Upload Builds | ||
needs: [build-apk, build-macos] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Ubuntu artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: release-apk | ||
path: combined-builds/android | ||
|
||
- name: Download macOS artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: release-ipa | ||
path: combined-builds/iOS | ||
|
||
- name: Upload combined artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: combined-builds | ||
path: combined-builds | ||
|
||
- name: Generate | ||
id: generate | ||
uses: AcmeSoftwareLLC/app-build-number@v1 | ||
with: | ||
timezone: Asia/Kathmandu | ||
|
||
- name: Display the generated build number | ||
run: echo "Build Number > ${{ steps.generate.outputs.build-number }}" | ||
|
||
|
||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "combined-builds/android/*.apk,combined-builds/iOS/*.ipa" | ||
token: ${{ secrets.DART_TOKEN }} | ||
tag: ${{ steps.generate.outputs.build-number }} | ||
|
||
|
||
- name: Upload APK to Waldo | ||
uses: waldoapp/gh-action-upload@v2 | ||
with: | ||
build_path: combined-builds/android/moonchain.apk | ||
upload_token: ${{ secrets.WALDO_SESSIONS_ANDROID }} | ||
|
||
build-waldo: | ||
name: Build-waldo | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code with submodules | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: sheenhx/action-flutter-build-ios@v1 | ||
with: | ||
# always use --export-options-plist=ios/GithubActionsExportOptions.plist | ||
build-cmd: flutter build ios --simulator | ||
certificate-base64: ${{ secrets.IOS_BUILD_CERTIFICATE_BASE64 }} | ||
certificate-password: ${{ secrets.IOS_BUILD_CERTIFICATE_PASSWORD }} | ||
provisioning-profile-base64: ${{ secrets.IOS_MOBILE_PROVISIONING_PROFILE_BASE64 }} | ||
keychain-password: ${{ secrets.IOS_GITHUB_KEYCHAIN_PASSWORD }} | ||
- name: Upload IPA to Waldo | ||
uses: waldoapp/gh-action-upload@v2 | ||
with: | ||
build_path: build/ios/iphonesimulator/Runner.app | ||
upload_token: ${{ secrets.WALDO_SESSIONS_IOS }} |
This file was deleted.
Oops, something went wrong.
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,24 +1,46 @@ | ||
name: Translate | ||
name: Translate en.json to de.json | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
branches: | ||
- pre_main_qa | ||
paths: | ||
- 'assets/flutter_i18n/en.json' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
translate: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
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 }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12.3' # Specify Python version | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -q -U google-generativeai | ||
- name: Run translation script | ||
working-directory: translations | ||
env: | ||
GEMINI_API_KEY: ${{ secrets.GEMINIKEY }} | ||
run: | | ||
python translate.py | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "action@github.com" | ||
git config --local user.name "GitHub Action" | ||
git add . | ||
git commit -m "Update pre-QA with latest translations" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
2 changes: 1 addition & 1 deletion
2
android/app/src/main/kotlin/com/example/datadashwallet/MainActivity.kt
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions
5
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
100644 → 100755
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,5 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<background android:drawable="@mipmap/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
<background android:drawable="@mipmap/ic_launcher_background"/> | ||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> | ||
<monochrome android:drawable="@mipmap/ic_launcher_monochrome"/> | ||
</adaptive-icon> |
5 changes: 0 additions & 5 deletions
5
android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-52 Bytes
android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-52 Bytes
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-3.05 KB
android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="primary">#5077F7</color> | ||
<color name="primary">#000000</color> | ||
</resources> |
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.