When creating a new project, you need complete the following check-list
- Rename project and identifier id. To rename from flutter_base to another package name, change the pubspec.yml file and all the imports. Also if using Idea IDE's delete the .idea folder and in Project Structure... add a new root module to the project root so the IDE can detect the actual project.
- Search for all TODO comments and review and modify if necessary
- For Dart compile-time variables create
env.[flavor].json
per flavor with the following structure: -
For iOS to work in CI/CD with Fastlane it's necessary to first manually sign and extract theRolled back to flutter_config due to the removal ofExportOptions.plist
file and rename it per flavor in the ios folder with the following names: ios/ExportOptionsLive.plist and ios/ExportOptionsBeta.plist. This is because flutter CLI can not build and manually sign iOS apps for now (flutter issue). Follow this guide to extract theExportOptionsBeta.plist
file.--dart-define-from-file
from Flutter team because it was considered a bug