Skip to content

Commit cb2e7b2

Browse files
authored
Merge pull request #143 from antonargunov/master
version 0.5.4
2 parents 51f8d16 + 7f0b71e commit cb2e7b2

21 files changed

+292
-97
lines changed

AndroidThirdParty/.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidWrapperProject/.idea/libraries/Gradle____local_jars____Users_antonarhunou_BranchMetrics_unity_branch_deep_linking_AndroidWrapperProject_app_libs_Unity_jar_unspecified_jar.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidWrapperProject/.idea/libraries/Gradle__com_android_support_support_annotations_22_2_0_jar.xml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidWrapperProject/.idea/libraries/Gradle__com_crashlytics_sdk_android_answers_shim_0_0_6.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidWrapperProject/.idea/libraries/Gradle__io_branch_sdk_android_library_3_0_3.xml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidWrapperProject/.idea/workspace.xml

Lines changed: 90 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidWrapperProject/app/app.iml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
8787
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
8888
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
89+
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/multi-dex" />
8990
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
9091
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
9192
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />

AndroidWrapperProject/app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ android {
1212
targetSdkVersion 28
1313
versionCode 1
1414
versionName "1.0"
15+
// multiDexEnabled true
1516
}
1617
buildTypes {
1718
release {
@@ -22,6 +23,7 @@ android {
2223
}
2324

2425
dependencies {
26+
// compile 'com.android.support:multidex:1.0.1'
2527
compile 'io.branch.sdk.android:library:3.0.3'
2628
// Comment out the line above, uncomment the line below to use local Branch and update the settings.gradle file as well.
2729
// compile project(':Branch-SDK')

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
import android.app.Application;
44
import io.branch.referral.Branch;
55
import android.bluetooth.BluetoothSocket;
6+
//import android.support.multidex.MultiDexApplication;
67

78
/**
89
* Created by antonarhunou on 1/9/18.
910
*/
1011

1112
public class BranchUnityApp extends Application {
13+
//public class BranchUnityApp extends MultiDexApplication {
1214
public void onCreate() {
1315
super.onCreate();
1416

BranchUnityTestBed/Assets/Branch/Branch.cs

Lines changed: 3 additions & 3 deletions
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.5.3";
10+
public static string sdkVersion = "0.5.4";
1111

1212
public delegate void BranchCallbackWithParams(Dictionary<string, object> parameters, string error);
1313
public delegate void BranchCallbackWithUrl(string url, string error);
@@ -428,9 +428,9 @@ public static void getShortURL(BranchUniversalObject universalObject, BranchLink
428428
#region Singleton
429429

430430
public void Awake() {
431-
var olderBranch = FindObjectOfType<Branch>();
431+
var olderBranches = FindObjectsOfType<Branch>();
432432

433-
if (olderBranch != null && olderBranch != this) {
433+
if (olderBranches != null && olderBranches.Length > 1) {
434434
// someone's already here!
435435
Destroy(gameObject);
436436
return;

0 commit comments

Comments
 (0)