I came across with many websites which decompile APK. For Example this website Java Decompiler I was able to decompile the APK and get all the links which were used in the project. My Question is there any way we prevent some files/folder from being decompiled to protect the static links/Secret keys.
you can use progaurd
in your build.gradle
to protect the static links/Secret keys.
buildTypes {
release {
release{
proguardFiles getDefaultProguardFile(
'proguard-android-optimize.txt'),
'proguard-rules.pro'
}
}
}