未验证 提交 ea967ddf 编写于 作者: O openharmony_ci 提交者: Gitee

!7984 add bundleType for atomicService

Merge pull request !7984 from 赵淦/master
{ {
"app": { "app": {
"bundleName": "com.example.different.hmservice", "bundleName": "com.example.different.hmservice",
"bundleType": "atomicService",
"vendor": "huawei", "vendor": "huawei",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
...@@ -11,7 +12,7 @@ ...@@ -11,7 +12,7 @@
"keepAlive": true, "keepAlive": true,
"singleUser": true, "singleUser": true,
"minAPIVersion": 9, "minAPIVersion": 9,
"targetAPIVersion": 9, "targetAPIVersion": 9,
"car": { "car": {
"apiCompatibleVersion": 9, "apiCompatibleVersion": 9,
"singleUser": false "singleUser": false
......
{ {
"app": { "app": {
"bundleName": "com.example.qianyiyingyong.hmservice", "bundleName": "com.example.qianyiyingyong.hmservice",
"bundleType": "atomicService",
"vendor": "example", "vendor": "example",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
...@@ -11,7 +12,7 @@ ...@@ -11,7 +12,7 @@
"keepAlive": true, "keepAlive": true,
"singleUser": true, "singleUser": true,
"minAPIVersion": 9, "minAPIVersion": 9,
"targetAPIVersion": 9, "targetAPIVersion": 9,
"car": { "car": {
"apiCompatibleVersion": 9, "apiCompatibleVersion": 9,
"singleUser": false "singleUser": false
......
{ {
"app": { "app": {
"bundleName": "com.example.qianyiyingyong.hmservice", "bundleName": "com.example.qianyiyingyong.hmservice",
"bundleType": "atomicService",
"vendor": "example", "vendor": "example",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
...@@ -11,7 +12,7 @@ ...@@ -11,7 +12,7 @@
"keepAlive": true, "keepAlive": true,
"singleUser": true, "singleUser": true,
"minAPIVersion": 9, "minAPIVersion": 9,
"targetAPIVersion": 9, "targetAPIVersion": 9,
"car": { "car": {
"apiCompatibleVersion": 9, "apiCompatibleVersion": 9,
"singleUser": false "singleUser": false
......
{ {
"app": { "app": {
"bundleName": "com.example.qianyiyingyong.hmservice", "bundleName": "com.example.qianyiyingyong.hmservice",
"bundleType": "atomicService",
"vendor": "example", "vendor": "example",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
...@@ -11,7 +12,7 @@ ...@@ -11,7 +12,7 @@
"keepAlive": true, "keepAlive": true,
"singleUser": true, "singleUser": true,
"minAPIVersion": 9, "minAPIVersion": 9,
"targetAPIVersion": 9, "targetAPIVersion": 9,
"car": { "car": {
"apiCompatibleVersion": 9, "apiCompatibleVersion": 9,
"singleUser": false "singleUser": false
......
{ {
"app": { "app": {
"bundleName": "com.example.startAbilityForResult.hmservice", "bundleName": "com.example.startAbilityForResult.hmservice",
"bundleType": "atomicService",
"vendor": "example", "vendor": "example",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
...@@ -11,10 +12,9 @@ ...@@ -11,10 +12,9 @@
"keepAlive": true, "keepAlive": true,
"singleUser": true, "singleUser": true,
"minAPIVersion": 9, "minAPIVersion": 9,
"targetAPIVersion": 9, "targetAPIVersion": 9,
"targetBundleList": [ "targetBundleList": [
"com.example.qianyiyingyong.hmservice" "com.example.qianyiyingyong.hmservice"
] ]
} }
} }
\ No newline at end of file
{ {
"app": { "app": {
"bundleName": "com.example.qianyiyingyong.hmservice", "bundleName": "com.example.qianyiyingyong.hmservice",
"bundleType": "atomicService",
"vendor": "example", "vendor": "example",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
...@@ -11,7 +12,7 @@ ...@@ -11,7 +12,7 @@
"keepAlive": true, "keepAlive": true,
"singleUser": true, "singleUser": true,
"minAPIVersion": 9, "minAPIVersion": 9,
"targetAPIVersion": 9, "targetAPIVersion": 9,
"car": { "car": {
"apiCompatibleVersion": 9, "apiCompatibleVersion": 9,
"singleUser": false "singleUser": false
......
{ {
"app": { "app": {
"bundleName": "com.open.harmony.packagemag.hmservice", "bundleName": "com.open.harmony.packagemag.hmservice",
"bundleType": "atomicService",
"vendor": "example", "vendor": "example",
"versionCode": 1000000, "versionCode": 1000000,
"versionName": "1.0.0", "versionName": "1.0.0",
...@@ -11,7 +12,7 @@ ...@@ -11,7 +12,7 @@
"keepAlive": true, "keepAlive": true,
"singleUser": true, "singleUser": true,
"minAPIVersion": 9, "minAPIVersion": 9,
"targetAPIVersion": 9, "targetAPIVersion": 9,
"car": { "car": {
"apiCompatibleVersion": 9, "apiCompatibleVersion": 9,
"singleUser": false "singleUser": false
......
{ {
"app":{ "app":{
"bundleName":"ohos.acts.atomic.service.test", "bundleName":"ohos.acts.atomic.service.test",
"bundleType": "atomicService",
"vendor":"huawei", "vendor":"huawei",
"versionCode":1000000, "versionCode":1000000,
"versionName":"1.0.0", "versionName":"1.0.0",
...@@ -13,10 +14,6 @@ ...@@ -13,10 +14,6 @@
"singleUser":true, "singleUser":true,
"minAPIVersion":9, "minAPIVersion":9,
"targetAPIVersion":9, "targetAPIVersion":9,
"atomicService":{
"split":true,
"main":"testModule"
},
"car":{ "car":{
"apiCompatibleVersion":9, "apiCompatibleVersion":9,
"singleUser":false "singleUser":false
......
...@@ -36,17 +36,13 @@ export default function getBundleInfoForSelf() { ...@@ -36,17 +36,13 @@ export default function getBundleInfoForSelf() {
console.info("getBundleInfoForSelfApplicationPro : " + i + " ==" + JSON.stringify(data.hapModulesInfo[i])); console.info("getBundleInfoForSelfApplicationPro : " + i + " ==" + JSON.stringify(data.hapModulesInfo[i]));
} }
expect(data.appInfo.bundleType).assertEqual(bundle.BundleType.ATOMIC_SERVICE); expect(data.appInfo.bundleType).assertEqual(bundle.BundleType.ATOMIC_SERVICE);
expect(data.appInfo.split).assertEqual(true);
expect(data.hapModulesInfo[0].type).assertEqual(bundle.ModuleType.FEATURE); expect(data.hapModulesInfo[0].type).assertEqual(bundle.ModuleType.FEATURE);
expect(data.hapModulesInfo[0].atomicServiceModuleType).assertEqual(bundle.AtomicServiceModuleType.NORMAL);
expect(data.hapModulesInfo[0].preloads.length).assertEqual(0); expect(data.hapModulesInfo[0].preloads.length).assertEqual(0);
expect(data.hapModulesInfo[0].dependencies.length).assertEqual(0); expect(data.hapModulesInfo[0].dependencies.length).assertEqual(0);
expect(data.hapModulesInfo[1].type).assertEqual(bundle.ModuleType.SHARED); expect(data.hapModulesInfo[1].type).assertEqual(bundle.ModuleType.SHARED);
expect(data.hapModulesInfo[1].preloads.length).assertEqual(0); expect(data.hapModulesInfo[1].preloads.length).assertEqual(0);
expect(data.hapModulesInfo[1].atomicServiceModuleType).assertEqual(bundle.AtomicServiceModuleType.NORMAL);
expect(data.hapModulesInfo[1].dependencies.length).assertEqual(0); expect(data.hapModulesInfo[1].dependencies.length).assertEqual(0);
expect(data.hapModulesInfo[2].type).assertEqual(bundle.ModuleType.ENTRY); expect(data.hapModulesInfo[2].type).assertEqual(bundle.ModuleType.ENTRY);
expect(data.hapModulesInfo[2].atomicServiceModuleType).assertEqual(bundle.AtomicServiceModuleType.MAIN);
expect(data.hapModulesInfo[2].preloads.length).assertEqual(2); expect(data.hapModulesInfo[2].preloads.length).assertEqual(2);
expect(data.hapModulesInfo[2].preloads[0].moduleName).assertEqual("feature"); expect(data.hapModulesInfo[2].preloads[0].moduleName).assertEqual("feature");
expect(data.hapModulesInfo[2].preloads[1].moduleName).assertEqual("shared"); expect(data.hapModulesInfo[2].preloads[1].moduleName).assertEqual("shared");
......
{ {
"app":{ "app":{
"bundleName":"ohos.acts.atomic.service.test", "bundleName":"ohos.acts.atomic.service.test",
"bundleType": "atomicService",
"vendor":"huawei", "vendor":"huawei",
"versionCode":1000000, "versionCode":1000000,
"versionName":"1.0.0", "versionName":"1.0.0",
...@@ -13,10 +14,6 @@ ...@@ -13,10 +14,6 @@
"singleUser":true, "singleUser":true,
"minAPIVersion":9, "minAPIVersion":9,
"targetAPIVersion":9, "targetAPIVersion":9,
"atomicService":{
"split":true,
"main":"testModule"
},
"car":{ "car":{
"apiCompatibleVersion":9, "apiCompatibleVersion":9,
"singleUser":false "singleUser":false
......
...@@ -13,10 +13,7 @@ ...@@ -13,10 +13,7 @@
"singleUser":true, "singleUser":true,
"minAPIVersion":9, "minAPIVersion":9,
"targetAPIVersion":9, "targetAPIVersion":9,
"atomicService":{ "bundleType": "atomicService",
"split":true,
"main":"testModule"
},
"car":{ "car":{
"apiCompatibleVersion":9, "apiCompatibleVersion":9,
"singleUser":false "singleUser":false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册