{ "module": { "name": "entry", "type": "entry", "description": "$string:module_desc", "mainElement": "EntryAbility", "srcEntry": "./ets/MyAbilityStage.ets", "deviceTypes": [ "phone", "tablet", "2in1" ], "querySchemes": [//支付宝配置 "https", "alipays", "weixin", "wxopensdk" ], "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", "metadata": [ { "name": "ArkTSPartialUpdate", "value": "true" }, { "name": "client_id", "value": "6917560202517406526" } ], "abilities": [ { "name": "EntryAbility", "srcEntry": "./ets/entryability/EntryAbility.ets", "description": "$string:EntryAbility_desc", "icon": "$media:layered_image", "label": "$string:EntryAbility_label", "startWindowIcon": "$media:layered_image", "startWindowBackground": "$color:start_window_background", "orientation": "auto_rotation_restricted", "exported": true, "backgroundModes": [ // 长时任务类型的配置项 "audioPlayback" ], "skills": [ { "actions": [ "action.system.home", "ohos.want.action.viewData", ], "uris": [ // { // "scheme": "file", // "utd":"general.video", // "linkFeature": "FileOpen", // }, { "scheme": "file", "utd": "general.audio", "linkFeature": "FileOpen", }, { "scheme": "file", "type": "audio/*", "linkFeature": "FileOpen", "maxFileSupported": 1 } ], "entities": [ "entity.system.home" ], } ] }, { "name": "ShareUIAbility", "srcEntry": "./ets/entryability/ShareUIAbility.ets", "description": "$string:EntryAbility_desc", "icon": "$media:icon", "label": "$string:EntryAbility_label", "startWindowIcon": "$media:icon", "startWindowBackground": "$color:start_window_background", "orientation": "portrait", "exported": true, "backgroundModes": [ // 长时任务类型的配置项 "audioPlayback" ], "skills": [ { "actions": [ // "action.system.home", "ohos.want.action.sendData" ], // "entities": [ // "entity.system.home" // ], // 目标应用在配置支持接收的数据类型时,需穷举支持的UTD,比如:支持全部图片类型,可声明:general.image // maxFileSupported 对于归属指定类型的文件,标识一次支持接收的最大数量。默认为0,代表不支持此类文件的分享。文件类型归属关系参考:@ohos.data.uniformTypeDescriptor (标准化数据定义与描述) "uris": [ { "scheme": "file", "utd": "general.audio", "linkFeature": "Share", "maxFileSupported": 1 } ] } ] } ], "requestPermissions": [ { "name": "ohos.permission.INTERNET", "usedScene": { "abilities": [ "EntryAbility" ], "when": "inuse" }, "reason": "$string:reason" }, { "name": "ohos.permission.KEEP_BACKGROUND_RUNNING", "reason": "$string:reason_background", "usedScene": { "abilities": [ "EntryAbility", "ShareUIAbility" ], "when": "always" } }, ] } }