add native property in division-config.json (#7611)

* add native in engine module config

* update
This commit is contained in:
媛媛
2020-10-30 13:42:51 +08:00
committed by GitHub
parent 0e1a5b9f10
commit 5f3ebf344f
3 changed files with 23 additions and 3 deletions
+6 -3
View File
@@ -97,19 +97,22 @@
"text": "Audio",
"description": "Audio support.",
"entry": "audio",
"default": true
"default": true,
"native": "USE_AUDIO"
},
{
"text": "VideoPlayer",
"description": "VideoPlayer support.",
"entry": "video",
"default": true
"default": true,
"native": "USE_VIDEO"
},
{
"text": "WebView",
"description": "WebView support.",
"entry": "webview",
"default": true
"default": true,
"native": "USE_WEBVIEW"
},
{
"text": "Tween",
@@ -58,6 +58,10 @@
"text": {
"description": "Display text.",
"type": "string"
},
"native": {
"description": "Native Macro.",
"type": "string"
}
},
"type": "object"
@@ -94,6 +98,10 @@
"text": {
"description": "Display text.",
"type": "string"
},
"native": {
"description": "Native Macro.",
"type": "string"
}
},
"type": "object"
@@ -127,6 +135,10 @@
"text": {
"description": "Display text.",
"type": "string"
},
"native": {
"description": "Native Macro.",
"type": "string"
}
},
"type": "object"
@@ -32,6 +32,11 @@ interface BaseItem extends Displayable {
* If true, this field indicates the item is marked as bundled by default.
*/
default?: boolean;
/**
* native module macro
*/
native?: string;
}
export interface Simple extends BaseItem {