- Run the following command to make the
setup-hooksscript executable
chmod +x ./scripts/setup-hooks.sh
- Then run the
setup-hooksscript. This will setup the git hooks.
./scripts/setup-hooks.sh
These are the scripts that you will run manually during development.
If you get on Mac while running below scripts zsh: permission denied: run following command,
chmod +x scripts/*.shRun the following command to trigger build for all generated dart files.
scripts/build-runner.shThis will generate all dart files. It basically runs build runner and generate classes
scripts/generate-all.shRun the app on a device or an emulator.
scripts/run.sh [flavor] [--build-type]- flavor:
dev, qa, prod - build-type:
debug, profile, release. Defaults todebug. Example:
scripts/run.sh dev --debugscripts/build.sh [file-format] [flavor] [--build-type] [--additional-flag]- file-format:
apk, appbundle, ios. - flavor:
dev, qa, prod. - build-type:
debug, profile, release. Defaults todebug. - additional-flag: Any addition flag to pass to the
flutter buildcommand. Defaults to no flag. Example:
scripts/build.sh ios prod --release --no-codesignRuns the flutter app's dev flavor with the device preview package enabled. Device preview let's you test how an app will look on various devices, orientations, etc.
scripts/device-preview.shThese scripts are used by github actions CI/CD.
Bumps the versionCode/buildNumber by 1 in pubspec.yaml file. For example, it will change version: 1.2.5+12 to version: 1.2.5+13.
scripts/bump-build-number.shSets the current version from pubspec.yaml to the github actions environment variables.
scripts/gh-action-read-and-set-version-env.shReads the version from pubspec.yaml and creates a commit with the message "Bump version to ( version)". Then push the change to the current branch.
scripts/commit-version.sh