Skip to content

Commit

Permalink
Merge pull request #126 from MXCzkEVM/pre_main_qa
Browse files Browse the repository at this point in the history
Pre main qa
  • Loading branch information
reasje authored Dec 12, 2024
2 parents e97e9f3 + fb5205f commit 7069bd6
Show file tree
Hide file tree
Showing 235 changed files with 6,428 additions and 2,349 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@ jobs:
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
- uses: sheenhx/action-flutter-build-android@main
with:
keystore-base64: ${{ secrets.ANDROID_RELEASE_KEY }}
keystore-password: "${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}"
Expand Down Expand Up @@ -52,14 +51,19 @@ jobs:

build-macos:
name: Build-ios
runs-on: macos-latest
# https://github.com/actions/runner-images
# https://xcodereleases.com/
runs-on: macos-15
steps:
- name: Select Xcode version 16.1
run: sudo xcode-select -s /Applications/Xcode_16.1.app

- name: Checkout code with submodules
uses: actions/checkout@v4
with:
submodules: recursive

- uses: sheenhx/action-flutter-build-ios@v1
- uses: sheenhx/action-flutter-build-ios@main
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
Expand Down Expand Up @@ -126,14 +130,20 @@ jobs:

build-waldo:
name: Build-waldo
runs-on: macos-latest
# https://github.com/actions/runner-images
# https://xcodereleases.com/
runs-on: macos-15

steps:
- name: Select Xcode version 16.1
run: sudo xcode-select -s /Applications/Xcode_16.1.app

- name: Checkout code with submodules
uses: actions/checkout@v4
with:
submodules: recursive

- uses: sheenhx/action-flutter-build-ios@v1
- uses: sheenhx/action-flutter-build-ios@main
with:
# always use --export-options-plist=ios/GithubActionsExportOptions.plist
build-cmd: flutter build ios --simulator
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
echo "Set VERSION_CODE to: ${{ github.run_number }}"
shell: bash

- uses: sheenhx/action-flutter-build-android@v3
- uses: sheenhx/action-flutter-build-android@main
with:
keystore-base64: ${{ secrets.ANDROID_RELEASE_KEY }}
keystore-password: "${{ secrets.ANDROID_RELEASE_KEY_PASSWORD }}"
Expand Down Expand Up @@ -54,14 +54,17 @@ jobs:

build-macos:
name: Build-ios
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Select Xcode version 16.1
run: sudo xcode-select -s /Applications/Xcode_16.1.app

- name: Checkout code with submodules
uses: actions/checkout@v4
with:
submodules: recursive

- uses: sheenhx/action-flutter-build-ios@v1
- uses: sheenhx/action-flutter-build-ios@main
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
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ jobs:
build-macos:
name: Build-testflight
if: github.ref == 'refs/heads/pre_main_qa'
runs-on: macos-latest
runs-on: macos-15
steps:
- name: Select Xcode version 16.1
run: sudo xcode-select -s /Applications/Xcode_16.1.app

- name: Checkout code with submodules
uses: actions/checkout@v4
with:
submodules: recursive

- uses: sheenhx/action-flutter-build-ios@v1
- uses: sheenhx/action-flutter-build-ios@main
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
Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ android {
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}

kotlinOptions {
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" />
</provider>

<provider android:name="com.pichillilorenzo.flutter_inappwebview.InAppWebViewFileProvider" android:authorities="${applicationId}.flutter_inappwebview.fileprovider" android:exported="false" android:grantUriPermissions="true">
<provider android:name="com.pichillilorenzo.flutter_inappwebview_android.InAppWebViewFileProvider" android:authorities="${applicationId}.flutter_inappwebview.fileprovider" android:exported="false" android:grantUriPermissions="true">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths" />
</provider>

Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.7.10'
ext.kotlin_version = '2.0.21'
repositories {
google()
mavenCentral()
Expand Down Expand Up @@ -32,6 +32,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Partner",
"native": "Einheimisch",
"see_all": "Alles anzeigen"
"see_all": "Alles anzeigen",
"enable_not_important_logs": "Nicht wichtige Protokolle aktivieren"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Partner",
"native": "Native",
"see_all": "See all"
"see_all": "See all",
"enable_not_important_logs": "Enable not important logs"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Socio",
"native": "Nativo",
"see_all": "Ver todo"
"see_all": "Ver todo",
"enable_not_important_logs": "Habilitar registros no importantes"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Partenaire",
"native": "Natif",
"see_all": "Voir tout"
"see_all": "Voir tout",
"enable_not_important_logs": "Activer les journaux non importants"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Mitra",
"native": "Pribumi",
"see_all": "Lihat semua"
"see_all": "Lihat semua",
"enable_not_important_logs": "Aktifkan log yang tidak penting"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApp",
"partner": "Partner",
"native": "Nativo",
"see_all": "Vedi tutto"
"see_all": "Vedi tutto",
"enable_not_important_logs": "Abilita i log non importanti"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "パートナー",
"native": "ネイティブ",
"see_all": "すべて表示"
"see_all": "すべて表示",
"enable_not_important_logs": "重要でないログを有効にする"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "파트너",
"native": "원주민",
"see_all": "모두 보기"
"see_all": "모두 보기",
"enable_not_important_logs": "중요하지 않은 로그 활성화"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Partner",
"native": "Inheems",
"see_all": "Alles bekijken"
"see_all": "Alles bekijken",
"enable_not_important_logs": "Schakel niet-belangrijke logboeken in"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Parceiro",
"native": "Nativo",
"see_all": "Ver tudo"
"see_all": "Ver tudo",
"enable_not_important_logs": "Habilitar logs não importantes"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Partener",
"native": "Nativ",
"see_all": "Vezi toate"
"see_all": "Vezi toate",
"enable_not_important_logs": "Activează jurnalele neimportante"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApps",
"partner": "Партнер",
"native": "Родной",
"see_all": "Смотреть все"
"see_all": "Смотреть все",
"enable_not_important_logs": "Включить неважные логи"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "DApp'ler",
"partner": "Ortak",
"native": "Yerli",
"see_all": "Hepsini Gör"
"see_all": "Hepsini Gör",
"enable_not_important_logs": "Önemli olmayan günlükleri etkinleştir"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "Ứng dụng phi tập trung",
"partner": "Đối tác",
"native": "Bản địa",
"see_all": "Xem tất cả"
"see_all": "Xem tất cả",
"enable_not_important_logs": "Bật nhật ký không quan trọng"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/zh_CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "去中心化应用",
"partner": "合作伙伴",
"native": "本地",
"see_all": "查看全部"
"see_all": "查看全部",
"enable_not_important_logs": "启用不重要的日志"
}
3 changes: 2 additions & 1 deletion assets/flutter_i18n/zh_TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -470,5 +470,6 @@
"dapps": "去中心化應用程式",
"partner": "合作夥伴",
"native": "原生",
"see_all": "全部顯示"
"see_all": "全部顯示",
"enable_not_important_logs": "啟用非重要日誌"
}
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
platform :ios, '12.0'
platform :ios, '15.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.

Expand Down
23 changes: 21 additions & 2 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
A5618D03B0CF4532EDC74EED /* [CP] Embed Pods Frameworks */,
3EE0B9E34511D387BB0754AA /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand All @@ -160,7 +161,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1510;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down Expand Up @@ -210,6 +211,7 @@
files = (
);
inputPaths = (
"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
);
name = "Thin Binary";
outputPaths = (
Expand All @@ -218,6 +220,23 @@
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
3EE0B9E34511D387BB0754AA /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
showEnvVarsInLog = 0;
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
Expand All @@ -231,7 +250,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
};
A5618D03B0CF4532EDC74EED /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1510"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 1 addition & 1 deletion ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
12 changes: 12 additions & 0 deletions lib/app/app_presenter.dart
Original file line number Diff line number Diff line change
@@ -1,14 +1,26 @@
import 'package:moonchain_wallet/core/core.dart';

import 'logger.dart';

final appContainer =
PresenterContainer<AppPresenter, void>(() => AppPresenter());

class AppPresenter extends CompletePresenter {
AppPresenter() : super(null);

late final _logsConfigUseCase = ref.read(logsConfigUseCaseProvider);

@override
void initState() {
super.initState();
MoonchainWalletFireBase.initLocalNotificationsAndListeners();

listen(_logsConfigUseCase.notImportantLogsEnabled, (value) {
if (value) {
activateNotImportantLogs();
} else {
disableNotImportantLogs();
}
});
}
}
Loading

0 comments on commit 7069bd6

Please sign in to comment.