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

How can I use Proguard to confuse several specified jars and output them in the original path after obfuscation? How can I implement it as follows? #439

Open
fendo8888 opened this issue Sep 22, 2024 · 0 comments

Comments

@fendo8888
Copy link

How to implement the obfuscation of several specified jars through proguard, and output them in the original path after obfuscation? How to implement it as follows?

My Maven structure is as follows:

a-main package
b-tool package
c-business package

After Maven packaging, all dependencies of the main package will be placed in the lib directory

The desired result is to obfuscate a, b, and c, and then generate the corresponding packages in the original path after the obfuscation as follows:

a-main package After obfuscation, all resources in package a are output to package a for overwriting. At this time, package a is already obfuscated

b-tool package After obfuscation, all resources in package b are output to package a for overwriting. At this time, package b is already obfuscated

c-business package After obfuscation, all resources in package c are output to package a for overwriting. At this time, package c is already obfuscated

According to the proguard documentation, multiple injars and outjars can be used. The following configuration in proguard.cfg seems to be invalid

-injars a.jar
-injars lib\b.jar
-injars lib\c.jar

-outjars a.jar(com/a/**)
-outjars lib\b.jar(com/b/**)
-outjars lib\c.jar(com/c/**)

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