Set up the template
Starting a new project? Do this steps:
- Set new package name. Replace all
com.monterail.flutter.templatestrings to your desired package name, eg.com.company.app. Consider using rename to automate the process.
Important: You have to also rename a folder structure in
android/app/src/main/kotlinfromcom/monterail/flutter/templateto match the package name, eg.com/company/app(yes, you'll have to delete one level of directories). Without this change, built Android apps will not launch.
- Create Android signing key with
make create-android-signing. - Set Sentry DSN in
environment/.dev-variablesandenvironment/.prod-variables. It can be the same value, reported entries are tagged withdevelopmentorproductionrespectively. - Set proper APP_NAME in
environment/.dev-variablesandenvironment/.prod-variables. Development name should have an[dev]prefix to easily distinguish it from the prod app. - Replace
appTitleinlib/src/localization/app_en.arbto actual app title. - Replace the app logo and update the splashscreen with
make update-splashscreen. - Replace app icons for Android, iOS and web. You can use icon.kitchen generate the files.
- Set proper project name in
pubspec.yamland replace allpackage:templateoccurances in Dart code topackage:${your_app_name}. - Update
web/index.html<title>tag to proper app title. - Update
web/manifest.jsonnameandshort_namefields to proper app name. Also, consider updatingdescriptionwith something relevant.