How to set the obfuscate dictionary

35 views
Skip to first unread message

Mr Allen

unread,
Aug 23, 2021, 5:55:49 AM8/23/21
to Flutter Development (flutter-dev)

How to set the obfuscate dictionary when build the release version, just like the setting in Android build.gradle:
-proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),'proguard-rules.pro'

I am using the following command, there is no way to set the dictionary:
-flutter build apk --obfuscate --split-debug-info=//

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19042.1165], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
[√] Connected device (2 available)

Paulo Vianna

unread,
Aug 24, 2021, 9:51:10 AM8/24/21
to Flutter Development (flutter-dev)

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/b17cefa5-7de1-45eb-84ba-0b8ac07f8684n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages