WebTrit Phone CLI tools.
Generated by the Very Good CLI 🤖
If the CLI application is available on pub, activate globally via:
dart pub global activate webtrit_phone_tools
Or locally via:
dart pub global activate --source=path <path to this package>
Android Keystore Signing
# Keystore-generate command
$ webtrit_phone_tools keystore-generate --bundleId="com.webtrit.app" --appendDirectory ../webtrit_phone_keystores
# Keystore-commit command
$ webtrit_phone_tools keystore-commit --bundleId="com.webtrit.app" --appendDirectory ../webtrit_phone_keystores
# Keystore-verify command
$ webtrit_phone_tools keystore-verify ../webtrit_phone_keystores/com.webtrit.app
Application Resource Configuration:
# Configure application resources (using configurator tool)
$ webtrit_phone_tools configure --applicationId=$(id) $(KEYSTORES_PATH) --$(BUILD_FLOW)
# Generate configuration files
$ webtrit_phone_tools configurator-generate
# Create demo classic configuration (using configurator tool)
$ webtrit_phone_tools create-demo-classic
# Create assetlink and apple-app-site-association files
$ webtrit_phone_tools assetlinks-generate --bundleId=$(bundle_id) --appleTeamID=$(team_id) --androidFingerprints=$(SHA256_key) --output=$(out_path) $(metadata_path)
**Additional Commands:**
# Show CLI version
$ webtrit_phone_tools --version
# Show usage help
$ webtrit_phone_tools --help
Advanced Usage (Configurator Tool):
These commands are for developers familiar with the configurator
tool used internally.
In the Dart CLI, there isn't a mechanism like in Flutter where you can directly store files in executed builds. Instead, we need to stringify assets before creating the build. This ensures that assets are properly embedded into the Dart code.
To stringify assets, use the stringify_assets.sh
script. This script converts asset files into Dart code that can be included in your build.
Example Usage:
./stringify_assets.sh assets lib/src/gen/stringify_assets.dart
This command takes all files in the assets
directory and converts them into a Dart file located at lib/src/gen/stringify_assets.dart
.
Make sure to run this script before creating a build to ensure all assets are properly included.