Skip to content

Commit 5179314

Browse files
committed
Enable multidexing in testbed_native_android as well
1 parent c5d5a3f commit 5179314

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

examples/testbed_native_android/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ android {
77
applicationId "io.branch.testbed_native_android"
88
minSdkVersion 16
99
targetSdkVersion 25
10+
multiDexEnabled true
1011
versionCode 1
1112
versionName "1.0"
1213
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
11
package io.branch.testbed_native_android;
22

3-
import android.app.Application;
3+
import android.content.Context;
4+
import android.support.multidex.MultiDex;
5+
import android.support.multidex.MultiDexApplication;
46

57
import io.branch.referral.Branch;
68

79
/**
810
* Created by jdee on 3/30/17.
911
*/
1012

11-
public class MainApplication extends Application {
13+
public class MainApplication extends MultiDexApplication {
1214
@Override
1315
public void onCreate() {
1416
super.onCreate();
1517
Branch.getAutoInstance(this);
1618
}
19+
20+
@Override
21+
protected void attachBaseContext(Context base) {
22+
super.attachBaseContext(base);
23+
MultiDex.install(this);
24+
}
1725
}

0 commit comments

Comments
 (0)