Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deferInitForPluginRuntime": true
}
23 changes: 10 additions & 13 deletions packages/core-mobile/ios/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,23 @@ class AppDelegate: ExpoAppDelegate {
// Firebase App Check and configuration
RNFBAppCheckModule.sharedInstance()
FirebaseApp.configure()

if let bundleId = Bundle.main.object(forInfoDictionaryKey: "CFBundleIdentifier") as? String, bundleId.lowercased().contains("internal") {
RNBranch.useTestInstance()
}

// Delay for 1 second before initializing Branch SDK
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
if #available(iOS 14.0, *) {
// Check that `trackingAuthorizationStatus` is `notDetermined`, otherwise prompt will not display

RNBranch.initSession(launchOptions: launchOptions, isReferrable: true)
if #available(iOS 14.0, *) {
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
if ATTrackingManager.trackingAuthorizationStatus == .notDetermined {
ATTrackingManager.requestTrackingAuthorization { (status) in
RNBranch.initSession(launchOptions: launchOptions, isReferrable: true)
ATTrackingManager.requestTrackingAuthorization { status in
if (status == .authorized) {
RNBranch.branch.handleATTAuthorizationStatus(status.rawValue)
}
}
} else {
RNBranch.initSession(launchOptions: launchOptions, isReferrable: true)
}
} else {
RNBranch.initSession(launchOptions: launchOptions, isReferrable: true)
}
}
}

let delegate = ReactNativeDelegate()
let factory = ExpoReactNativeFactory(delegate: delegate)
Expand Down
22 changes: 22 additions & 0 deletions packages/core-mobile/ios/AvaxWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
501C50832C35C63800DAFF77 /* core_send.wav in Resources */ = {isa = PBXBuildFile; fileRef = 501C50822C35C63800DAFF77 /* core_send.wav */; };
5084807F2C3C3E78008762B2 /* core_send.wav in Resources */ = {isa = PBXBuildFile; fileRef = 501C50822C35C63800DAFF77 /* core_send.wav */; };
541718823F103C58523330E0 /* libPods-common-AvaxWalletInternal.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 98B4FBA16D8159067E38BF66 /* libPods-common-AvaxWalletInternal.a */; };
813492112EBB9B5800925AF4 /* branch.json in Sources */ = {isa = PBXBuildFile; fileRef = 813492102EBB9B5600925AF4 /* branch.json */; };
813492122EBB9B5800925AF4 /* branch.json in Sources */ = {isa = PBXBuildFile; fileRef = 813492102EBB9B5600925AF4 /* branch.json */; };
81548E882EB2430100600BA3 /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 81548E872EB2430100600BA3 /* AdSupport.framework */; };
81548E8A2EB2430D00600BA3 /* AppTrackingTransparency.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 81548E892EB2430D00600BA3 /* AppTrackingTransparency.framework */; };
81548E8B2EB2431300600BA3 /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 81548E872EB2430100600BA3 /* AdSupport.framework */; };
Expand Down Expand Up @@ -142,6 +144,7 @@
743FA70F1387A05E00866EBF /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-common-AvaxWalletInternal/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
762C9EF0EF8C043AB7880CD7 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-common-AvaxWallet/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
7CA105A259461A15C6B2A56F /* Pods-common-AvaxWallet.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-common-AvaxWallet.release.xcconfig"; path = "Target Support Files/Pods-common-AvaxWallet/Pods-common-AvaxWallet.release.xcconfig"; sourceTree = "<group>"; };
813492102EBB9B5600925AF4 /* branch.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = branch.json; sourceTree = "<group>"; };
81548E872EB2430100600BA3 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; };
81548E892EB2430D00600BA3 /* AppTrackingTransparency.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppTrackingTransparency.framework; path = System/Library/Frameworks/AppTrackingTransparency.framework; sourceTree = SDKROOT; };
815E550F2C92071A000F8E0F /* NotificationServiceExtensionInternal.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NotificationServiceExtensionInternal.appex; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -309,6 +312,7 @@
83CBB9F61A601CBA00E9B192 = {
isa = PBXGroup;
children = (
813492102EBB9B5600925AF4 /* branch.json */,
0B36FA512CD3DD170030C8B9 /* Library */,
0B73DE0A2C80D72900DED1DF /* GoogleService-Info.plist */,
501C50822C35C63800DAFF77 /* core_send.wav */,
Expand Down Expand Up @@ -602,10 +606,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWalletInternal/Pods-common-AvaxWalletInternal-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWalletInternal/Pods-common-AvaxWalletInternal-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWalletInternal/Pods-common-AvaxWalletInternal-frameworks.sh\"\n";
Expand All @@ -619,10 +627,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWallet/Pods-common-AvaxWallet-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWallet/Pods-common-AvaxWallet-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWallet/Pods-common-AvaxWallet-frameworks.sh\"\n";
Expand Down Expand Up @@ -786,10 +798,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWalletInternal/Pods-common-AvaxWalletInternal-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWalletInternal/Pods-common-AvaxWalletInternal-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWalletInternal/Pods-common-AvaxWalletInternal-resources.sh\"\n";
Expand Down Expand Up @@ -817,10 +833,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWallet/Pods-common-AvaxWallet-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWallet/Pods-common-AvaxWallet-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-common-AvaxWallet/Pods-common-AvaxWallet-resources.sh\"\n";
Expand Down Expand Up @@ -871,6 +891,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
813492122EBB9B5800925AF4 /* branch.json in Sources */,
8EA4B4D128EF9B4D00A06DBA /* AppDelegate.swift in Sources */,
A96E77CAD2ABB49A6ACACD2C /* ExpoModulesProvider.swift in Sources */,
);
Expand All @@ -896,6 +917,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
813492112EBB9B5800925AF4 /* branch.json in Sources */,
8EA3A01428EF82E100F753C2 /* AppDelegate.swift in Sources */,
C7062D69B313585A64C52506 /* ExpoModulesProvider.swift in Sources */,
);
Expand Down
12 changes: 6 additions & 6 deletions packages/core-mobile/ios/AvaxWallet/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@
<key>NSBluetoothPeripheralUsageDescription</key>
<string>We use Bluetooth to connect to ledger devices</string>
<key>branch_key</key>
<dict>
<key>test</key>
<string>key_test_huEgqNimBs9nak9ICf2TlhdfsDdptcAD</string>
<key>live</key>
<string>key_live_iDtcATcmEAXhac4Rze6LgbllBAkfvayk</string>
</dict>
<dict>
<key>test</key>
<string>key_test_huEgqNimBs9nak9ICf2TlhdfsDdptcAD</string>
<key>live</key>
<string>key_live_iDtcATcmEAXhac4Rze6LgbllBAkfvayk</string>
</dict>
<key>branch_universal_link_domains</key>
<array>
<string>nlfvn.test-app.link</string>
Expand Down
12 changes: 6 additions & 6 deletions packages/core-mobile/ios/AvaxWallet/InfoRelease.plist
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@
<key>NSBluetoothPeripheralUsageDescription</key>
<string>We use Bluetooth to connect to ledger devices</string>
<key>branch_key</key>
<dict>
<key>test</key>
<string>key_test_huEgqNimBs9nak9ICf2TlhdfsDdptcAD</string>
<key>live</key>
<string>key_live_iDtcATcmEAXhac4Rze6LgbllBAkfvayk</string>
</dict>
<dict>
<key>test</key>
<string>key_test_huEgqNimBs9nak9ICf2TlhdfsDdptcAD</string>
<key>live</key>
<string>key_live_iDtcATcmEAXhac4Rze6LgbllBAkfvayk</string>
</dict>
<key>branch_universal_link_domains</key>
<array>
<string>nlfvn.test-app.link</string>
Expand Down
3 changes: 3 additions & 0 deletions packages/core-mobile/ios/branch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deferInitForPluginRuntime": true
}
Loading