Skip to content

Configure Proguard for mirai-core-all - #992

Draft
Him188 wants to merge 9 commits into
devfrom
proguard
Draft

Him188 wants to merge 9 commits into
devfrom
proguard

Conversation

@Him188

@Him188 Him188 commented Feb 7, 2021

Copy link
Copy Markdown
Member

close #990

@Him188 Him188 added the t:enhancement 类型: 现有功能上的优化 label Feb 7, 2021
@Him188 Him188 added this to the Backlog milestone Feb 7, 2021
Comment thread mirai-core-all/mirai.pro Resolved
Comment thread mirai-core-all/mirai.pro Resolved
Comment thread mirai-core-all/build.gradle.kts Resolved
Comment thread mirai-core-all/build.gradle.kts Resolved
Comment thread mirai-core-all/mirai.pro Resolved
Comment thread mirai-core-all/build.gradle.kts Resolved
Comment thread mirai-core-all/build.gradle.kts 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

Him188 commented Mar 28, 2021

Copy link
Copy Markdown
Member Author

@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

zhaodice commented Sep 10, 2021 •

Copy link
Copy Markdown
Contributor

经测试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

This branch has not been deployed

No deployments
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