Skip to content

Latest commit

 

History

History
72 lines (53 loc) · 2.55 KB

File metadata and controls

72 lines (53 loc) · 2.55 KB

HUAWEI EasyGo Schema

中文 | 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.

Usage Guide

Plain JSON

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": "*"
                    }
                ]
            }
        }
    ]
}

Integration with JetBrains IDEs

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

Integration with Visual Studio Code

If you are using Visual Studio Code (not Visual Studio), make sure the setting JSON > Schema Download: Enable is checked (checked by default).

Related Documentation

License

This project is open-sourced under the MIT License.