Skip to content

Commit

Permalink
Enable multidex
Browse files Browse the repository at this point in the history
  • Loading branch information
feelfreelinux committed Feb 13, 2018
1 parent 3fc26be commit ede757e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ede757e

Please sign in to comment.