Skip to content

Commit

Permalink
update function to get the recovery phrases on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnguyenbitmark committed Dec 5, 2024
1 parent af1d567 commit 916c899
Show file tree
Hide file tree
Showing 8 changed files with 315 additions and 235 deletions.
66 changes: 61 additions & 5 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@

/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
311A34F7898F4222918AC04D /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FC4511D74C969E513EB211D8 /* Pods_Runner.framework */; };
312F145516427F1A4582CB54 /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0A797A66DE40EFF1F7CF4147 /* Pods_RunnerTests.framework */; };
331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
58B2C4F12CFDBC0900FD14C5 /* libsqlite3.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 58B2C4F02CFDBBF300FD14C5 /* libsqlite3.tbd */; };
58B371652D014747005A2188 /* SystemChannelHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B371642D014747005A2188 /* SystemChannelHandler.swift */; };
58B371662D014747005A2188 /* Keychain.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B371612D014747005A2188 /* Keychain.swift */; };
58B371672D014747005A2188 /* Constant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B371602D014747005A2188 /* Constant.swift */; };
58B371682D014747005A2188 /* Seed.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B371622D014747005A2188 /* Seed.swift */; };
58B3716C2D0150D9005A2188 /* Mnemonic.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B3716A2D0150D9005A2188 /* Mnemonic.swift */; };
58B3716D2D0150D9005A2188 /* WordList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 58B3716B2D0150D9005A2188 /* WordList.swift */; };
58B3716F2D0153EB005A2188 /* URKit in Frameworks */ = {isa = PBXBuildFile; productRef = 58B3716E2D0153EB005A2188 /* URKit */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
D7E06ED089DD033803E83AAA /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FC4511D74C969E513EB211D8 /* Pods_Runner.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -59,6 +66,12 @@
3FE978493BF46AE4D925F1BB /* Pods-Runner.release-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-production.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-production.xcconfig"; sourceTree = "<group>"; };
589279912CFFF88E00AB2134 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
58B2C4F02CFDBBF300FD14C5 /* libsqlite3.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libsqlite3.tbd; path = usr/lib/libsqlite3.tbd; sourceTree = SDKROOT; };
58B371602D014747005A2188 /* Constant.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constant.swift; sourceTree = "<group>"; };
58B371612D014747005A2188 /* Keychain.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Keychain.swift; sourceTree = "<group>"; };
58B371622D014747005A2188 /* Seed.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Seed.swift; sourceTree = "<group>"; };
58B371642D014747005A2188 /* SystemChannelHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SystemChannelHandler.swift; sourceTree = "<group>"; };
58B3716A2D0150D9005A2188 /* Mnemonic.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Mnemonic.swift; sourceTree = "<group>"; };
58B3716B2D0150D9005A2188 /* WordList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WordList.swift; sourceTree = "<group>"; };
63225193030D5CB7FE6DAD45 /* Pods-RunnerTests.profile-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.profile-development.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.profile-development.xcconfig"; sourceTree = "<group>"; };
6AC1725E1120EFFC8F58222D /* Pods-RunnerTests.release-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RunnerTests.release-production.xcconfig"; path = "Target Support Files/Pods-RunnerTests/Pods-RunnerTests.release-production.xcconfig"; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -87,8 +100,9 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
58B3716F2D0153EB005A2188 /* URKit in Frameworks */,
58B2C4F12CFDBC0900FD14C5 /* libsqlite3.tbd in Frameworks */,
311A34F7898F4222918AC04D /* Pods_Runner.framework in Frameworks */,
D7E06ED089DD033803E83AAA /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -111,6 +125,16 @@
path = RunnerTests;
sourceTree = "<group>";
};
58B371632D014747005A2188 /* model */ = {
isa = PBXGroup;
children = (
58B3716A2D0150D9005A2188 /* Mnemonic.swift */,
58B3716B2D0150D9005A2188 /* WordList.swift */,
58B371622D014747005A2188 /* Seed.swift */,
);
path = model;
sourceTree = "<group>";
};
84A508EBE35873B63D6554AF /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -156,6 +180,10 @@
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
58B371602D014747005A2188 /* Constant.swift */,
58B371612D014747005A2188 /* Keychain.swift */,
58B371632D014747005A2188 /* model */,
58B371642D014747005A2188 /* SystemChannelHandler.swift */,
589279912CFFF88E00AB2134 /* Runner.entitlements */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
Expand Down Expand Up @@ -268,6 +296,9 @@
Base,
);
mainGroup = 97C146E51CF9000F007C117D;
packageReferences = (
58B371692D014CEC005A2188 /* XCRemoteSwiftPackageReference "URKit" */,
);
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -358,17 +389,17 @@
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
buildActionMask = 8;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
runOnlyForDeploymentPostprocessing = 1;
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";
};
B6F5A593638686EE4924B19A /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
Expand Down Expand Up @@ -425,7 +456,13 @@
buildActionMask = 2147483647;
files = (
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
58B3716C2D0150D9005A2188 /* Mnemonic.swift in Sources */,
58B3716D2D0150D9005A2188 /* WordList.swift in Sources */,
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
58B371652D014747005A2188 /* SystemChannelHandler.swift in Sources */,
58B371662D014747005A2188 /* Keychain.swift in Sources */,
58B371672D014747005A2188 /* Constant.swift in Sources */,
58B371682D014747005A2188 /* Seed.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1414,6 +1451,25 @@
defaultConfigurationName = "Release-production";
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
58B371692D014CEC005A2188 /* XCRemoteSwiftPackageReference "URKit" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/BlockchainCommons/URKit";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 15.0.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
58B3716E2D0153EB005A2188 /* URKit */ = {
isa = XCSwiftPackageProductDependency;
package = 58B371692D014CEC005A2188 /* XCRemoteSwiftPackageReference "URKit" */;
productName = URKit;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
4 changes: 2 additions & 2 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSCameraUsageDescription</key>
<string>QR code scanning requires camera access.</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UIBackgroundModes</key>
Expand All @@ -57,7 +59,5 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSCameraUsageDescription</key>
<string>QR code scanning requires camera access.</string>
</dict>
</plist>
12 changes: 9 additions & 3 deletions ios/Runner/Runner.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
<dict>
<key>com.apple.developer.associated-domains</key>
<array>
<string>webcredentials:feralfile.com</string>
<string>webcredentials:accounts.feralfile.com</string>
<string>webcredentials:accounts.dev.feralfile.com</string>
<string>feralfile-app.test-app.link</string>
<string>applinks:feralfile-app-alternate.app.link</string>
<string>feralfile-app-alternate.test-app.link</string>
</array>
<key>com.apple.security.application-groups</key>
<array/>
<key>keychain-access-groups</key>
<array>
<string>$(AppIdentifierPrefix)com.bitmark.autonomywallet.keychain</string>
<string>$(AppIdentifierPrefix)com.bitmark.autonomy-wallet.inhouse.keychain</string>
</array>
</dict>
</plist>
144 changes: 0 additions & 144 deletions ios/Runner/SystemChannelHandler 2.swift

This file was deleted.

Loading

0 comments on commit 916c899

Please sign in to comment.