I created the aar
library in Android studio.
I see the code when I import it in another project.
I don't want this.
What should I do to prevent it from appearing?
Do I need to edit it during compilation or in the code?
Follow the steps mentioned below
...\android-sdk\tools\proguard\examples
-injars in.jar
-outjars out.jar
-libraryjars /lib/rt.jar
Update your library project build.gradle
file to use library.pro
:
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'library.pro'
}
Sync and build the project and it should generate an obfuscated AAR file now.