Recreated ios project (with Swift). Started working on iOS migration. Added iOS specific plagin for get decrypted content of encrypted files (legacy support).

M committed Sep 21, 2020 at 18:41 UTC 649d6dfb59c09759a85495944543d97530ec4d08
38 files changed +225 -369
ios/CakeWallet/EncryptedFile.swift new
+50
@@ -0,0 +1,50 @@
1 +import Foundation
2 +import CryptoSwift
3 +
4 +class EncryptedFile {
5 +
6 + private(set) var fileName: String
7 + private(set) var url: URL
8 + private let key: Array<UInt8>
9 + private let salt: Array<UInt8>
10 +
11 + init(url: URL, key: String, salt: String) {
12 + self.key = key.data(using: .utf8)?.bytes ?? []
13 + self.salt = salt.data(using: .utf8)?.bytes ?? []
14 + self.url = url
15 + self.fileName = url.lastPathComponent
16 + }
17 +
18 + func readRawContent() -> String? {
19 + guard let binaryContent = try? Data(contentsOf: url) else {
20 + return nil
21 + }
22 +
23 + return String(data: binaryContent, encoding: .utf8)
24 + }
25 +
26 + func decryptedContent() -> String? {
27 + guard
28 + let rawContent = readRawContent(),
29 + let decryptedBytes = try? cipherBuilder().decrypt(rawContent.bytes) else {
30 + return nil
31 + }
32 +
33 + let decryptedData = Data(decryptedBytes)
34 + return String(data: decryptedData, encoding: .utf8)
35 + }
36 +
37 + func cipherBuilder() -> Cipher {
38 + let PBKDF2key = try! PKCS5.PBKDF2(password: key, salt: salt, iterations: 4096, variant: .sha256).calculate()
39 + return try! Blowfish(key: PBKDF2key, padding: .pkcs7)
40 + }
41 +}
42 +
43 +func readTradesList(key: String, salt: String) -> String? {
44 + let url = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first!.appendingPathComponent("trades_list.json")
45 +
46 + return EncryptedFile(
47 + url: url,
48 + key: key,
49 + salt: salt).decryptedContent()
50 +}
ios/Flutter/.last_build_id
+1 -1
@@ -1 +1 @@
1 -bc336703210c48e30d7216fac3fe1c0f
\ No newline at end of file
1 +1ec95e8df881a4b938eb38fddbcc8f19
\ No newline at end of file
ios/Podfile
+17 -60
@@ -10,78 +10,35 @@ project 'Runner', {
10 'Release' => :release,
11 }
12
13 -def parse_KV_file(file, separator='=')
14 - file_abs_path = File.expand_path(file)
15 - if !File.exists? file_abs_path
16 - return [];
13 +def flutter_root
14 + generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
15 + unless File.exist?(generated_xcode_build_settings_path)
16 + raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
17 end
18 - generated_key_values = {}
19 - skip_line_start_symbols = ["#", "/"]
20 - File.foreach(file_abs_path) do |line|
21 - next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
22 - plugin = line.split(pattern=separator)
23 - if plugin.length == 2
24 - podname = plugin[0].strip()
25 - path = plugin[1].strip()
26 - podpath = File.expand_path("#{path}", file_abs_path)
27 - generated_key_values[podname] = podpath
28 - else
29 - puts "Invalid plugin specification: #{line}"
30 - end
18 +
19 + File.foreach(generated_xcode_build_settings_path) do |line|
20 + matches = line.match(/FLUTTER_ROOT\=(.*)/)
21 + return matches[1].strip if matches
22 end
32 - generated_key_values
23 + raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
24 end
25
26 +require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
27 +
28 +flutter_ios_podfile_setup
29 +
30 target 'Runner' do
31 use_frameworks!
32 use_modular_headers!
33
39 - # Flutter Pod
40 -
41 - copied_flutter_dir = File.join(__dir__, 'Flutter')
42 - copied_framework_path = File.join(copied_flutter_dir, 'Flutter.framework')
43 - copied_podspec_path = File.join(copied_flutter_dir, 'Flutter.podspec')
44 - unless File.exist?(copied_framework_path) && File.exist?(copied_podspec_path)
45 - # Copy Flutter.framework and Flutter.podspec to Flutter/ to have something to link against if the xcode backend script has not run yet.
46 - # That script will copy the correct debug/profile/release version of the framework based on the currently selected Xcode configuration.
47 - # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
48 -
49 - generated_xcode_build_settings_path = File.join(copied_flutter_dir, 'Generated.xcconfig')
50 - unless File.exist?(generated_xcode_build_settings_path)
51 - raise "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first"
52 - end
53 - generated_xcode_build_settings = parse_KV_file(generated_xcode_build_settings_path)
54 - cached_framework_dir = generated_xcode_build_settings['FLUTTER_FRAMEWORK_DIR'];
34 + flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
35
56 - unless File.exist?(copied_framework_path)
57 - FileUtils.cp_r(File.join(cached_framework_dir, 'Flutter.framework'), copied_flutter_dir)
58 - end
59 - unless File.exist?(copied_podspec_path)
60 - FileUtils.cp(File.join(cached_framework_dir, 'Flutter.podspec'), copied_flutter_dir)
61 - end
62 - end
63 -
64 - # Keep pod path relative so it can be checked into Podfile.lock.
65 - pod 'Flutter', :path => 'Flutter'
66 -
67 - # Plugin Pods
68 -
69 - # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
70 - # referring to absolute paths on developers' machines.
71 - system('rm -rf .symlinks')
72 - system('mkdir -p .symlinks/plugins')
73 - plugin_pods = parse_KV_file('../.flutter-plugins')
74 - plugin_pods.each do |name, path|
75 - symlink = File.join('.symlinks', 'plugins', name)
76 - File.symlink(path, symlink)
77 - pod name, :path => File.join(symlink, 'ios')
78 - end
36 + # Cake Wallet (Legacy)
37 + pod 'CryptoSwift'
38 end
39
40 post_install do |installer|
41 installer.pods_project.targets.each do |target|
83 - target.build_configurations.each do |config|
84 - config.build_settings['ENABLE_BITCODE'] = 'NO'
85 - end
42 + flutter_additional_ios_build_settings(target)
43 end
44 end
ios/Podfile.lock
+7 -81
@@ -6,10 +6,7 @@ PODS:
6 - connectivity (0.0.1):
7 - Flutter
8 - Reachability
9 - - connectivity_for_web (0.1.0):
10 - - Flutter
11 - - connectivity_macos (0.0.1):
12 - - Flutter
9 + - CryptoSwift (1.3.2)
10 - cw_monero (0.0.2):
11 - cw_monero/Boost (= 0.0.2)
12 - cw_monero/lmdb (= 0.0.2)
@@ -32,8 +29,6 @@ PODS:
29 - esys_flutter_share (0.0.1):
30 - Flutter
31 - Flutter (1.0.0)
35 - - flutter_plugin_android_lifecycle (0.0.1):
36 - - Flutter
32 - flutter_secure_storage (3.3.1):
33 - Flutter
34 - local_auth (0.0.1):
@@ -43,65 +38,34 @@ PODS:
38 - Flutter
39 - path_provider (0.0.1):
40 - Flutter
46 - - path_provider_linux (0.0.1):
47 - - Flutter
48 - - path_provider_macos (0.0.1):
49 - - Flutter
50 - - path_provider_windows (0.0.1):
51 - - Flutter
41 - Reachability (3.2)
42 - share (0.0.1):
43 - Flutter
44 - shared_preferences (0.0.1):
45 - Flutter
57 - - shared_preferences_linux (0.0.1):
58 - - Flutter
59 - - shared_preferences_macos (0.0.1):
60 - - Flutter
61 - - shared_preferences_web (0.0.1):
62 - - Flutter
63 - - SwiftProtobuf (1.8.0)
46 + - SwiftProtobuf (1.12.0)
47 - url_launcher (0.0.1):
48 - Flutter
66 - - url_launcher_linux (0.0.1):
67 - - Flutter
68 - - url_launcher_macos (0.0.1):
69 - - Flutter
70 - - url_launcher_web (0.0.1):
71 - - Flutter
72 - - url_launcher_windows (0.0.1):
73 - - Flutter
49
50 DEPENDENCIES:
51 - barcode_scan (from `.symlinks/plugins/barcode_scan/ios`)
52 - connectivity (from `.symlinks/plugins/connectivity/ios`)
78 - - connectivity_for_web (from `.symlinks/plugins/connectivity_for_web/ios`)
79 - - connectivity_macos (from `.symlinks/plugins/connectivity_macos/ios`)
53 + - CryptoSwift
54 - cw_monero (from `.symlinks/plugins/cw_monero/ios`)
55 - devicelocale (from `.symlinks/plugins/devicelocale/ios`)
56 - esys_flutter_share (from `.symlinks/plugins/esys_flutter_share/ios`)
57 - Flutter (from `Flutter`)
84 - - flutter_plugin_android_lifecycle (from `.symlinks/plugins/flutter_plugin_android_lifecycle/ios`)
58 - flutter_secure_storage (from `.symlinks/plugins/flutter_secure_storage/ios`)
59 - local_auth (from `.symlinks/plugins/local_auth/ios`)
60 - package_info (from `.symlinks/plugins/package_info/ios`)
61 - path_provider (from `.symlinks/plugins/path_provider/ios`)
89 - - path_provider_linux (from `.symlinks/plugins/path_provider_linux/ios`)
90 - - path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
91 - - path_provider_windows (from `.symlinks/plugins/path_provider_windows/ios`)
62 - share (from `.symlinks/plugins/share/ios`)
63 - shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
94 - - shared_preferences_linux (from `.symlinks/plugins/shared_preferences_linux/ios`)
95 - - shared_preferences_macos (from `.symlinks/plugins/shared_preferences_macos/ios`)
96 - - shared_preferences_web (from `.symlinks/plugins/shared_preferences_web/ios`)
64 - url_launcher (from `.symlinks/plugins/url_launcher/ios`)
98 - - url_launcher_linux (from `.symlinks/plugins/url_launcher_linux/ios`)
99 - - url_launcher_macos (from `.symlinks/plugins/url_launcher_macos/ios`)
100 - - url_launcher_web (from `.symlinks/plugins/url_launcher_web/ios`)
101 - - url_launcher_windows (from `.symlinks/plugins/url_launcher_windows/ios`)
65
66 SPEC REPOS:
67 trunk:
68 + - CryptoSwift
69 - MTBBarcodeScanner
70 - Reachability
71 - SwiftProtobuf
@@ -111,10 +75,6 @@ EXTERNAL SOURCES:
75 :path: ".symlinks/plugins/barcode_scan/ios"
76 connectivity:
77 :path: ".symlinks/plugins/connectivity/ios"
114 - connectivity_for_web:
115 - :path: ".symlinks/plugins/connectivity_for_web/ios"
116 - connectivity_macos:
117 - :path: ".symlinks/plugins/connectivity_macos/ios"
78 cw_monero:
79 :path: ".symlinks/plugins/cw_monero/ios"
80 devicelocale:
@@ -123,8 +83,6 @@ EXTERNAL SOURCES:
83 :path: ".symlinks/plugins/esys_flutter_share/ios"
84 Flutter:
85 :path: Flutter
126 - flutter_plugin_android_lifecycle:
127 - :path: ".symlinks/plugins/flutter_plugin_android_lifecycle/ios"
86 flutter_secure_storage:
87 :path: ".symlinks/plugins/flutter_secure_storage/ios"
88 local_auth:
@@ -133,64 +91,32 @@ EXTERNAL SOURCES:
91 :path: ".symlinks/plugins/package_info/ios"
92 path_provider:
93 :path: ".symlinks/plugins/path_provider/ios"
136 - path_provider_linux:
137 - :path: ".symlinks/plugins/path_provider_linux/ios"
138 - path_provider_macos:
139 - :path: ".symlinks/plugins/path_provider_macos/ios"
140 - path_provider_windows:
141 - :path: ".symlinks/plugins/path_provider_windows/ios"
94 share:
95 :path: ".symlinks/plugins/share/ios"
96 shared_preferences:
97 :path: ".symlinks/plugins/shared_preferences/ios"
146 - shared_preferences_linux:
147 - :path: ".symlinks/plugins/shared_preferences_linux/ios"
148 - shared_preferences_macos:
149 - :path: ".symlinks/plugins/shared_preferences_macos/ios"
150 - shared_preferences_web:
151 - :path: ".symlinks/plugins/shared_preferences_web/ios"
98 url_launcher:
99 :path: ".symlinks/plugins/url_launcher/ios"
154 - url_launcher_linux:
155 - :path: ".symlinks/plugins/url_launcher_linux/ios"
156 - url_launcher_macos:
157 - :path: ".symlinks/plugins/url_launcher_macos/ios"
158 - url_launcher_web:
159 - :path: ".symlinks/plugins/url_launcher_web/ios"
160 - url_launcher_windows:
161 - :path: ".symlinks/plugins/url_launcher_windows/ios"
100
101 SPEC CHECKSUMS:
102 barcode_scan: a5c27959edfafaa0c771905bad0b29d6d39e4479
103 connectivity: c4130b2985d4ef6fd26f9702e886bd5260681467
166 - connectivity_for_web: 2b8584556930d4bd490d82b836bcf45067ce345b
167 - connectivity_macos: e2e9731b6b22dda39eb1b128f6969d574460e191
104 + CryptoSwift: 093499be1a94b0cae36e6c26b70870668cb56060
105 cw_monero: 2e1f79929880cc2293b5bc1b25e28152e4d84649
106 devicelocale: feebbe5e7a30adb8c4f83185de1b50ff19b44f00
107 esys_flutter_share: 403498dab005b36ce1f8d7aff377e81f0621b0b4
108 Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
172 - flutter_plugin_android_lifecycle: dc0b544e129eebb77a6bfb1239d4d1c673a60a35
109 flutter_secure_storage: 7953c38a04c3fdbb00571bcd87d8e3b5ceb9daec
110 local_auth: 25938960984c3a7f6e3253e3f8d962fdd16852bd
111 MTBBarcodeScanner: f453b33c4b7dfe545d8c6484ed744d55671788cb
112 package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
113 path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
178 - path_provider_linux: 4d630dc393e1f20364f3e3b4a2ff41d9674a84e4
179 - path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
180 - path_provider_windows: a2b81600c677ac1959367280991971cb9a1edb3b
114 Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
115 share: 0b2c3e82132f5888bccca3351c504d0003b3b410
116 shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
184 - shared_preferences_linux: afefbfe8d921e207f01ede8b60373d9e3b566b78
185 - shared_preferences_macos: f3f29b71ccbb56bf40c9dd6396c9acf15e214087
186 - shared_preferences_web: 141cce0c3ed1a1c5bf2a0e44f52d31eeb66e5ea9
187 - SwiftProtobuf: 2cbd9409689b7df170d82a92a33443c8e3e14a70
117 + SwiftProtobuf: 4ef85479c18ca85b5482b343df9c319c62bda699
118 url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
189 - url_launcher_linux: ac237cb7a8058736e4aae38bdbcc748a4b394cc0
190 - url_launcher_macos: fd7894421cd39320dce5f292fc99ea9270b2a313
191 - url_launcher_web: e5527357f037c87560776e36436bf2b0288b965c
192 - url_launcher_windows: 683d7c283894db8d1914d3ab2223b20cc1ad95d5
119
194 -PODFILE CHECKSUM: c34e2287a9ccaa606aeceab922830efb9a6ff69a
120 +PODFILE CHECKSUM: 6856e7141d486377eb0aa3b6d88e4b952e4ff514
121
122 COCOAPODS: 1.9.3
ios/Runner.xcodeproj/project.pbxproj
+91 -123
@@ -3,17 +3,15 @@
3 archiveVersion = 1;
4 classes = {
5 };
6 - objectVersion = 46;
6 + objectVersion = 51;
7 objects = {
8
9 /* Begin PBXBuildFile section */
10 - 02AA3DBD66A19A0A1732294D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 00B973AD352B2957AC387EA9 /* Pods_Runner.framework */; };
11 - 0C0DB1F8237DB1AE00BD32F9 /* A.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C0DB1F7237DB1AE00BD32F9 /* A.swift */; };
10 + 0C44A71A2518EF8000B570ED /* EncryptedFile.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C44A7192518EF8000B570ED /* EncryptedFile.swift */; };
11 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
12 + 20ED0868E1BD7E12278C0CB3 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B26E3F56D69167FBB1DC160A /* Pods_Runner.framework */; };
13 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
14 - 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
15 - 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
16 - 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
14 + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
15 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
16 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
17 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
@@ -33,26 +31,24 @@
31 /* End PBXCopyFilesBuildPhase section */
32
33 /* Begin PBXFileReference section */
36 - 00B973AD352B2957AC387EA9 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
37 - 0C0DB1F6237DB1AD00BD32F9 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
38 - 0C0DB1F7237DB1AE00BD32F9 /* A.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = A.swift; sourceTree = "<group>"; };
34 + 0C44A7192518EF8000B570ED /* EncryptedFile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EncryptedFile.swift; sourceTree = "<group>"; };
35 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
36 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
37 + 20F67A1B2C2FCB2A3BB048C1 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
38 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
42 - 4B157CEA62824A43D7DD4C38 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
39 + 501EA9286675DC8636978EA4 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
40 + 61CAA8652B54F23356F7592A /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
41 + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
42 + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
43 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
44 - 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
45 - 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
44 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
45 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
46 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
49 - 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
47 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
48 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
49 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
50 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
54 - A64AD09573DE1F9B50A18F2A /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
55 - B39AAE9F098686B29374F51D /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
51 + B26E3F56D69167FBB1DC160A /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
52 /* End PBXFileReference section */
53
54 /* Begin PBXFrameworksBuildPhase section */
@@ -60,13 +56,39 @@
56 isa = PBXFrameworksBuildPhase;
57 buildActionMask = 2147483647;
58 files = (
63 - 02AA3DBD66A19A0A1732294D /* Pods_Runner.framework in Frameworks */,
59 + 20ED0868E1BD7E12278C0CB3 /* Pods_Runner.framework in Frameworks */,
60 );
61 runOnlyForDeploymentPostprocessing = 0;
62 };
63 /* End PBXFrameworksBuildPhase section */
64
65 /* Begin PBXGroup section */
66 + 06957875428D0F5AAE053765 /* Frameworks */ = {
67 + isa = PBXGroup;
68 + children = (
69 + B26E3F56D69167FBB1DC160A /* Pods_Runner.framework */,
70 + );
71 + name = Frameworks;
72 + sourceTree = "<group>";
73 + };
74 + 0C44A7182518EF4A00B570ED /* CakeWallet */ = {
75 + isa = PBXGroup;
76 + children = (
77 + 0C44A7192518EF8000B570ED /* EncryptedFile.swift */,
78 + );
79 + path = CakeWallet;
80 + sourceTree = "<group>";
81 + };
82 + 84389F1A05D5860790D82820 /* Pods */ = {
83 + isa = PBXGroup;
84 + children = (
85 + 20F67A1B2C2FCB2A3BB048C1 /* Pods-Runner.debug.xcconfig */,
86 + 501EA9286675DC8636978EA4 /* Pods-Runner.release.xcconfig */,
87 + 61CAA8652B54F23356F7592A /* Pods-Runner.profile.xcconfig */,
88 + );
89 + path = Pods;
90 + sourceTree = "<group>";
91 + };
92 9740EEB11CF90186004384FC /* Flutter */ = {
93 isa = PBXGroup;
94 children = (
@@ -81,11 +103,12 @@
103 97C146E51CF9000F007C117D = {
104 isa = PBXGroup;
105 children = (
106 + 0C44A7182518EF4A00B570ED /* CakeWallet */,
107 9740EEB11CF90186004384FC /* Flutter */,
108 97C146F01CF9000F007C117D /* Runner */,
109 97C146EF1CF9000F007C117D /* Products */,
87 - BB72635863665F0C75A8EBE5 /* Pods */,
88 - D7C5668014A527FFA32576AF /* Frameworks */,
110 + 84389F1A05D5860790D82820 /* Pods */,
111 + 06957875428D0F5AAE053765 /* Frameworks */,
112 );
113 sourceTree = "<group>";
114 };
@@ -100,47 +123,18 @@
123 97C146F01CF9000F007C117D /* Runner */ = {
124 isa = PBXGroup;
125 children = (
103 - 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
104 - 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
126 97C146FA1CF9000F007C117D /* Main.storyboard */,
127 97C146FD1CF9000F007C117D /* Assets.xcassets */,
128 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
129 97C147021CF9000F007C117D /* Info.plist */,
109 - 97C146F11CF9000F007C117D /* Supporting Files */,
130 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
131 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
112 - 0C0DB1F7237DB1AE00BD32F9 /* A.swift */,
113 - 0C0DB1F6237DB1AD00BD32F9 /* Runner-Bridging-Header.h */,
132 + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
133 + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
134 );
135 path = Runner;
136 sourceTree = "<group>";
137 };
118 - 97C146F11CF9000F007C117D /* Supporting Files */ = {
119 - isa = PBXGroup;
120 - children = (
121 - 97C146F21CF9000F007C117D /* main.m */,
122 - );
123 - name = "Supporting Files";
124 - sourceTree = "<group>";
125 - };
126 - BB72635863665F0C75A8EBE5 /* Pods */ = {
127 - isa = PBXGroup;
128 - children = (
129 - 4B157CEA62824A43D7DD4C38 /* Pods-Runner.debug.xcconfig */,
130 - A64AD09573DE1F9B50A18F2A /* Pods-Runner.release.xcconfig */,
131 - B39AAE9F098686B29374F51D /* Pods-Runner.profile.xcconfig */,
132 - );
133 - path = Pods;
134 - sourceTree = "<group>";
135 - };
136 - D7C5668014A527FFA32576AF /* Frameworks */ = {
137 - isa = PBXGroup;
138 - children = (
139 - 00B973AD352B2957AC387EA9 /* Pods_Runner.framework */,
140 - );
141 - name = Frameworks;
142 - sourceTree = "<group>";
143 - };
138 /* End PBXGroup section */
139
140 /* Begin PBXNativeTarget section */
@@ -148,14 +142,14 @@
142 isa = PBXNativeTarget;
143 buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
144 buildPhases = (
151 - 95C66705E4338EEA09DF7047 /* [CP] Check Pods Manifest.lock */,
145 + 0843B0813AFBAF53935AD24E /* [CP] Check Pods Manifest.lock */,
146 9740EEB61CF901F6004384FC /* Run Script */,
147 97C146EA1CF9000F007C117D /* Sources */,
148 97C146EB1CF9000F007C117D /* Frameworks */,
149 97C146EC1CF9000F007C117D /* Resources */,
150 9705A1C41CF9048500538489 /* Embed Frameworks */,
151 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
158 - A51ED02C4D7DF0F1E59D04DE /* [CP] Embed Pods Frameworks */,
152 + DD8DB3179CA4E511F9954A6F /* [CP] Embed Pods Frameworks */,
153 );
154 buildRules = (
155 );
@@ -173,17 +167,16 @@
167 isa = PBXProject;
168 attributes = {
169 LastUpgradeCheck = 1020;
176 - ORGANIZATIONNAME = "The Chromium Authors";
170 + ORGANIZATIONNAME = "";
171 TargetAttributes = {
172 97C146ED1CF9000F007C117D = {
173 CreatedOnToolsVersion = 7.3.1;
180 - DevelopmentTeam = 32J6BB6VUS;
181 - LastSwiftMigration = 1120;
174 + LastSwiftMigration = 1100;
175 };
176 };
177 };
178 buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
186 - compatibilityVersion = "Xcode 3.2";
179 + compatibilityVersion = "Xcode 9.3";
180 developmentRegion = en;
181 hasScannedForEncodings = 0;
182 knownRegions = (
@@ -207,7 +200,6 @@
200 files = (
201 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
202 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
210 - 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
203 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
204 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
205 );
@@ -216,41 +208,41 @@
208 /* End PBXResourcesBuildPhase section */
209
210 /* Begin PBXShellScriptBuildPhase section */
219 - 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
211 + 0843B0813AFBAF53935AD24E /* [CP] Check Pods Manifest.lock */ = {
212 isa = PBXShellScriptBuildPhase;
213 buildActionMask = 2147483647;
214 files = (
215 );
216 + inputFileListPaths = (
217 + );
218 inputPaths = (
219 + "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
220 + "${PODS_ROOT}/Manifest.lock",
221 + );
222 + name = "[CP] Check Pods Manifest.lock";
223 + outputFileListPaths = (
224 );
226 - name = "Thin Binary";
225 outputPaths = (
226 + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
227 );
228 runOnlyForDeploymentPostprocessing = 0;
229 shellPath = /bin/sh;
231 - shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
230 + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
231 + showEnvVarsInLog = 0;
232 };
233 - 95C66705E4338EEA09DF7047 /* [CP] Check Pods Manifest.lock */ = {
233 + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
234 isa = PBXShellScriptBuildPhase;
235 buildActionMask = 2147483647;
236 files = (
237 );
238 - inputFileListPaths = (
239 - );
238 inputPaths = (
241 - "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
242 - "${PODS_ROOT}/Manifest.lock",
243 - );
244 - name = "[CP] Check Pods Manifest.lock";
245 - outputFileListPaths = (
239 );
240 + name = "Thin Binary";
241 outputPaths = (
248 - "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
242 );
243 runOnlyForDeploymentPostprocessing = 0;
244 shellPath = /bin/sh;
252 - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
253 - showEnvVarsInLog = 0;
245 + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
246 };
247 9740EEB61CF901F6004384FC /* Run Script */ = {
248 isa = PBXShellScriptBuildPhase;
@@ -266,50 +258,17 @@
258 shellPath = /bin/sh;
259 shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
260 };
269 - A51ED02C4D7DF0F1E59D04DE /* [CP] Embed Pods Frameworks */ = {
261 + DD8DB3179CA4E511F9954A6F /* [CP] Embed Pods Frameworks */ = {
262 isa = PBXShellScriptBuildPhase;
263 buildActionMask = 2147483647;
264 files = (
265 );
274 - inputPaths = (
275 - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh",
276 - "${PODS_ROOT}/../Flutter/Flutter.framework",
277 - "${BUILT_PRODUCTS_DIR}/MTBBarcodeScanner/MTBBarcodeScanner.framework",
278 - "${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework",
279 - "${BUILT_PRODUCTS_DIR}/SwiftProtobuf/SwiftProtobuf.framework",
280 - "${BUILT_PRODUCTS_DIR}/barcode_scan/barcode_scan.framework",
281 - "${BUILT_PRODUCTS_DIR}/connectivity/connectivity.framework",
282 - "${BUILT_PRODUCTS_DIR}/cw_monero/cw_monero.framework",
283 - "${BUILT_PRODUCTS_DIR}/devicelocale/devicelocale.framework",
284 - "${BUILT_PRODUCTS_DIR}/esys_flutter_share/esys_flutter_share.framework",
285 - "${BUILT_PRODUCTS_DIR}/flutter_plugin_android_lifecycle/flutter_plugin_android_lifecycle.framework",
286 - "${BUILT_PRODUCTS_DIR}/flutter_secure_storage/flutter_secure_storage.framework",
287 - "${BUILT_PRODUCTS_DIR}/local_auth/local_auth.framework",
288 - "${BUILT_PRODUCTS_DIR}/package_info/package_info.framework",
289 - "${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
290 - "${BUILT_PRODUCTS_DIR}/share/share.framework",
291 - "${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
292 - "${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
266 + inputFileListPaths = (
267 + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist",
268 );
269 name = "[CP] Embed Pods Frameworks";
295 - outputPaths = (
296 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Flutter.framework",
297 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MTBBarcodeScanner.framework",
298 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework",
299 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework",
300 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/barcode_scan.framework",
301 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/connectivity.framework",
302 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/cw_monero.framework",
303 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/devicelocale.framework",
304 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/esys_flutter_share.framework",
305 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_plugin_android_lifecycle.framework",
306 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_secure_storage.framework",
307 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/local_auth.framework",
308 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/package_info.framework",
309 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
310 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/share.framework",
311 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
312 - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
270 + outputFileListPaths = (
271 + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist",
272 );
273 runOnlyForDeploymentPostprocessing = 0;
274 shellPath = /bin/sh;
@@ -323,10 +282,9 @@
282 isa = PBXSourcesBuildPhase;
283 buildActionMask = 2147483647;
284 files = (
326 - 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
327 - 97C146F31CF9000F007C117D /* main.m in Sources */,
285 + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
286 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
329 - 0C0DB1F8237DB1AE00BD32F9 /* A.swift in Sources */,
287 + 0C44A71A2518EF8000B570ED /* EncryptedFile.swift in Sources */,
288 );
289 runOnlyForDeploymentPostprocessing = 0;
290 };
@@ -393,9 +351,10 @@
351 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
352 GCC_WARN_UNUSED_FUNCTION = YES;
353 GCC_WARN_UNUSED_VARIABLE = YES;
396 - IPHONEOS_DEPLOYMENT_TARGET = 8.0;
354 + IPHONEOS_DEPLOYMENT_TARGET = 9.0;
355 MTL_ENABLE_DEBUG_INFO = NO;
356 SDKROOT = iphoneos;
357 + SUPPORTED_PLATFORMS = iphoneos;
358 TARGETED_DEVICE_FAMILY = "1,2";
359 VALIDATE_PRODUCT = YES;
360 };
@@ -415,8 +374,10 @@
374 "$(PROJECT_DIR)/Flutter",
375 );
376 INFOPLIST_FILE = Runner/Info.plist;
418 - IPHONEOS_DEPLOYMENT_TARGET = 9.0;
419 - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
377 + LD_RUNPATH_SEARCH_PATHS = (
378 + "$(inherited)",
379 + "@executable_path/Frameworks",
380 + );
381 LIBRARY_SEARCH_PATHS = (
382 "$(inherited)",
383 "$(PROJECT_DIR)/Flutter",
@@ -426,7 +387,7 @@
387 PRODUCT_NAME = "$(TARGET_NAME)";
388 SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
389 SWIFT_VERSION = 5.0;
429 - VALID_ARCHS = "arm64 arm64e";
390 + TARGETED_DEVICE_FAMILY = 1;
391 VERSIONING_SYSTEM = "apple-generic";
392 };
393 name = Profile;
@@ -478,7 +439,7 @@
439 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
440 GCC_WARN_UNUSED_FUNCTION = YES;
441 GCC_WARN_UNUSED_VARIABLE = YES;
481 - IPHONEOS_DEPLOYMENT_TARGET = 8.0;
442 + IPHONEOS_DEPLOYMENT_TARGET = 9.0;
443 MTL_ENABLE_DEBUG_INFO = YES;
444 ONLY_ACTIVE_ARCH = YES;
445 SDKROOT = iphoneos;
@@ -527,9 +488,12 @@
488 GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
489 GCC_WARN_UNUSED_FUNCTION = YES;
490 GCC_WARN_UNUSED_VARIABLE = YES;
530 - IPHONEOS_DEPLOYMENT_TARGET = 8.0;
491 + IPHONEOS_DEPLOYMENT_TARGET = 9.0;
492 MTL_ENABLE_DEBUG_INFO = NO;
493 SDKROOT = iphoneos;
494 + SUPPORTED_PLATFORMS = iphoneos;
495 + SWIFT_COMPILATION_MODE = wholemodule;
496 + SWIFT_OPTIMIZATION_LEVEL = "-O";
497 TARGETED_DEVICE_FAMILY = "1,2";
498 VALIDATE_PRODUCT = YES;
499 };
@@ -549,8 +513,10 @@
513 "$(PROJECT_DIR)/Flutter",
514 );
515 INFOPLIST_FILE = Runner/Info.plist;
552 - IPHONEOS_DEPLOYMENT_TARGET = 9.0;
553 - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
516 + LD_RUNPATH_SEARCH_PATHS = (
517 + "$(inherited)",
518 + "@executable_path/Frameworks",
519 + );
520 LIBRARY_SEARCH_PATHS = (
521 "$(inherited)",
522 "$(PROJECT_DIR)/Flutter",
@@ -561,7 +527,7 @@
527 SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
528 SWIFT_OPTIMIZATION_LEVEL = "-Onone";
529 SWIFT_VERSION = 5.0;
564 - VALID_ARCHS = "arm64 arm64e";
530 + TARGETED_DEVICE_FAMILY = 1;
531 VERSIONING_SYSTEM = "apple-generic";
532 };
533 name = Debug;
@@ -580,8 +546,10 @@
546 "$(PROJECT_DIR)/Flutter",
547 );
548 INFOPLIST_FILE = Runner/Info.plist;
583 - IPHONEOS_DEPLOYMENT_TARGET = 9.0;
584 - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
549 + LD_RUNPATH_SEARCH_PATHS = (
550 + "$(inherited)",
551 + "@executable_path/Frameworks",
552 + );
553 LIBRARY_SEARCH_PATHS = (
554 "$(inherited)",
555 "$(PROJECT_DIR)/Flutter",
@@ -591,7 +559,7 @@
559 PRODUCT_NAME = "$(TARGET_NAME)";
560 SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
561 SWIFT_VERSION = 5.0;
594 - VALID_ARCHS = "arm64 arm64e";
562 + TARGETED_DEVICE_FAMILY = 1;
563 VERSIONING_SYSTEM = "apple-generic";
564 };
565 name = Release;
ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new
+8
@@ -0,0 +1,8 @@
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>IDEDidComputeMac32BitWarning</key>
6 + <true/>
7 +</dict>
8 +</plist>
ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new
+8
@@ -0,0 +1,8 @@
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 +<plist version="1.0">
4 +<dict>
5 + <key>PreviewsEnabled</key>
6 + <false/>
7 +</dict>
8 +</plist>
ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
+6 -2
@@ -27,6 +27,8 @@
27 selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28 selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29 shouldUseLaunchSchemeArgsEnv = "YES">
30 + <Testables>
31 + </Testables>
32 <MacroExpansion>
33 <BuildableReference
34 BuildableIdentifier = "primary"
@@ -36,8 +38,8 @@
38 ReferencedContainer = "container:Runner.xcodeproj">
39 </BuildableReference>
40 </MacroExpansion>
39 - <Testables>
40 - </Testables>
41 + <AdditionalOptions>
42 + </AdditionalOptions>
43 </TestAction>
44 <LaunchAction
45 buildConfiguration = "Debug"
@@ -59,6 +61,8 @@
61 ReferencedContainer = "container:Runner.xcodeproj">
62 </BuildableReference>
63 </BuildableProductRunnable>
64 + <AdditionalOptions>
65 + </AdditionalOptions>
66 </LaunchAction>
67 <ProfileAction
68 buildConfiguration = "Profile"
ios/Runner/A.swift deleted
-1
@@ -1 +0,0 @@
1 -import Foundation
ios/Runner/AppDelegate.h deleted
-6
@@ -1,6 +0,0 @@
1 -#import <Flutter/Flutter.h>
2 -#import <UIKit/UIKit.h>
3 -
4 -@interface AppDelegate : FlutterAppDelegate
5 -
6 -@end
ios/Runner/AppDelegate.m deleted
-25
@@ -1,25 +0,0 @@
1 -#include "AppDelegate.h"
2 -#include "GeneratedPluginRegistrant.h"
3 -
4 -@implementation AppDelegate
5 -
6 -- (BOOL)application:(UIApplication *)application
7 - didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
8 - [GeneratedPluginRegistrant registerWithRegistry:self];
9 - // Override point for customization after application launch.
10 - return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 -}
12 -
13 -- (void)applicationDidEnterBackground:(UIApplication *)application
14 -{
15 - UIViewController *blankViewController = [UIViewController new];
16 - blankViewController.view.backgroundColor = [UIColor blackColor];
17 - [self.window.rootViewController presentViewController:blankViewController animated:NO completion:NULL];
18 -}
19 -
20 -- (void)applicationWillEnterForeground:(UIApplication *)application
21 -{
22 - [self.window.rootViewController dismissViewControllerAnimated:NO completion:NO];
23 -}
24 -
25 -@end
ios/Runner/AppDelegate.swift
+36 -33
@@ -1,40 +1,43 @@
1 import UIKit
2 import Flutter
3 -import CWMonero
4 -
5 -class MoneroWalletManagerHandler {
6 -// static let moneroWalletManager = MoneroWalletGateway()
7 -}
3
4 @UIApplicationMain
5 @objc class AppDelegate: FlutterAppDelegate {
11 - override func application(
12 - _ application: UIApplication,
13 - didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
14 - ) -> Bool {
15 - let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
16 - let moneroWalletManagerChannel = FlutterMethodChannel(name: "com.cakewallet.wallet/monero-wallet-manager",
17 - binaryMessenger: controller.binaryMessenger)
18 - moneroWalletManagerChannel.setMethodCallHandler({
19 - (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in
20 -
21 - })
22 -
23 - moneroWalletManagerChannel.setMethodCallHandler({
24 - [weak self] (call: FlutterMethodCall, result: FlutterResult) -> Void in
25 - switch call.method {
26 - case "createWallet":
27 - result(1)
28 - case "isWalletExist":
29 - result(false)
30 - default:
31 - result(FlutterMethodNotImplemented)
32 - }
6 + override func application(
7 + _ application: UIApplication,
8 + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
9 + ) -> Bool {
10 + let controller : FlutterViewController = window?.rootViewController as! FlutterViewController
11 + let batteryChannel = FlutterMethodChannel(name: "com.cakewallet.cakewallet/legacy_wallet_migration",
12 + binaryMessenger: controller.binaryMessenger)
13 + batteryChannel.setMethodCallHandler({
14 + (call: FlutterMethodCall, result: @escaping FlutterResult) -> Void in
15 +
16 + switch call.method {
17 + case "read_trade_list":
18 + guard let args = call.arguments as? Dictionary<String, Any>,
19 + let key = args["key"] as? String,
20 + let salt = args["salt"] as? String else {
21 + return
22 + }
23 + let normalizedKey = key.replacingOccurrences(of: "-", with: "")
24 + result(readTradesList(key: normalizedKey, salt: salt))
25 + case "read_encrypted_file":
26 + guard let args = call.arguments as? Dictionary<String, Any>,
27 + let path = args["path"] as? String,
28 + let key = args["key"] as? String,
29 + let salt = args["salt"] as? String else {
30 + return
31 + }
32 +
33 + let content = EncryptedFile(url: URL(fileURLWithPath: path), key: key, salt: salt).decryptedContent()
34 + result(content)
35 + default:
36 + break
37 + }
38 + })
39
34 - result(1);
35 - })
36 -
37 - GeneratedPluginRegistrant.register(with: self)
38 - return super.application(application, didFinishLaunchingWithOptions: launchOptions)
39 - }
40 + GeneratedPluginRegistrant.register(with: self)
41 + return super.application(application, didFinishLaunchingWithOptions: launchOptions)
42 + }
43 }
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@1x.png and /dev/null differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-50x50@2x.png and /dev/null differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png and /dev/null differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png and /dev/null differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png and /dev/null differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png and /dev/null differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ
ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
Binary files a/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png and b/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ
ios/Runner/Info.plist
-6
@@ -2,8 +2,6 @@
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 - <key>NSFaceIDUsageDescription</key>
6 - <string>Enable Face ID for fast and secure access to wallets and private keys</string>
5 <key>CFBundleDevelopmentRegion</key>
6 <string>$(DEVELOPMENT_LANGUAGE)</string>
7 <key>CFBundleExecutable</key>
@@ -24,8 +22,6 @@
22 <string>$(CURRENT_PROJECT_VERSION)</string>
23 <key>LSRequiresIPhoneOS</key>
24 <true/>
27 - <key>NSCameraUsageDescription</key>
28 - <string>Used for scan QR code</string>
25 <key>UILaunchStoryboardName</key>
26 <string>LaunchScreen</string>
27 <key>UIMainStoryboardFile</key>
@@ -33,8 +29,6 @@
29 <key>UISupportedInterfaceOrientations</key>
30 <array>
31 <string>UIInterfaceOrientationPortrait</string>
36 - <string>UIInterfaceOrientationLandscapeLeft</string>
37 - <string>UIInterfaceOrientationLandscapeRight</string>
32 </array>
33 <key>UISupportedInterfaceOrientations~ipad</key>
34 <array>
ios/Runner/Runner-Bridging-Header.h
+1 -1
@@ -1 +1 @@
1 -#import "GeneratedPluginRegistrant.h"
\ No newline at end of file
1 +#import "GeneratedPluginRegistrant.h"
ios/Runner/main.m deleted
-9
@@ -1,9 +0,0 @@
1 -#import <Flutter/Flutter.h>
2 -#import <UIKit/UIKit.h>
3 -#import "AppDelegate.h"
4 -
5 -int main(int argc, char* argv[]) {
6 - @autoreleasepool {
7 - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 - }
9 -}
lib/bitcoin/api.dart deleted
-21
@@ -1,21 +0,0 @@
1 -import 'dart:convert';
2 -import 'package:http/http.dart';
3 -
4 -const blockchainInfoBaseURI = 'https://blockchain.info';
5 -const multiAddressURI = '$blockchainInfoBaseURI/multiaddr';
6 -
7 -Future<List<String>> fetchAllAddresses({String xpub}) async {
8 - final uri = '$multiAddressURI?active=$xpub';
9 - final response = await get(uri);
10 - final responseJSON = json.decode(response.body) as Map<String, dynamic>;
11 -
12 - print(responseJSON);
13 -
14 - return (responseJSON['addresses'] as List<dynamic>).map((dynamic row) {
15 - if (row is Map<String, Object>) {
16 - return row['address'] as String;
17 - }
18 -
19 - return '';
20 - }).toList();
21 -}
lib/entities/ios_legacy_helper.dart