Skip to content

Commit

Permalink
Got test key displaying as well
Browse files Browse the repository at this point in the history
Got test key displaying as well
  • Loading branch information
rob-gioia-branch committed Oct 4, 2024
1 parent 55887b8 commit bf83211
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions branchreactnativetestbed/components/AndroidValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export default class AndroidValidator {
}

static getBranchKeys = async() => {
let key = await this.getManifestValue('io.branch.sdk.BranchKey')
console.log(key)
return key
let liveKey = await this.getManifestValue('io.branch.sdk.BranchKey')
let testKey = await this.getManifestValue('io.branch.sdk.BranchKey.test')
return [liveKey, testKey]
}

static getPackageName() {
Expand Down
12 changes: 3 additions & 9 deletions branchreactnativetestbed/components/IntegrationValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,18 @@ export default class IntegrationValidator {

static validate() {
let packageName = AndroidValidator.getPackageName()
AndroidValidator.getBranchKeys().then( key => {
AndroidValidator.getBranchKeys().then( keys => {
Alert.alert('Branch Integration Validator',
'Branch SDK Version: ' + IntegrationValidator.getBranchSDKVersion() + "\n\n" +
'Android:\n' +
'\nPackage Name: ' + '\n' +
'• ' + AndroidValidator.getPackageName() + '\n' +
'\nBranch Keys: ' + '\n' +
'• ' + key,
'• ' + keys[0] + '\n' +
'• ' + keys[1],
[{text: 'OK', onPress: () => console.log('OK Pressed')},]);
}
);

// Alert.alert('Branch Integration Validator',
// 'Branch SDK Version: ' + IntegrationValidator.getBranchSDKVersion() + "\n\n" +
// 'Android:\n' +
// '\t\t• Package Name: ' + '\n\t\t\t\t' + AndroidValidator.getPackageName() +
// '\n\t\t• Branch Keys: ' + '\n\t\t\t\t' + AndroidValidator.getBranchKeys(),
// [{text: 'OK', onPress: () => console.log('OK Pressed')},]);
}

static exportLogs() {
Expand Down

0 comments on commit bf83211

Please sign in to comment.