leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
763 stars 104 forks source link

Q: Does it obfuscate the code? #180

Closed maxfornacon closed 1 month ago

maxfornacon commented 2 months ago

Does flutter_distributor obfuscate the code?

I suppose not, as far as I have seen it in the logs. Would it be possible somehow to add the --obfuscate flag to the build command?

https://docs.flutter.dev/deployment/obfuscate

lijy91 commented 1 month ago

You can add any arguments supported by the flutter build command.

releases:
  - name: prod
    jobs:
      - name: apk
        package:
          platform: android
          target: apk
          build_args:
            obfuscate: true