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

Name Obfuscation can't exclude specific method/field #139

Open
ette9844 opened this issue Apr 8, 2022 · 0 comments
Open

Name Obfuscation can't exclude specific method/field #139

ette9844 opened this issue Apr 8, 2022 · 0 comments

Comments

@ette9844
Copy link

ette9844 commented Apr 8, 2022

Bug Report

Expected Behaviour

NameObfuscation excludes specific methods and fields.

Actual Behaviour

NameObfuscation just obfuscates all methods and fields.

How to reproduce the behaviour

"NameObfuscation": {
  "Enabled": true,
  "Excluded classes": "com.pacakge.Class",
  "Excluded methods": "com.package.Class.method",
  "Excluded fields": "com.package.Class.field"
}

Possible fix

The compileExcludePattern returns some/package/SomeClass/someMethod pattern, and str generated in isMethodExcluded, isFieldExcluded is some/package/SomeClass.somMethod.
Please revert the changes or change compileExcludePattern logic.

crowar also mentioned it in #62 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant