The simple Flutter project
Including Unit Tests, Widget Tests, Golden Tests, and Integration Tests
Light | Dark |
---|---|
Light | Dark |
---|---|
Light | Dark |
---|---|
Light | Dark |
---|---|
- Dart: 3.5.3
- Flutter SDK: 3.24.3
- CocoaPods: 1.15.0
- cd to root folder of project
- Run
make gen_env
- Run
make sync
- Run app via VSCode or using command
make run_dev
- 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
- Create files
.env.default
in ios/fastlane and android/fastlane - Paste this into files
.env.default
SLACK_URL = "https://hooks.slack.com/services/xxx"
APP_CENTER_TOKEN = "xxx"
APPLE_TOKEN = "xxx"
FIREBASE_TOKEN = "1//xxx"
- Update config values in ios/Fastfile and android/Fastfile
- Update
tokenCredentialId
,channel
in Jenkinsfile
- 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: