Tuesday, September 6, 2022

How to Obfuscate Flutter Code?

What is Code Obfuscation? Code Obfuscation is the process of modifying an app’s binary to make it harder for humans to understand. It's hides function, class name, variables etc.  

Is there any obfuscation method in Dart (the programming language behind Flutter). flutter apparently has its own obfuscate function. we can use it by adding --obfuscate option when building APK. 

flutter build apk --obfuscate --split-debug-info=//
Once you’ve obfuscated your binary, save the symbols file. You need this if you later want to de-obfuscate a stack trace. example:
the flag --split-debug-info


Post a Comment