From ede757edb61036b90b546f37c1bcc4848529d67d Mon Sep 17 00:00:00 2001 From: Filip Date: Tue, 13 Feb 2018 21:18:36 +0100 Subject: [PATCH] Enable multidex --- app/build.gradle | 8 +++++--- .../io/github/feelfreelinux/wykopmobilny/WykopApp.kt | 6 ++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 761c45e01..b32c88a42 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,8 +28,9 @@ android { applicationId "io.github.feelfreelinux.wykopmobilny" minSdkVersion 17 targetSdkVersion 27 - versionCode 27 - versionName "0.6" + versionCode 28 + versionName "0.6.1" + multiDexEnabled true def credentialsPropertiesFile = rootProject.file("credentials.properties") def credentialsProperties = new Properties() @@ -90,7 +91,8 @@ dependencies { implementation "com.android.support:support-v4:$versions.supportLibrary" implementation "com.android.support:customtabs:$versions.supportLibrary" implementation "com.android.support.constraint:constraint-layout:$versions.constraintLayout" - implementation "com.google.android.gms:play-services-gcm:11.6.0" + implementation "com.google.android.gms:play-services-gcm:11.8.0" + implementation 'com.android.support:multidex:1.0.2' // Utils implementation "com.bugsnag:bugsnag-android:4.1.3" implementation "org.ocpsoft.prettytime:prettytime:$versions.prettytime" diff --git a/app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/WykopApp.kt b/app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/WykopApp.kt index dbb06868e..ff9e5419a 100755 --- a/app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/WykopApp.kt +++ b/app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/WykopApp.kt @@ -1,6 +1,7 @@ package io.github.feelfreelinux.wykopmobilny import android.content.Context +import android.support.multidex.MultiDex import com.bugsnag.android.Bugsnag import com.evernote.android.job.JobManager import com.jakewharton.threetenabp.AndroidThreeTen @@ -30,6 +31,11 @@ class WykopApp : DaggerApplication() { return application.refWatcher!! } + override fun attachBaseContext(base: Context?) { + super.attachBaseContext(base) + MultiDex.install(this) + } + override fun onCreate() { super.onCreate() AndroidThreeTen.init(this)