提交 1aebc7a5 编写于 作者: C chengxingzhen

xts修改json中deviceType属性

Signed-off-by: Nchengxingzhen <chengxingzhen@huawei.com>
上级 be16cba5
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"default" "default",
"tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
"package": "com.amsst.fwkdataaccessor", "package": "com.amsst.fwkdataaccessor",
"name": ".entry", "name": ".entry",
"deviceType": [ "deviceType": [
"default" "default",
"tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath":"", "srcPath":"",
"deviceType": [ "deviceType": [
"default" "default",
"tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"default" "default",
"tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"srcPath": "", "srcPath": "",
"deviceType": [ "deviceType": [
"default" "default",
"tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
"description": "$string:entry_desc", "description": "$string:entry_desc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default", "default",
"tablet" "tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
"name": ".entry", "name": ".entry",
"mainAbility": "com.amsst.actsstserviceabilityclientcasetest.MainAbility", "mainAbility": "com.amsst.actsstserviceabilityclientcasetest.MainAbility",
"deviceType": [ "deviceType": [
"default" "default",
"tablet"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "com.example.staticextensioninfotest.MainAbility", "mainElement": "com.example.staticextensioninfotest.MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -126,7 +126,7 @@ export default function abilityTest() { ...@@ -126,7 +126,7 @@ export default function abilityTest() {
expect(data.backgroundImg).assertEqual(""); expect(data.backgroundImg).assertEqual("");
expect(data.supportedModes).assertEqual(0); expect(data.supportedModes).assertEqual(0);
expect(data.reqCapabilities.length).assertEqual(0); expect(data.reqCapabilities.length).assertEqual(0);
expect(data.deviceTypes.length).assertEqual(1); expect(data.deviceTypes.length).assertEqual(2);
expect(data.deviceTypes[0]).assertEqual("default"); expect(data.deviceTypes[0]).assertEqual("default");
expect(data.moduleName).assertEqual("phone") expect(data.moduleName).assertEqual("phone")
expect(data.mainAbilityName).assertEqual("com.example.staticextensioninfo.MainAbility"); expect(data.mainAbilityName).assertEqual("com.example.staticextensioninfo.MainAbility");
...@@ -308,7 +308,7 @@ export default function abilityTest() { ...@@ -308,7 +308,7 @@ export default function abilityTest() {
expect(data.backgroundImg).assertEqual(""); expect(data.backgroundImg).assertEqual("");
expect(data.supportedModes).assertEqual(0); expect(data.supportedModes).assertEqual(0);
expect(data.reqCapabilities.length).assertEqual(0); expect(data.reqCapabilities.length).assertEqual(0);
expect(data.deviceTypes.length).assertEqual(1); expect(data.deviceTypes.length).assertEqual(2);
expect(data.deviceTypes[0]).assertEqual("default"); expect(data.deviceTypes[0]).assertEqual("default");
expect(data.moduleName).assertEqual("phone") expect(data.moduleName).assertEqual("phone")
expect(data.mainAbilityName).assertEqual("com.example.staticextensioninfotest.MainAbility"); expect(data.mainAbilityName).assertEqual("com.example.staticextensioninfotest.MainAbility");
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "com.example.staticextensioninfo.MainAbility", "mainElement": "com.example.staticextensioninfo.MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
"description": "$string:phone_entry_dsc", "description": "$string:phone_entry_dsc",
"mainElement": "MainAbility", "mainElement": "MainAbility",
"deviceTypes": [ "deviceTypes": [
"default" "default",
"tablet"
], ],
"deliveryWithInstall": true, "deliveryWithInstall": true,
"installationFree": false, "installationFree": false,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"name": ".entry", "name": ".entry",
"mainAbility": ".MainAbility", "mainAbility": ".MainAbility",
"deviceType": [ "deviceType": [
"tablet", "tablet",
"default" "default"
], ],
"distro": { "distro": {
...@@ -92,4 +92,4 @@ ...@@ -92,4 +92,4 @@
}, },
"srcPath": "" "srcPath": ""
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册