中文 | English | Your translation contribution is welcome!
EasyGo is a feature that displays two Activities from the same app side by side.
For more information about EasyGo, please refer to HUAWEI’s official introduction.
This JSON Schema is an unofficial data structure definition for easygo.json, based on HUAWEI’s configuration guide.
Add the $schema property to your easygo.json file with the value https://hellotool.github.io/easygo-schema/easygo.1.0.schema.json.
Example:
{
"$schema": "https://hellotool.github.io/easygo-schema/easygo.1.0.schema.json",
"easyGoVersion": "1.0",
"client": "io.gitee.jesse205.example",
"logicEntities": [
{
"head": {
"function": "magicwindow",
"required": "true"
},
"body": {
"mode": "1",
"activityPairs": [
{
"from": "io.gitee.jesse205.example.MainActivity",
"to": "*"
}
]
}
}
]
}If you are using a JetBrains IDE such as Android Studio, add a new schema in Settings -> Languages & Frameworks -> Schemas and DTDs -> JSON Schema Mappings, and fill in the following information:
- Schema file or URL:
https://hellotool.github.io/easygo-schema/easygo.1.0.schema.json - Schema version: JSON Schema version 7
If you are using Visual Studio Code (not Visual Studio), make sure the setting JSON > Schema Download: Enable is checked (checked by default).
- HUAWEI
Xiaomi(Original documentation has been removed; Wayback Machine unavailable—contributions welcome!)- OPPO
This project is open-sourced under the MIT License.