Skip to content

Commit

Permalink
Merge pull request #48 from MXCzkEVM/pre_main_qa
Browse files Browse the repository at this point in the history
Pre main qa
  • Loading branch information
sheenhx authored Oct 1, 2024
2 parents af194f5 + aede475 commit ed88048
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ios/GithubActionsExportOptions.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<key>stripSwiftSymbols</key>
<true/>
<key>teamID</key>
<string>96T97N56Q5</string>
<string>AABGTMBC5Q</string>
<key>testFlightInternalTestingOnly</key>
<false/>
<key>uploadSymbols</key>
Expand Down
8 changes: 4 additions & 4 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 96T97N56Q5;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = AABGTMBC5Q;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
Expand All @@ -379,7 +379,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.moonchain.mxc;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "MoonchainWalletProvisioningProfile";
PROVISIONING_PROFILE_SPECIFIER = MoonchainWalletProvisioningProfile;
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = MoonchainWalletProvisioningProfile;
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -508,7 +508,7 @@
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 96T97N56Q5;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = AABGTMBC5Q;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
Expand Down Expand Up @@ -539,7 +539,7 @@
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 96T97N56Q5;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = AABGTMBC5Q;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
Expand Down
4 changes: 2 additions & 2 deletions ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
<string>com.moonchain.mxc.minerAutoClaimTask</string>
<string>com.moonchain.mxc.blueberryAutoSyncTask</string>
</array>
<key>FlutterDeepLinkingEnabled</key>
<false/>
<key>CADisableMinimumFrameDurationOnPhone</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
Expand Down Expand Up @@ -70,6 +68,8 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>$(FLUTTER_BUILD_NUMBER)</string>
<key>FlutterDeepLinkingEnabled</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>tg</string>
Expand Down
4 changes: 4 additions & 0 deletions ios/Runner/Runner.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:mxc1usd.com</string>
</array>
<key>com.apple.developer.networking.wifi-info</key>
<true/>
</dict>
Expand Down
16 changes: 13 additions & 3 deletions lib/features/common/app/app_links_use_case.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,25 @@ class MoonchainAppLinksUseCase extends ReactiveUseCase {

_moonchainAppLinks.initAppLinks().then((value) {
if (value != null) {
toNavigateWidget = _appLinksRouter.openLink(value);
isLoggedInWrapper(() {
toNavigateWidget = _appLinksRouter.openLink(value);
});
}
_moonchainAppLinks.linkSubscription!.onData((data) {
toNavigateWidget = _appLinksRouter.openLink(data);
checkNavigationFunction();
isLoggedInWrapper(() {
toNavigateWidget = _appLinksRouter.openLink(data);
checkNavigationFunction();
});
});
});
}

void isLoggedInWrapper(Function function) {
if (_authUseCase.loggedIn) {
function();
}
}

void checkNavigationFunction() {
if (!isPassCodeScreenShown && toNavigateWidget != null) {
_appLinksRouter.navigateTo(toNavigateWidget!);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ packages:
source: hosted
version: "2.1.0"
yaml:
dependency: transitive
dependency: "direct main"
description:
name: yaml
sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5"
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 3.0.0
version: 1.0.0

environment:
sdk: ">=2.19.0 <3.0.0"
Expand Down

0 comments on commit ed88048

Please sign in to comment.