T
T
Tsuzukeru2022-04-12 15:10:02
Android
Tsuzukeru, 2022-04-12 15:10:02

Why does the -keep rule work for a folder but not for all class members?

I have a rule to keep the whole folder -keep class com.nnn.domain_model.route.** {*;}and it works fine.
I wrote this rule in a different way, writing out all the models from the folder in order to understand which ones to keep by the method of elimination.
-keep class com.nnn.domain_model.route.A
-keep class com.nnn.domain_model.route.B
-keep class com.nnn.domain_model.route.C

But problems start in the application. How are these 2 methods different?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tsudzukeru, 2022-04-14
@Tsuzukeru

If you do not add {*;}, then the class names will not be obfuscated, but the internals will be.
{*;}they say that you need to keep the insides too, the class will be completely preserved in its original form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question