| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- {
- "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"
- }
- },
- ]
- }
- }
|