Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Proguard for mirai-core-all #992

Draft
wants to merge 9 commits into
base: dev
Choose a base branch
from
Draft

Configure Proguard for mirai-core-all #992

wants to merge 9 commits into from

Conversation

Him188
Copy link
Member

@Him188 Him188 commented Feb 7, 2021

close #990

@Him188 Him188 added the t:enhancement 类型: 现有功能上的优化 label Feb 7, 2021
@Him188 Him188 added this to the Backlog milestone Feb 7, 2021
mirai-core-all/kotlinx-serialization.pro Outdated Show resolved Hide resolved
mirai-core-all/mirai.pro Outdated Show resolved Hide resolved
mirai-core-all/kotlinx-serialization.pro Outdated Show resolved Hide resolved
mirai-core-all/kotlinx-serialization.pro Outdated Show resolved Hide resolved
mirai-core-all/mirai.pro Outdated Show resolved Hide resolved
mirai-core-all/build.gradle.kts Outdated Show resolved Hide resolved
mirai-core-all/build.gradle.kts Outdated Show resolved Hide resolved
mirai-core-all/mirai.pro Outdated Show resolved Hide resolved
mirai-core-all/build.gradle.kts Outdated Show resolved Hide resolved
Him188 and others added 7 commits March 28, 2021 13:04
Co-authored-by: AdoptOSS <adoptoss@outlook.com>
修改注释

Co-authored-by: AdoptOSS <adoptoss@outlook.com>
修改注释

Co-authored-by: AdoptOSS <adoptoss@outlook.com>
Keep Bouncy Castle

Co-authored-by: AdoptOSS <adoptoss@outlook.com>
Add rules for atomicfu

Co-authored-by: AdoptOSS <adoptoss@outlook.com>
Him188 and others added 2 commits March 28, 2021 13:15
Co-authored-by: AdoptOSS <adoptoss@outlook.com>
Co-authored-by: AdoptOSS <adoptoss@outlook.com>
@Him188
Copy link
Member Author

Him188 commented Mar 28, 2021

@AdoptOSS Thanks!

@Him188 Him188 modified the milestones: Backlog, 2.7.0 Apr 1, 2021
@Him188 Him188 modified the milestones: 2.7.0, 2.7-M1 Apr 16, 2021
@Him188 Him188 modified the milestones: 2.7-M1, 2.7-M2 May 13, 2021
@Him188 Him188 added the N 优先级: 一般 label Jun 24, 2021
@Him188 Him188 modified the milestones: 2.7-M2, 2.8-M1 Jun 24, 2021
@Him188 Him188 modified the milestones: 2.8-M1, 2.9 Jul 6, 2021
@zhaodice
Copy link
Contributor

zhaodice commented Sep 10, 2021

经测试ktor和netty、bouncycastle经过如下混淆依然可以使得mirai正常运行,体积(apk)减少了1MB,虽然只是粗浅测试,但收发消息、重连什么的似乎没问题?(测试环境 2.7.1-dev-1)

# ktor
-keep class io.ktor.utils.io.pool.DefaultPool { *; }

#netty
-keepattributes Signature,InnerClasses
-keep class io.netty.bootstrap.Bootstrap { *;}
-keep class io.netty.buffer.AbstractByteBufAllocator { *;}
-keep class io.netty.util.ReferenceCountUtil { *; }
-dontwarn io.netty.**
-dontwarn sun.**

#bouncycastle
-keep class org.bouncycastle.jce.provider.**{ *;}
-keep class org.bouncycastle.jcajce.provider.asymmetric.** {*;}
-keep class org.bouncycastle.jcajce.provider.keystore.** {*;}

@Him188 Him188 modified the milestones: 2.9, 2.10 Nov 9, 2021
@Him188 Him188 removed this from the 2.10 milestone Dec 13, 2021
@Him188 Him188 added this to the 2.10.0-RC milestone Dec 13, 2021
@Him188 Him188 modified the milestones: 2.10.0-RC, Backlog Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 优先级: 一般 t:enhancement 类型: 现有功能上的优化
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Porguard rules
3 participants