The simple Flutter project
- Flutter SDK: 3.35.1
- CocoaPods: 1.16.2
- cd to root folder of project
- Run
make gen_env
- Run
make sync
- Run app via IDE
- Enjoy!
-
Change flavor settings:
- Replace all
jp.flutter.app
by your project bundle id (application id) - Config flavors for Android at build.gradle
- Application name: find and change values of:
manifestPlaceholders["applicationName"]
- Version name: find and change values of:
versionName
- Version code: find and change values of:
versionCode
- Application name: find and change values of:
- Config flavors for iOS at:
- Replace all
-
Config Firebase
- Android: Paste your google services files to:
- iOS: Paste your google services files to:
- Define secret constants in env.dart and JSON files in folder dart_defines including:
- dart_defines/develop.json
- dart_defines/qa.json
- dart_defines/staging.json
- dart_defines/production.json
For example:
{
"FLAVOR": "develop",
"APP_BASIC_AUTH_NAME": "admin",
"APP_BASIC_AUTH_PASSWORD": "admin"
}
designDeviceWidth
,designDeviceHeight
,materialAppTitle
,taskMenuMaterialAppColor
,systemUiOverlay
,mobileOrientation
,tabletOrientation
in constant.dart
- YOUR_PROJECT_NAME and the project description
- Upgrade Flutter if needed
- Install Fastlane
- Run
make fastlane_update_plugins
- Create a single file
.env.default
at the project root - Paste this into the file
SLACK_HOOKS_URL=https://hooks.slack.com/services/xxx
ISSUER_ID=xxx
FIREBASE_TOKEN=1//xxx
MENTIONS=@minhnt3
MESSAGE=Xin các anh chị tester nhẹ tay giúp!
DEV_FLAVOR=develop
QA_FLAVOR=qa
STG_FLAVOR=staging
- Put the .p8 file in folder ios
- Update config values in ios/Fastfile and android/Fastfile
- Replace all text:
NFT
byYOUR_PROJECT_CODE
in:- Commit message rule: commit-msg.sh and check_commit_message.sh
- Branch name rule: pre-commit.sh and bitbucket-pipelines/pull-requests
- Run
lefthook install
- Please update these files when upgrading Flutter version: