Flutter debug vs release builds

1,995

The main differences between release and debug build are that in release:

  • asserts are disabled.
  • dart:developer is disabled
  • tree shaking did its job
  • Dart is AOT vs JIT/interpreted
Share:
1,995
TemporaryFix
Author by

TemporaryFix

I write bad code and progressively make it better

Updated on December 10, 2022

Comments

  • TemporaryFix
    TemporaryFix 14 minutes

    What are some differences between an app file built with the flutter run command and a release version of the app built with the flutter build apk command?

    I am wondering if the debug version of the app is what is causing some issues that I am experiencing I have listed in a different question

    I read through the documentation on creating a release version of the app and noticed there's a section on creating a keystore. I wonder if a debug build creates a temporary keystore that gets erased after a certain period of time which is causing my issue in the other question.

    But, I am curious overall what the differences are between a debug build and a release build as well which is why I am creating this question.