Skip to content

Commit

Permalink
Native Android integration validator code is called, but the 3rd test…
Browse files Browse the repository at this point in the history
… results in an error causing a crash

Native Android integration validator code is called, but the 3rd test results in an error causing a crash
  • Loading branch information
rob-gioia-branch committed Oct 4, 2024
1 parent bf83211 commit 4b91194
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions android/src/main/java/io/branch/rnbranch/RNBranchModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import io.branch.referral.Branch.BranchLinkCreateListener;
import io.branch.referral.BuildConfig;
import io.branch.referral.QRCode.BranchQRCode;
import io.branch.referral.validators.IntegrationValidator;
import io.branch.referral.util.*;
import io.branch.referral.Branch;
import io.branch.indexing.*;
Expand Down Expand Up @@ -1251,4 +1252,10 @@ public void setDMAParamsForEEA(boolean eeaRegion, boolean adPersonalizationConse
Branch branch = Branch.getInstance();
branch.setDMAParamsForEEA(eeaRegion, adPersonalizationConsent, adUserDataUsageConsent);
}

@ReactMethod
public void validateSDKIntegration() {
Log.d(REACT_CLASS,"Integration Validator Code Called");
IntegrationValidator.validate(mActivity);
}
}
2 changes: 1 addition & 1 deletion branchreactnativetestbed/components/BranchWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default class BranchWrapper {
};

validateSDKIntegration = async () => {
IntegrationValidator.validate();
branch.validateSDKIntegration();
};

viewFirstReferringParams = async () => {
Expand Down
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ class Branch {
);
};

validateSDKIntegration = () => {};
validateSDKIntegration = () => {
RNBranch.validateSDKIntegration();
};

/*** PreInstall Parameters ***/
setPreInstallCampaign = (campaign) =>
Expand Down

0 comments on commit 4b91194

Please sign in to comment.