Skip to content

Commit

Permalink
Stubbed out the methods that will be needed for the various integrati…
Browse files Browse the repository at this point in the history
…on validator checks

Stubbed out the methods that will be needed for the various integration validator checks
  • Loading branch information
rob-gioia-branch committed Oct 4, 2024
1 parent d0756dd commit cb94bd3
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 1 deletion.
33 changes: 33 additions & 0 deletions branchreactnativetestbed/components/AndroidValidator.js
Original file line number Diff line number Diff line change
@@ -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
}
}
41 changes: 41 additions & 0 deletions branchreactnativetestbed/components/IOSValidator.js
Original file line number Diff line number Diff line change
@@ -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
}
}
6 changes: 5 additions & 1 deletion branchreactnativetestbed/components/IntegrationValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}
}

0 comments on commit cb94bd3

Please sign in to comment.