Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions android/libpag/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ android {
abiFilters.add("x86_64")
}
}

consumerProguardFiles("proguard-rules.pro")
}
sourceSets {
main {
Expand All @@ -44,12 +46,10 @@ android {
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

添加 consumerProguardFiles 是可以的,但是为啥要修改这里,两者作用是独立的哈
不要修改 libpag 原有的混淆逻辑

Copy link
Contributor Author

@limuyang2 limuyang2 Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个项目本来就是开源库,release打包aar的时候,不需要混淆。将混淆规则带入consumerProguardFiles,由使用者来应用混淆(minifyEnabled

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那就把 debug 下面的也移除吧,后续 libpag 只提供混淆规则,不再处理混淆

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已处理

}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled false
}
}
externalNativeBuild {
Expand Down