-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
113 additions
and
15 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
docs/configurations/config_build_mobile_app_for_public_platform.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Configuring apps with compilation environment declarations | ||
|
||
### Context | ||
|
||
- Twake Chat app can use the values of environment declarations to change its functionality or behavior. | ||
Dart compilers can eliminate the code made unreachable due to | ||
control flow using the environment declaration values. | ||
- Only support for mobile app. | ||
|
||
### How to config | ||
|
||
1.Flutter | ||
- To specify environment declarations to the Flutter tool, use the `--dart-define` option instead: | ||
|
||
``` | ||
flutter run --dart-define=REGISTRATION_URL=https://example.com/ | ||
--dart-define=TWAKE_WORKPLACE_HOMESERVER=https://example.com/ | ||
--dart-define=PLATFORM=platfomrm | ||
--dart-define=HOME_SERVER=https://example.com/ | ||
``` | ||
|
||
- `REGISTRATION_URL`: Registration URL for public platform | ||
- `TWAKE_WORKPLACE_HOMESERVER`: Twake workplace homeserver | ||
- `PLATFORM`: Platform, `saas` for the case of public platform | ||
- `HOME_SERVER`: Homeserver | ||
|
||
If you want to disable it, please change the value or remove when use `--dart-define` option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## Configuration for config.json | ||
|
||
### Context | ||
|
||
- Twake Chat need to config env for Twake Chat service on web version | ||
- Now only support to web | ||
|
||
### How to config | ||
|
||
1.Add environment | ||
in [config.sample.json](https://github.com/linagora/twake-on-matrix/blob/main/config.sample.json) | ||
|
||
- Env for Twake Chat service: | ||
|
||
``` | ||
{ | ||
"application_name": "Twake Chat", | ||
"application_welcome_message": "Welcome to Twake Chat!", | ||
"default_homeserver": "matrix.linagora.com", | ||
"privacy_url": "https://twake.app/en/privacy/", | ||
"render_html": true, | ||
"hide_redacted_events": false, | ||
"hide_unknown_events": false, | ||
"issue_id": "", | ||
"registration_url": "https://example.com/", | ||
"twake_workplace_homeserver": "https://example.com/", | ||
"app_grid_dashboard_available": true, | ||
"homeserver": "https://example.com/", | ||
"platform": "platform" | ||
} | ||
``` | ||
|
||
- `application_name`: The name will be showed in App Grid | ||
- `application_welcome_message`: The welcome message will be showed in App Grid | ||
- `default_homeserver`: The default homeserver | ||
- `privacy_url`: The privacy policy URL | ||
- `render_html`: Render HTML in messages | ||
- `hide_redacted_events`: Hide redacted events | ||
- `hide_unknown_events`: Hide unknown events | ||
- `issue_id`: Issue ID | ||
- `registration_url`: Registration URL for public platform | ||
- `twake_workplace_homeserver`: Twake workplace homeserver | ||
- `app_grid_dashboard_available`: Enable App Grid | ||
- `homeserver`: Homeserver | ||
- `platform`: Platform, `saas` for the case of public platform | ||
|
||
If you want to disable it, please change the value or remove this from `config.sample.json` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters