How is the Proguard android project and its modules and libraries?

I use Android Studio, my application uses many modules and libs Can I provide all the modules, libraries and the application? Or can I do this only for the application?

+4
source share
1 answer

If you enable Proguard for the application module, that is, a module that includes others, everything will be confused.

To check this:

  • create a new project
  • add a new module, call it lib
  • add code to lib, use this code in application
  • enable Proguard for the application, not for lib
  • in Android Studio:
    • Assembly → Cleaning
    • Build → Build apk
    • Assembly → Analysis apk

, , lib .

0

Source: https://habr.com/ru/post/1618297/


All Articles