WebTrit Phone application.
WEBTRIT_APP_LINK_DOMAIN
- domain used to set up Android app links and iOS universal links (to generate the required.well-known
files, use theassetlinks-generate
command from webtrit_phone_toolsWEBTRIT_APP_NAME
(default WebTrit)WEBTRIT_APP_DESCRIPTION
(default is empty)WEBTRIT_APP_CORE_URL
(optional)WEBTRIT_APP_DEMO_CORE_URL
(default http://localhost:4000)WEBTRIT_APP_CORE_VERSION_CONSTRAINT
(default ">=0.7.0-alpha <2.0.0")WEBTRIT_APP_PERIODIC_POLLING
(default true)WEBTRIT_APP_DEBUG_LEVEL
(default INFO)WEBTRIT_APP_DATABASE_LOG_STATEMENTS
(default false)
Default build variables located in dart_define.json and could be add to flutter
run
or build
with --dart-define-from-file=dart_define.json
parameter.
WEBTRIT_ANDROID_RELEASE_UPLOAD_KEYSTORE_PATH
- path to folder structure created bykeystore-generate
command of webtrit_phone_tools (KeystoreGenerator)
To use SSL certificates, you need to:
- add the following files to the
assets/certificates
folder - for PKCS12 add passwords to the
assets/certificates/credentials.json
where the key is the file name and the value is the password - run flutter_gen or buid_runner to generate the necessary code
Command line example:
WEBTRIT_ANDROID_RELEASE_UPLOAD_KEYSTORE_PATH=<path for KeystoreGenerator created folder structure> && \
flutter build appbundle --dart-define-from-file=dart_define.json
Command line example:
flutter build ipa --dart-define-from-file=dart_define.json
Command line example:
flutter build web --dart-define-from-file=dart_define.json
dart run tool/extenvsubst.dart dart_define.json build/web/index.html
To rename the default fields for each platform project within the WebTrit Phone application, the package_rename
package can be used.
- Install the Localizely CLI.
Follow these steps according to your specific activity to manage the localization of your application efficiently.
- Add, update, or remove the necessary key(s) in
lib/l10n/arb/app_en.arb
. - Push the key(s) to Localizely using the command:
localizely-cli push
. - If necessary, translate the key(s) on the Localizely platform, ensuring to remove helper tags from the key(s).
- Pull the key(s) from Localizely using the command:
localizely-cli pull
. - Generate the localizations with the command:
flutter gen-l10n
. - Commit the changes.
- Pull the key(s) from Localizely using the command:
localizely-cli pull
. - Generate the localizations with the command:
flutter gen-l10n
. - Commit the changes.
- Add the new locale to the
download files
list inlocalizely.yml
. - Insert
locale_<locale code>
inlib/l10n/arb/app_en.arb
. - Push the newly added key to Localizely using the command:
localizely-cli push
. - Translate the added key on the Localizely platform, remembering to remove helper tags from the key(s).
- Pull the newly added key from Localizely using the command:
localizely-cli pull
. - Generate the localizations with the command:
flutter gen-l10n
. - Commit the changes.
For guidance on configuring themes in your application, refer to the Theme Settings documentation.
To learn how to configure and customize the login process, please consult the Custom Login Setup guide.
To configure the bottom menu according to your application’s needs, refer to the Bottom Menu Configuration guide.
-
run
- Run the Flutter applicationmake run
-
build
- Build the Flutter applicationmake build
-
configure
- Configure application resourcesmake configure id=<application_id>
-
configure-demo
- Create demo configurationmake configure-demo id=<application_id>
-
configure-classic
- Create demo configurationmake configure-classic id=<application_id>
-
build-ios
- Create iOS buildmake build-ios
-
build-apk
- Create APK buildmake build-apk
-
build-appbundle
- Create App Bundle buildmake build-appbundle
-
clean-git
- Clean git filesmake clean-git
Contributions are always welcome!
This project is tested with BrowserStack.