Skip to content

Commit

Permalink
Adding Changes to Branch.cs and Wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
klim-branch committed Aug 6, 2024
1 parent 373cde4 commit e8bb430
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions BranchUnityTestBed/Assets/Branch/Branch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@ public static void setIdentity(string userId) {
_setIdentity(userId);
}

/**
* Specifiy a Facebook ID for the current session.
*/
public static void setFBAppID(string facebookAppID)
{
_setFBAppID(facebookAppID);
}

/**
* Specifiy an identity for the current session and receive information about the set.
*/
Expand Down Expand Up @@ -456,6 +464,10 @@ private static void _resetUserSession() {
private static void _setIdentity(string userId) {
BranchAndroidWrapper.setIdentity(userId);
}

private static void _setFBAppID(string facebookAppID){
BranchAndroidWrapper.setFBAppID(facebookAppID);
}

private static void _setIdentityWithCallback(string userId, string callbackId) {
BranchAndroidWrapper.setIdentityWithCallback(userId, callbackId);
Expand Down Expand Up @@ -527,6 +539,8 @@ private static void _generateBranchQRCode(string universalObject, string linkPro

#else

private static void _setFBAppID(string facebookAppID){ }

private static void _setBranchKey(string branchKey, string sdkVersion) { }

private static void _initSessionWithCallback(string callbackId) {
Expand Down
8 changes: 8 additions & 0 deletions BranchUnityTestBed/Assets/Branch/BranchAndroidWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ public static void setIdentity(string userId) {
_getBranchClass().CallStatic("setIdentity", userId);
});
}

//INTENG-20830
public static void setFBAppID(string facebookAppID)
{
_runBlockOnThread(() => {
_getBranchClass().CallStatic("setFBAppID", facebookAppID);
});
}

public static void setIdentityWithCallback(string userId, string callbackId) {
_runBlockOnThread(() => {
Expand Down

0 comments on commit e8bb430

Please sign in to comment.