Skip to content

Commit 04e72e0

Browse files
authored
Merge pull request #182 from antonargunov/master
version 0.6.5
2 parents e68e518 + c0c6906 commit 04e72e0

File tree

8 files changed

+13
-1
lines changed

8 files changed

+13
-1
lines changed

AndroidWrapperProject/app/src/main/java/io/branch/unity/BranchUnityApp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public class BranchUnityApp extends Application {
1414
//public class BranchUnityApp extends MultiDexApplication {
1515
public void onCreate() {
1616
super.onCreate();
17+
// Branch.enableDebugMode();
1718
BranchUtil.setPluginType(BranchUtil.PluginType.Unity);
1819
Branch.getAutoInstance(this.getApplicationContext());
1920
Branch.disableInstantDeepLinking(true);

AndroidWrapperProject/app/src/main/java/io/branch/unity/BranchUnityWrapper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ public static void sendEvent(String eventData) {
346346
event.setTransactionID(params.getString("transaction_id"));
347347
}
348348

349+
if (params.has("customer_event_alias")) {
350+
event.setCustomerEventAlias(params.getString("customer_event_alias"));
351+
}
352+
349353
if (params.has("affiliation")) {
350354
event.setAffiliation(params.getString("affiliation"));
351355
}

BranchUnityTestBed/Assets/Branch/Branch.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
public class Branch : MonoBehaviour {
99

10-
public static string sdkVersion = "0.6.4";
10+
public static string sdkVersion = "0.6.5";
1111

1212
public delegate void BranchCallbackWithParams(Dictionary<string, object> parameters, string error);
1313
public delegate void BranchCallbackWithUrl(string url, string error);
Binary file not shown.

BranchUnityTestBed/Assets/Plugins/Branch/iOS/BranchiOSWrapper.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,9 @@ void _sendEvent(char *eventJson) {
486486
if (eventDict[@"transaction_id"]) {
487487
event.transactionID = eventDict[@"transaction_id"];
488488
}
489+
if (eventDict[@"customer_event_alias"]) {
490+
event.alias = eventDict[@"customer_event_alias"];
491+
}
489492
if (eventDict[@"affiliation"]) {
490493
event.affiliation = eventDict[@"affiliation"];
491494
}

BranchUnityWrapper.unitypackage

5.77 KB
Binary file not shown.

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
Branch Unity SDK change log
2+
3+
- 0.6.5
4+
* Supporting field 'custom event alias'
5+
26
- 0.6.4
37
* Adding 'play-services-ads:16.0.0' dependencies
48
* Adding PlayServicesResolver plugin

0 commit comments

Comments
 (0)