1{ 2 "app": { 3 "vendor": "samples", 4 "bundleName": "ohos.samples.jsadptiveservicewidget", 5 "version": { 6 "code": 1000000, 7 "name": "1.0.0" 8 } 9 }, 10 "deviceConfig": {}, 11 "module": { 12 "mainAbility": ".MainAbility", 13 "deviceType": [ 14 "default", 15 "tablet" 16 ], 17 "abilities": [ 18 { 19 "skills": [ 20 { 21 "entities": [ 22 "entity.system.home" 23 ], 24 "actions": [ 25 "action.system.home" 26 ] 27 } 28 ], 29 "orientation": "unspecified", 30 "visible": true, 31 "srcPath": "MainAbility", 32 "name": ".MainAbility", 33 "srcLanguage": "js", 34 "icon": "$media:icon", 35 "description": "$string:MainAbility_desc", 36 "formsEnabled": false, 37 "label": "$string:MainAbility_label", 38 "type": "page", 39 "launchType": "standard" 40 }, 41 { 42 "srcPath": "FormAbility", 43 "name": "FormAbility", 44 "icon": "$media:icon", 45 "srcLanguage": "js", 46 "description": "$string:form_FormAbility_desc", 47 "formsEnabled": true, 48 "label": "$string:form_FormAbility_label", 49 "type": "service", 50 "forms": [ 51 { 52 "jsComponentName": "complex", 53 "isDefault": true, 54 "scheduledUpdateTime": "10:30", 55 "defaultDimension": "2*2", 56 "formVisibleNotify": true, 57 "name": "complex", 58 "description": "This is a service widget.", 59 "colorMode": "auto", 60 "type": "JS", 61 "supportDimensions": [ 62 "2*2", 63 "4*4" 64 ], 65 "updateEnabled": true, 66 "updateDuration": 1 67 }, 68 { 69 "jsComponentName": "text", 70 "isDefault": true, 71 "scheduledUpdateTime": "10:30", 72 "defaultDimension": "2*2", 73 "formVisibleNotify": true, 74 "name": "text", 75 "description": "This is a service widget.", 76 "colorMode": "auto", 77 "type": "JS", 78 "supportDimensions": [ 79 "2*2" 80 ], 81 "updateEnabled": true, 82 "updateDuration": 1 83 }, 84 { 85 "jsComponentName": "immersive", 86 "isDefault": true, 87 "scheduledUpdateTime": "10:30", 88 "defaultDimension": "2*2", 89 "formVisibleNotify": true, 90 "name": "immersive", 91 "description": "This is a service widget.", 92 "colorMode": "auto", 93 "type": "JS", 94 "supportDimensions": [ 95 "2*2" 96 ], 97 "updateEnabled": true, 98 "updateDuration": 1 99 }, 100 { 101 "jsComponentName": "grid", 102 "isDefault": true, 103 "scheduledUpdateTime": "10:30", 104 "defaultDimension": "2*2", 105 "formVisibleNotify": true, 106 "name": "grid", 107 "description": "This is a service widget.", 108 "colorMode": "auto", 109 "type": "JS", 110 "supportDimensions": [ 111 "2*2" 112 ], 113 "updateEnabled": true, 114 "updateDuration": 1 115 }, 116 { 117 "jsComponentName": "imgText", 118 "isDefault": true, 119 "scheduledUpdateTime": "10:30", 120 "defaultDimension": "2*2", 121 "formVisibleNotify": true, 122 "name": "imgText", 123 "description": "This is a service widget.", 124 "colorMode": "auto", 125 "type": "JS", 126 "supportDimensions": [ 127 "2*2", 128 "2*4" 129 ], 130 "updateEnabled": true, 131 "updateDuration": 1 132 } 133 ] 134 } 135 ], 136 "distro": { 137 "moduleType": "entry", 138 "installationFree": false, 139 "deliveryWithInstall": true, 140 "moduleName": "entry" 141 }, 142 "package": "com.example.entry", 143 "srcPath": "", 144 "name": ".entry", 145 "js": [ 146 { 147 "pages": [ 148 "pages/index/index" 149 ], 150 "name": ".MainAbility", 151 "window": { 152 "designWidth": 720, 153 "autoDesignWidth": false 154 } 155 }, 156 { 157 "pages": [ 158 "pages/index/index" 159 ], 160 "name": "complex", 161 "window": { 162 "designWidth": 720, 163 "autoDesignWidth": true 164 }, 165 "type": "form" 166 }, 167 { 168 "pages": [ 169 "pages/index/index" 170 ], 171 "name": "text", 172 "window": { 173 "designWidth": 720, 174 "autoDesignWidth": true 175 }, 176 "type": "form" 177 }, 178 { 179 "pages": [ 180 "pages/index/index" 181 ], 182 "name": "immersive", 183 "window": { 184 "designWidth": 720, 185 "autoDesignWidth": true 186 }, 187 "type": "form" 188 }, 189 { 190 "pages": [ 191 "pages/index/index" 192 ], 193 "name": "grid", 194 "window": { 195 "designWidth": 720, 196 "autoDesignWidth": true 197 }, 198 "type": "form" 199 }, 200 { 201 "pages": [ 202 "pages/index/index" 203 ], 204 "name": "imgText", 205 "window": { 206 "designWidth": 720, 207 "autoDesignWidth": true 208 }, 209 "type": "form" 210 } 211 ] 212 } 213}