I was looking for a way to obfuscate my Android APK/AppBundle, then I found this command :
flutter build apk --obfuscate --split-debug-info=/<project-name>/<directory>
But it doesn't have keystore information so I can't publish this file on the Google Play Console. Then, I found this post for building the app with keys but then it doesn't use obfuscation.
So, how do I build a release version of my app with Dart code obfuscation?
Obfuscate Code: We have 2 level for obfuscate your code:
https://developer.android.com/studio/build/shrink-code
https://docs.flutter.dev/deployment/obfuscate
You can obfuscate both Native Code and Dart Code.
Build release for APK.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.