From 8c1190a5a39a7762b82f1ae8f9a3ac46a47d0320 Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 14 Oct 2017 13:45:22 +0200 Subject: Use multi-dex support lib for old Android versions --- app/build.gradle | 1 + app/src/main/java/org/pacien/tincapp/context/App.kt | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'app') diff --git a/app/build.gradle b/app/build.gradle index dd14097..c79fca7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -39,6 +39,7 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) + compile 'com.android.support:multidex:1.0.1' compile 'com.android.support:appcompat-v7:25.4.0' compile 'com.android.support:design:25.4.0' compile 'com.android.support:support-v4:25.4.0' diff --git a/app/src/main/java/org/pacien/tincapp/context/App.kt b/app/src/main/java/org/pacien/tincapp/context/App.kt index 7aaa3d0..88e1b32 100644 --- a/app/src/main/java/org/pacien/tincapp/context/App.kt +++ b/app/src/main/java/org/pacien/tincapp/context/App.kt @@ -5,6 +5,7 @@ import android.content.Context import android.content.Intent import android.net.Uri import android.support.annotation.StringRes +import android.support.multidex.MultiDex import android.support.v7.app.AlertDialog import android.view.WindowManager import org.pacien.tincapp.R @@ -19,6 +20,11 @@ class App : Application() { appContext = applicationContext } + override fun attachBaseContext(base: Context) { + super.attachBaseContext(base) + MultiDex.install(this) + } + companion object { private var appContext: Context? = null -- cgit v1.2.3