How to exclude files, classes, libraries or packages from dart obfuscation in flutter?

I found this about dart obfuscation in flutter, but it only says how to enable obfuscation. I tried looking up in what seems to be the snapshot generator arguments here, but the only arguments exposed regarding obfuscation are:

--obfuscate
--save-obfuscation-map=<map-filename>

1 answer

  • answered 2020-01-14 02:25 Ben Konyi

    As far as I know, it's not possible to only obfuscate part of your application. I don't recall that ever being requested by a Google team using Flutter, so I would be extremely surprised if this was possible.