From a2018bbb890f01e401e700747250887090965e9b Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:41:54 +0800 Subject: [PATCH 1/2] Update updateLog.md --- app/src/main/assets/updateLog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 69a921cc7..3e6450465 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -11,12 +11,12 @@ * 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。 * 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源! -**2022/09/28** +**2022/10/01** * 更新cronet: 106.0.5249.79 -* 更新cronet: 106.0.5249.65 * 正文选择菜单朗读按钮长按可切换朗读选择内容和从选择开始处一直朗读 * 修复某些情况下无法搜索到标题的bug,净化规则较多的可能会降低搜索速度 +* 启用混淆以减小app大小 有bug请带日志反馈 **2022/09/26** From 140d2319d6cc211d9074b27cc6a007d835b510fe Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:42:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=90=AF=E7=94=A8gradle=E7=9A=84minifyEnab?= =?UTF-8?q?led=20(#2356)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复文件类书源换源后阅读按钮工作不正确的bug * 修复文件类书源换源后阅读按钮工作不正确的bug * chore: rename EventBus.BOOK_URL_CHANGED * build: enable minifyEnabled for buildType Release - add proguard-rules: StrResponse CacheManager CookieStore hutool - fix com.google.android.exoplayer2 proguard-rules * build: keep io.legado.app.api.ReturnData --- app/build.gradle | 3 ++- app/proguard-rules.pro | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 32a8f274a..99c22e592 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -69,7 +69,8 @@ android { } applicationIdSuffix '.release' - minifyEnabled false + minifyEnabled true + shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } debug { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index b85c7ae93..2407d46e4 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -149,8 +149,16 @@ -keep class **.analyzeRule.**{*;} # 保持web类 -keep class **.web.**{*;} -#数据类 +# 数据类 -keep class **.data.**{*;} +# hutool-core hutool-crypto +-keep class cn.hutool.core.**{*;} +-keep class cn.hutool.crypto.**{*;} +# 缓存 Cookie +-keep class **.help.http.CookieStore{*;} +-keep class **.help.CacheManager{*;} +# StrResponse +-keep class **.help.http.StrResponse{*;} -dontwarn rx.** -dontwarn okio.** @@ -231,4 +239,9 @@ } ## 保证该私有变量不被混淆 --keepclassmembers class com.google.android.exoplayer2.upstream.cache.CacheDataSource$Factory{upstreamDataSourceFactory;} \ No newline at end of file +-keepclassmembers class com.google.android.exoplayer2.upstream.cache.CacheDataSource$Factory { + private DataSource.Factory upstreamDataSourceFactory; +} + +## web服务传输数据 +-keep class io.legado.app.api.ReturnData{*;} \ No newline at end of file