From 4f1a2e3bad4c8d65507d3a24aa3ed2e87c98b0c3 Mon Sep 17 00:00:00 2001
From: Alfreedom <00tango.bromine@icloud.com>
Date: Mon, 22 Jul 2024 13:17:07 +0200
Subject: [PATCH] added flavor to android, changed and cloned qr reader, added
flavors to schemes
---
.gitignore | 2 +
example/dapp/android/app/build.gradle | 14 +++
.../android/app/src/main/AndroidManifest.xml | 8 +-
example/dapp/ios/Runner/Info-internal.plist | 4 +-
example/dapp/ios/Runner/Info.plist | 4 +-
example/dapp/lib/main.dart | 3 +-
example/dapp/lib/pages/connect_page.dart | 11 ++-
example/wallet/.gitignore | 4 +-
example/wallet/android/app/build.gradle | 14 +++
.../android/app/src/main/AndroidManifest.xml | 8 +-
example/wallet/ios/Podfile.lock | 19 +++++
example/wallet/ios/Runner/Info-internal.plist | 2 +-
example/wallet/ios/Runner/Info.plist | 2 +-
.../lib/dependencies/web3wallet_service.dart | 3 +-
example/wallet/lib/pages/apps_page.dart | 23 ++---
example/wallet/lib/pages/settings_page.dart | 3 +
example/wallet/lib/widgets/qr_scan_sheet.dart | 85 -------------------
example/wallet/pubspec.yaml | 4 +-
18 files changed, 100 insertions(+), 113 deletions(-)
delete mode 100644 example/wallet/lib/widgets/qr_scan_sheet.dart
diff --git a/.gitignore b/.gitignore
index c68c1976..a5675c3c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -55,3 +55,5 @@ app.*.map.json
# Run scripts
*.sh
*.env.secret
+
+example/wallet/packages/
\ No newline at end of file
diff --git a/example/dapp/android/app/build.gradle b/example/dapp/android/app/build.gradle
index c3c083b9..f49bfe40 100644
--- a/example/dapp/android/app/build.gradle
+++ b/example/dapp/android/app/build.gradle
@@ -53,6 +53,19 @@ android {
versionName flutterVersionName
}
+ // Specifies one flavor dimension.
+ flavorDimensions = ["version"]
+
+ productFlavors {
+ internal {
+ dimension "version"
+ applicationIdSuffix ".internal"
+ }
+ production {
+ dimension "version"
+ }
+ }
+
buildTypes {
release {
// TODO: Add your own signing config for the release build.
@@ -60,6 +73,7 @@ android {
signingConfig signingConfigs.debug
}
}
+
namespace 'com.walletconnect.flutterdapp'
}
diff --git a/example/dapp/android/app/src/main/AndroidManifest.xml b/example/dapp/android/app/src/main/AndroidManifest.xml
index aad3033b..4efd0752 100644
--- a/example/dapp/android/app/src/main/AndroidManifest.xml
+++ b/example/dapp/android/app/src/main/AndroidManifest.xml
@@ -28,7 +28,13 @@
-
+
+
+
+
+
+
+