Skip to content

Commit 031911b

Browse files
committed
完善MultiDex支持
1 parent 487dcc0 commit 031911b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ dependencies {
120120
compile 'com.github.jd-alexander:LikeButton:0.1.8'
121121

122122
compile 'com.balysv.materialmenu:material-menu-toolbar:1.5.4'
123+
124+
compile 'com.android.support:multidex:1.0.0'
123125
}
124126

125127
bugly {

app/src/main/kotlin/com/rayfantasy/icode/BaseApplication.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
package com.rayfantasy.icode
1818

19-
import android.app.Application
2019
import android.content.Context
2120
import android.content.pm.PackageManager
21+
import android.support.multidex.MultiDexApplication
2222
import com.raizlabs.android.dbflow.config.FlowManager
2323
import com.rayfantasy.icode.model.ICodeTheme
2424
import com.rayfantasy.icode.postutil.PostUtil
@@ -34,7 +34,7 @@ var CACHE_PATH by Delegates.notNull<String>()
3434
var FILES_PATH by Delegates.notNull<String>()
3535
private set
3636

37-
class BaseApplication : Application() {
37+
class BaseApplication : MultiDexApplication() {
3838

3939
private lateinit var refWatcher: RefWatcher
4040

@@ -63,6 +63,7 @@ class BaseApplication : Application() {
6363
FlowManager.init(this)
6464

6565
ICodeTheme.init(this)
66+
6667
}
6768

6869
override fun onTerminate() {

0 commit comments

Comments
 (0)