Home > Net >  Prevent extraction of Links from Flutter release apk
Prevent extraction of Links from Flutter release apk

Time:01-17

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.

CodePudding user response:

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'
            }
        }
    }
  •  Tags:  
  • Related