From cb94bd3c9ab3d1d0bdf2400d5ad08e48c6531fa2 Mon Sep 17 00:00:00 2001 From: rob-gioia-branch Date: Fri, 4 Oct 2024 09:27:15 -0400 Subject: [PATCH] Stubbed out the methods that will be needed for the various integration validator checks Stubbed out the methods that will be needed for the various integration validator checks --- .../components/AndroidValidator.js | 33 +++++++++++++++ .../components/IOSValidator.js | 41 +++++++++++++++++++ .../components/IntegrationValidator.js | 6 ++- 3 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 branchreactnativetestbed/components/AndroidValidator.js create mode 100644 branchreactnativetestbed/components/IOSValidator.js diff --git a/branchreactnativetestbed/components/AndroidValidator.js b/branchreactnativetestbed/components/AndroidValidator.js new file mode 100644 index 000000000..0ca8e1f75 --- /dev/null +++ b/branchreactnativetestbed/components/AndroidValidator.js @@ -0,0 +1,33 @@ +export default class AndroidValidator { + static checkAndroidInitialization() { + //check that the native layer components initialized successfully for Android + } + + static checkBranchKeys() { + //check that the Branch keys are present in the AndroidManifest file + } + + static checkPackageName() { + //check if the package name of the app matches the one from the dashboard + } + + static checkURIScheme() { + //check if the URI scheme in the manifest matches the URI scheme in the dashboard + } + + static checkAppLinks() { + //check that app links have been configured properly + } + + static checkCustomDomain() { + //check if the custom domain has been setup and added to the manifest + } + + static checkDefaultDomains() { + //check if the default domains have been added to the manifest + } + + static checkAltDomains() { + //check if the alternate domains have been added to the manifest + } +} \ No newline at end of file diff --git a/branchreactnativetestbed/components/IOSValidator.js b/branchreactnativetestbed/components/IOSValidator.js new file mode 100644 index 000000000..0a9a15646 --- /dev/null +++ b/branchreactnativetestbed/components/IOSValidator.js @@ -0,0 +1,41 @@ +export default class IOSValidator { + + static checkIOSInitialization() { + //check that the native layer components initialized successfully for iOS + } + + static checkBranchKeys() { + //check that the Branch keys are present in the Info.plist file + } + + static checkNativeLink() { + //check if the copy to clipboard code for NativeLink was added + } + + static checkDefaultDomains() { + //check if the default domains were added to the Info.plist + //check if the default domains were added to the Associated Domains + } + + static checkAltDomains() { + //check if the alt domains were added to the Info.plist + //check if the alt domains were added to the Associated Domains + } + + static checkURIScheme() { + //check if the URI scheme was added to the Info.plist + //check if the URI scheme matches the URI scheme on the Branch dashboard + } + + static checkBundleID() { + //check if the bundle ID matches the bundle ID on the dashboard + } + + static checkTeamID() { + //check if the team ID matches the team ID on the dashboard + } + + static checkIfIDFAIsAccessible() { + //check if the user has allowed tracking with the ATT prompt + } +} \ No newline at end of file diff --git a/branchreactnativetestbed/components/IntegrationValidator.js b/branchreactnativetestbed/components/IntegrationValidator.js index 38db85cd2..b90583694 100644 --- a/branchreactnativetestbed/components/IntegrationValidator.js +++ b/branchreactnativetestbed/components/IntegrationValidator.js @@ -9,7 +9,7 @@ export default class IntegrationValidator { console.warn('react-native-branch dependency not found in package.json'); return 'Version not found'; } - + return sdkVersion } @@ -18,4 +18,8 @@ export default class IntegrationValidator { 'Branch SDK Version: ' + IntegrationValidator.getBranchSDKVersion(), [{text: 'OK', onPress: () => console.log('OK Pressed')},]); } + + static exportLogs() { + //export both the JS and Native layer logs, filtered by Branch + } } \ No newline at end of file