From 9f6ee4f5e671ea4584816e612b350debfe5d7bd3 Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 24 Dec 2018 20:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 3 ++- app/src/main/assets/updateLog.md | 4 ++++ app/src/main/java/com/kunfei/bookshelf/MApplication.java | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index ef6f755a42..ad0701345f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -24,7 +24,7 @@ android { defaultConfig { applicationId "com.gedoor.monkeybook" - minSdkVersion 21 + minSdkVersion 19 targetSdkVersion 28 versionCode 10000 + gitCommits versionName version @@ -73,6 +73,7 @@ dependencies { implementation 'com.crashlytics.sdk.android:crashlytics:2.9.7' //support + implementation 'com.android.support:multidex:1.0.3' implementation 'com.android.support.constraint:constraint-layout:1.1.3' implementation "com.android.support:design:$support_library_version" implementation "com.android.support:cardview-v7:$support_library_version" diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 12ed9ab4e7..5bfbc404b2 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -3,6 +3,10 @@ * 关注公众号请搜索:开源阅读软件,有福利噢 * 彩蛋,捐赠里领支付宝红包可开启高级功能 +**2018/12/24** +* 发现页支持样式切换,新样式卡顿可切换老样式 +* 修复4.4报错的问题 + **2018/12/23** * 细节优化 diff --git a/app/src/main/java/com/kunfei/bookshelf/MApplication.java b/app/src/main/java/com/kunfei/bookshelf/MApplication.java index 0afec4a4f9..ed5e6297c0 100644 --- a/app/src/main/java/com/kunfei/bookshelf/MApplication.java +++ b/app/src/main/java/com/kunfei/bookshelf/MApplication.java @@ -11,6 +11,7 @@ import android.content.res.Resources; import android.os.Build; import android.support.annotation.RequiresApi; +import android.support.multidex.MultiDex; import android.text.TextUtils; import com.kunfei.bookshelf.help.AppFrontBackHelper; @@ -91,6 +92,12 @@ public void onBack() { }); } + @Override + protected void attachBaseContext(Context base) { + super.attachBaseContext(base); + MultiDex.install(this); + } + public void setDownloadPath(String downloadPath) { MApplication.downloadPath = downloadPath; Constant.BOOK_CACHE_PATH = MApplication.downloadPath + File.separator + "book_cache" + File.separator;