Skip to content

Commit

Permalink
Multidex support
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Iosue committed Mar 3, 2017
1 parent f172c44 commit 87c769a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion omniNotes/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ android {
versionCode Integer.parseInt(project.VERSION_CODE)
vectorDrawables.useSupportLibrary = true
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
multiDexEnabled true
}

packagingOptions {
Expand All @@ -44,7 +45,7 @@ android {
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
applicationVariants.all { variant ->
variant.outputs.each { output ->
variant.outputs.each { output ->omn
def file = output.outputFile
output.outputFile = new File(
(String) file.parent,
Expand Down Expand Up @@ -94,6 +95,7 @@ dependencies {
compile 'be.billington.calendar.recurrencepicker:library:1.1.1'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:multidex:1.0.1'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.pushbullet:android-extensions:1.0.4@aar'
compile 'com.getbase:floatingactionbutton:1.10.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import android.os.AsyncTask;
import android.os.StrictMode;
import android.support.annotation.NonNull;
import android.support.multidex.MultiDexApplication;
import android.text.TextUtils;
import com.squareup.leakcanary.LeakCanary;
import com.squareup.leakcanary.RefWatcher;
Expand All @@ -44,7 +45,7 @@

@ReportsCrashes(httpMethod = Method.POST, reportType = Type.FORM, formUri = BuildConfig.CRASH_REPORTING_URL, mode =
ReportingInteractionMode.TOAST, forceCloseDialogAfterToast = false, resToastText = R.string.crash_toast)
public class OmniNotes extends Application {
public class OmniNotes extends MultiDexApplication {

private static Context mContext;

Expand Down

0 comments on commit 87c769a

Please sign in to comment.