From 44c1a19881106a6537ddedbf06d8bb9dcdbbfd43 Mon Sep 17 00:00:00 2001 From: zhaoyuan17 Date: Wed, 22 Sep 2021 10:56:36 +0800 Subject: [PATCH] add xts bms test Signed-off-by: zhaoyuan17 --- .../bundle_standard/bundlemanager/BUILD.gn | 17 + .../actsbmsallshortcutinfotest/BUILD.gn | 31 ++ .../actsbmsallshortcutinfotest/Test.json | 41 ++ .../entry/package.json | 1 + .../entry/src/main/config.json | 62 +++ .../entry/src/main/js/default/app.js | 22 + .../entry/src/main/js/default/i18n/en-US.json | 6 + .../entry/src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 45 ++ .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../test/ActsBmsAllShortcutInfoTest.test.js | 469 ++++++++++++++++++ .../entry/src/main/js/test/List.test.js | 16 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../actsbmscheckpermissiontest/BUILD.gn | 31 ++ .../actsbmscheckpermissiontest/Test.json | 18 + .../entry/package.json | 1 + .../entry/src/main/config.json | 96 ++++ .../entry/src/main/js/default/app.js | 23 + .../entry/src/main/js/default/i18n/en-US.json | 6 + .../entry/src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 42 ++ .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../test/ActsBmsCheckPermissionTest.test.js | 222 +++++++++ .../entry/src/main/js/test/List.test.js | 16 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../actsbmshapmoduletest/BUILD.gn | 31 ++ .../actsbmshapmoduletest/Test.json | 39 ++ .../actsbmshapmoduletest/entry/package.json | 1 + .../entry/src/main/config.json | 62 +++ .../entry/src/main/js/default/app.js | 22 + .../entry/src/main/js/default/i18n/en-US.json | 6 + .../entry/src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 44 ++ .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../main/js/test/ActsBmsHapModuleTest.test.js | 156 ++++++ .../entry/src/main/js/test/List.test.js | 16 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../bundlemanager/actsbmsjstest/BUILD.gn | 31 ++ .../bundlemanager/actsbmsjstest/Test.json | 39 ++ .../actsbmsjstest/entry/package.json | 1 + .../actsbmsjstest/entry/src/main/config.json | 63 +++ .../entry/src/main/js/default/app.js | 22 + .../entry/src/main/js/default/i18n/en-US.json | 6 + .../entry/src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 42 ++ .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../src/main/js/test/ActsBmsJsTest.test.js | 128 +++++ .../entry/src/main/js/test/List.test.js | 15 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../actsbmsmetadatatest/BUILD.gn | 31 ++ .../actsbmsmetadatatest/Test.json | 40 ++ .../actsbmsmetadatatest/entry/package.json | 1 + .../entry/src/main/config.json | 62 +++ .../entry/src/main/js/default/app.js | 22 + .../entry/src/main/js/default/i18n/en-US.json | 6 + .../entry/src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 45 ++ .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../main/js/test/ActsBmsMetaDataTest.test.js | 292 +++++++++++ .../entry/src/main/js/test/List.test.js | 15 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../actsbmsmoduleusagerecordtest/BUILD.gn | 31 ++ .../actsbmsmoduleusagerecordtest/Test.json | 37 ++ .../entry/package.json | 1 + .../entry/src/main/config.json | 62 +++ .../entry/src/main/js/default/app.js | 22 + .../entry/src/main/js/default/i18n/en-US.json | 6 + .../entry/src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 43 ++ .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../test/ActsBmsModuleUsageRecordTest.test.js | 355 +++++++++++++ .../entry/src/main/js/test/List.test.js | 15 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../bmsgetinfosfifthscene/BUILD.gn | 34 ++ .../bmsgetinfosfifthscene/Test.json | 3 + .../bmsgetinfosfifthscene/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 203 ++++++++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 25 + .../src/main/js/default2/app.js | 22 + .../src/main/js/default2/i18n/en-US.json | 6 + .../src/main/js/default2/i18n/zh-CN.json | 6 + .../main/js/default2/pagesB/index/index.css | 9 + .../main/js/default2/pagesB/index/index.hml | 5 + .../main/js/default2/pagesB/index/index.js | 25 + .../js/resources/base/element/string.json | 16 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsgetinfosfirstscene/BUILD.gn | 34 ++ .../bmsgetinfosfirstscene/Test.json | 3 + .../bmsgetinfosfirstscene/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 135 +++++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 32 ++ .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsgetinfosfirstsceneupdate/BUILD.gn | 34 ++ .../bmsgetinfosfirstsceneupdate/Test.json | 3 + .../bmsgetinfosfirstsceneupdate/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 134 +++++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 25 + .../js/resources/base/element/string.json | 16 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsgetinfosfourthscene/BUILD.gn | 34 ++ .../bmsgetinfosfourthscene/Test.json | 3 + .../bmsgetinfosfourthscene/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 139 ++++++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 25 + .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../sceneProject/bmsgetinfosjsscene/BUILD.gn | 34 ++ .../sceneProject/bmsgetinfosjsscene/Test.json | 3 + .../bmsgetinfosjsscene/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../bmsgetinfosjsscene/src/main/config.json | 62 +++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 25 + .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsgetinfosscenesystem/BUILD.gn | 34 ++ .../bmsgetinfosscenesystem/Test.json | 3 + .../bmsgetinfosscenesystem/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 114 +++++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 25 + .../js/resources/base/element/string.json | 16 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsgetinfosscenevendor/BUILD.gn | 34 ++ .../bmsgetinfosscenevendor/Test.json | 3 + .../bmsgetinfosscenevendor/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 136 +++++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 25 + .../js/resources/base/element/string.json | 16 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsgetinfossecondscene/BUILD.gn | 34 ++ .../bmsgetinfossecondscene/Test.json | 3 + .../bmsgetinfossecondscene/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 62 +++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 27 + .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsgetinfosthirdscene/BUILD.gn | 34 ++ .../bmsgetinfosthirdscene/Test.json | 3 + .../bmsgetinfosthirdscene/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 135 +++++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 29 ++ .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsmainabilityfirstscene/BUILD.gn | 34 ++ .../bmsmainabilityfirstscene/Test.json | 3 + .../bmsmainabilityfirstscene/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 62 +++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 25 + .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes .../bmsmainabilitysecondscene/BUILD.gn | 34 ++ .../bmsmainabilitysecondscene/Test.json | 3 + .../bmsmainabilitysecondscene/package.json | 1 + .../signature/openharmony_sx.p7b | Bin 0 -> 3437 bytes .../src/main/config.json | 53 ++ .../src/main/js/default/app.js | 22 + .../src/main/js/default/i18n/en-US.json | 6 + .../src/main/js/default/i18n/zh-CN.json | 6 + .../src/main/js/default/pages/index/index.css | 9 + .../src/main/js/default/pages/index/index.hml | 5 + .../src/main/js/default/pages/index/index.js | 25 + .../js/resources/base/element/string.json | 12 + .../src/main/js/resources/base/media/icon.png | Bin 0 -> 6790 bytes 240 files changed, 5857 insertions(+) create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/package.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/test/ActsBmsAllShortcutInfoTest.test.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/test/List.test.js create mode 100755 appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/package.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/test/ActsBmsCheckPermissionTest.test.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/test/List.test.js create mode 100755 appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/package.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/test/ActsBmsHapModuleTest.test.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/test/List.test.js create mode 100755 appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/package.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/test/ActsBmsJsTest.test.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/test/List.test.js create mode 100755 appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/package.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/test/ActsBmsMetaDataTest.test.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/test/List.test.js create mode 100755 appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/package.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/ActsBmsModuleUsageRecordTest.test.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/List.test.js create mode 100755 appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/resources/base/media/icon.png create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/BUILD.gn create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/Test.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/package.json create mode 100755 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/signature/openharmony_sx.p7b create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/config.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/app.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/i18n/en-US.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/i18n/zh-CN.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.css create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.hml create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.js create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/resources/base/element/string.json create mode 100644 appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/resources/base/media/icon.png diff --git a/appexecfwk/bundle_standard/bundlemanager/BUILD.gn b/appexecfwk/bundle_standard/bundlemanager/BUILD.gn index 6ed119e14..4d8ecf740 100755 --- a/appexecfwk/bundle_standard/bundlemanager/BUILD.gn +++ b/appexecfwk/bundle_standard/bundlemanager/BUILD.gn @@ -17,7 +17,24 @@ group("bundlemanager") { testonly = true if (is_standard_system) { deps = [ + "actsbmsallshortcutinfotest:ActsBmsAllShortcutInfoTest", + "actsbmscheckpermissiontest:ActsBmsCheckPermissionTest", + "actsbmshapmoduletest:ActsBmsHapModuleTest", + "actsbmsjstest:ActsBmsJsTest", + "actsbmsmetadatatest:ActsBmsMetaDataTest", + "actsbmsmoduleusagerecordtest:ActsBmsModuleUsageRecordTest", "actsbundlemanagertest:ActsBundleManagerTest", + "sceneProject/bmsgetinfosfifthscene:bmsThirdBundleTest5", + "sceneProject/bmsgetinfosfirstscene:bmsThirdBundleTest1", + "sceneProject/bmsgetinfosfirstsceneupdate:bmsThirdBundleTestA1", + "sceneProject/bmsgetinfosfourthscene:bmsThirdBundleTest4", + "sceneProject/bmsgetinfosjsscene:bmsThirdBundleJs", + "sceneProject/bmsgetinfosscenesystem:bmsSystemBundleTest1", + "sceneProject/bmsgetinfosscenevendor:bmsVendorBundleTest1", + "sceneProject/bmsgetinfossecondscene:bmsThirdBundleTest2", + "sceneProject/bmsgetinfosthirdscene:bmsThirdBundleTest3", + "sceneProject/bmsmainabilityfirstscene:bmsMainAbilityFirstScene", + "sceneProject/bmsmainabilitysecondscene:bmsMainAbilitySecondScene", "sceneProject/bmssceneeight:bmsJstest8", "sceneProject/bmsscenefive:bmsJstest5", "sceneProject/bmsscenefour:bmsJstest4", diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/BUILD.gn b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/BUILD.gn new file mode 100644 index 000000000..48e837ab0 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsBmsAllShortcutInfoTest") { + hap_profile = "./entry/src/main/config.json" + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "ActsBmsAllShortcutInfoTest" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./entry/src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./entry/src/main/js/resources" ] + hap_profile = "./entry/src/main/config.json" +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/Test.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/Test.json new file mode 100644 index 000000000..0ffb97e5e --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/Test.json @@ -0,0 +1,41 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "JSUnitTest", + "test-timeout": "21600000", + "package": "com.example.actsbmsallshortcutinfotest", + "shell-timeout": "21600000" + }, + "kits": [ + { + "test-file-name": [ + "ActsBmsAllShortcutInfoTest.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "remount", + "mkdir /data/test" + ] + }, + { + "type": "PushKit", + "push": [ + "bmsThirdBundleTest1.hap->/data/test/bmsThirdBundleTest1.hap", + "bmsThirdBundleTest2.hap->/data/test/bmsThirdBundleTest2.hap", + "bmsThirdBundleTest3.hap->/data/test/bmsThirdBundleTest3.hap", + "bmsThirdBundleTest4.hap->/data/test/bmsThirdBundleTest4.hap", + "bmsThirdBundleTestA1.hap->/data/test/bmsThirdBundleTestA1.hap" + ] + }, + { + "type": "ShellKit", + "run-command": [ + "chmod 644 /data/test/*.hap" + ] + } + ] +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/package.json new file mode 100644 index 000000000..69a88e3b6 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/package.json @@ -0,0 +1 @@ +{} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/config.json new file mode 100644 index 000000000..87f119172 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/config.json @@ -0,0 +1,62 @@ +{ + "app": { + "bundleName": "com.example.actsbmsallshortcutinfotest", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.actsbmsallshortcutinfotest", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home", + "flag.home.intent.from.system" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.actsbmsallshortcutinfotest.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard", + "visible": true + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..13ae33e07 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..3c9388608 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/default/pages/index/index.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import {Core, ExpectExtend} from 'deccjsunit/index' + +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: 'Test Shortcut' + }, + onInit() { + this.title = this.data.title; + }, + onShow() { + console.info('onReady finish') + const core = Core.getInstance() + const expectExtend = new ExpectExtend({ + 'id': 'extend' + }) + core.addService('expect', expectExtend) + core.init() + const configService = core.getDefaultService('config') + configService.setConfig(this) + + require('../../../test/List.test') + core.execute() + }, + onReady() { + }, + onBackPress(){ + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..9098ff618 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "actsbmsallshortcutinfotest" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;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{wsdrmPvf#a9OHyYLcwQD4Kcm)`LLwMh4WT~p29f7M!iafJSU`IV}QY5Wa z(n44-9oA}?J{a+ah*@31WTs#&J#o1`H98#6IQf;Wv0N_!);f&9g7o-k(lW5rWnDUR zQBFIRG+X=6NnsI@mxnwm;tf5;_Uxg?jZ8m-m0}&6+DA!qam(p$mN5R})yA_7m$q@| zFEd|dpS595rxQr-n#GjI5i-AhnUE>Cr;jpCqSrD~EwK_DqI^7%3#p5)%T_od!t3SOmH9MyXeeGO2(UQL;ax|x?Ncixmeo1=$ z{-);Au{*tfzOG?KQ~K|ak8-HQ?`Pekhe2WM(8s{xv-p>Zmu_6{G!-oE$7$mY`MOJorI=+mMx?H;`pr!;fVYz?5~yXBACruWB`Ph zZM}90_<^OBxIhyZ9BW$`>6JvO;%VFpqVr8|7t3~AmxYak6?`Pp#c;**_SYmi`&z23 z`p6_~ePvH)C6x-G9$hgL=eVALq`-AiamN>!3~Lxw&{H(b{B(7xSRm6<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y { + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(1); + checkShortcutIsExist(data, 'id.third1', 'third1'); + done(); + }); + }); + /* + * @tc.number: bms_getAllShortcutInfo_0200 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: get the shortcut information of the hap with type of entry + */ + it('bms_getAllShortcutInfo_0200', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_0200=================='); + var bundleName = 'com.example.third1'; + bundle.getAllShortcutInfo(bundleName, (result, data) => { + expect(result.code).assertEqual(0); + expect(data.length).assertEqual(1); + checkShortcutIsExist(data, 'id.third1', 'third1'); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_0300 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: 1.install a hap with type of feature + * 1.get the shortcut informations of two types of hap + */ + it('bms_getAllShortcutInfo_0300', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_0300=================='); + var bundleName = 'com.example.third1'; + var bundlePath = ['/data/test/bmsThirdBundleTest3.hap']; + await install(bundlePath); + var data = await bundle.getAllShortcutInfo(bundleName); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(2); + checkShortcutIsExist(data, 'id.third1', 'third1'); + checkShortcutIsExist(data, 'id.third3', 'third3'); + done(); + }) + + /* + * @tc.number: bms_getAllShortcutInfo_0400 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: 1.get the shortcut informations of two types of hap + */ + it('bms_getAllShortcutInfo_0400', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_0400=================='); + var bundleName = 'com.example.third1'; + bundle.getAllShortcutInfo(bundleName, async (result, data) => { + expect(result.code).assertEqual(0); + expect(data.length).assertEqual(2); + checkShortcutIsExist(data, 'id.third1', 'third1'); + checkShortcutIsExist(data, 'id.third3', 'third3'); + await uninstall(bundleName); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_0500 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut informations of an invalid hap + */ + it('bms_getAllShortcutInfo_0500', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_0500=================='); + var data = await bundle.getAllShortcutInfo(''); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(0); + done(); + }) + /* + * @tc.number: bms_getAllShortcutInfo_0600 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: get the shortcut informations of an invalid hap + */ + it('bms_getAllShortcutInfo_0600', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_0600=================='); + var bundleName = ''; + bundle.getAllShortcutInfo(bundleName, (result, data) => { + expect(result.code).assertEqual(-1); + expect(data.length).assertEqual(0); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_0700 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: 1.install a hap with low version + * 2.install a hap with high version + * 3.get the shortcut information of a hap with high version by bundlename + */ + it('bms_getAllShortcutInfo_0700', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_0700=================='); + var bundlePath1 = ['/data/test/bmsThirdBundleTest1.hap']; + await install(bundlePath1); + var bundleName = 'com.example.third1'; + var bundlePath2 = ['/data/test/bmsThirdBundleTestA1.hap']; + await install(bundlePath2); + var data = await bundle.getAllShortcutInfo(bundleName); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(1); + for (var i = 0; i < data.length; i++) { + expect(typeof data[i]).assertEqual('object'); + expect(typeof data[i].id).assertEqual('string'); + expect(data[i].id).assertEqual('id.thirdA1'); + expect(typeof data[i].disableMessage).assertEqual('string'); + expect(typeof data[i].isStatic).assertEqual('boolean'); + expect(typeof data[i].isHomeShortcut).assertEqual('boolean'); + expect(typeof data[i].isEnabled).assertEqual('boolean'); + expect(typeof data[i].hostAbility).assertEqual('string'); + expect(typeof data[i].wants).assertEqual('object') + if (typeof data[i].wants != 'undefined' && Object.keys(data[i].wants).length != 0) { + for (var j = 0; j < data[i].wants.length; j++) { + expect(data[i].wants[j].targetClass).assertEqual('com.example.third1.AMainAbility'); + expect(data[i].wants[j].targetBundle).assertEqual('com.example.third1'); + } + } + } + done(); + }) + /* + * @tc.number: bms_getAllShortcutInfo_0800 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: get the shortcut information of a hap with high version by bundlename + */ + it('bms_getAllShortcutInfo_0800', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_0800=================='); + var bundleName = 'com.example.third1'; + bundle.getAllShortcutInfo(bundleName, async (result, data) => { + expect(result.code).assertEqual(0); + expect(data.length).assertEqual(1); + for (var i = 0; i < data.length; i++) { + expect(typeof data[i]).assertEqual('object'); + expect(typeof data[i].id).assertEqual('string'); + expect(data[i].id).assertEqual('id.thirdA1'); + expect(typeof data[i].disableMessage).assertEqual('string'); + expect(typeof data[i].isStatic).assertEqual('boolean'); + expect(typeof data[i].isHomeShortcut).assertEqual('boolean'); + expect(typeof data[i].isEnabled).assertEqual('boolean'); + expect(typeof data[i].hostAbility).assertEqual('string'); + expect(typeof data[i].wants).assertEqual('object') + if (typeof data[i].wants != 'undefined' && Object.keys(data[i].wants).length != 0) { + for (var j = 0; j < data[i].wants.length; j++) { + expect(data[i].wants[j].targetClass).assertEqual('com.example.third1.AMainAbility'); + expect(data[i].wants[j].targetBundle).assertEqual('com.example.third1'); + } + } + } + await uninstall(bundleName); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_0900 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut information of a hap without shortcut in config.json + */ + it('bms_getAllShortcutInfo_0900', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_0900=================='); + var bundleName = 'com.example.third2'; + var bundlePath = ['/data/test/bmsThirdBundleTest2.hap']; + await install(bundlePath); + var data = await bundle.getAllShortcutInfo(bundleName); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(0); + done(); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1000 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: get the shortcut information of a hap without shortcut in config.json + */ + it('bms_getAllShortcutInfo_1000', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1000=================='); + var bundleName = 'com.example.third2'; + bundle.getAllShortcutInfo(bundleName, async (result, data) => { + expect(result.code).assertEqual(0); + expect(data.length).assertEqual(0); + await uninstall(bundleName); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1100 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut information of a system hap + */ + it('bms_getAllShortcutInfo_1100', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1100=================='); + var bundleName = 'com.example.system1'; + var data = await bundle.getAllShortcutInfo(bundleName); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(1); + checkShortcutIsExist(data, 'id.system1', 'system1'); + done(); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1200 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: get the shortcut information of a system hap + */ + it('bms_getAllShortcutInfo_1200', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1200=================='); + var bundleName = 'com.example.system1'; + bundle.getAllShortcutInfo(bundleName, (result, data) => { + expect(result.code).assertEqual(0); + expect(data.length).assertEqual(1); + checkShortcutIsExist(data, 'id.system1', 'system1'); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1300 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut information of a vendor hap + */ + it('bms_getAllShortcutInfo_1300', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1300=================='); + var bundleName = 'com.example.vendor1'; + var data = await bundle.getAllShortcutInfo(bundleName); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(1); + checkShortcutIsExist(data, 'id.vendor1', 'vendor1'); + done(); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1400 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: get the shortcut information of a vendor hap + */ + it('bms_getAllShortcutInfo_1400', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1400=================='); + var bundleName = 'com.example.vendor1'; + bundle.getAllShortcutInfo(bundleName, (result, data) => { + expect(result.code).assertEqual(0); + expect(data.length).assertEqual(1); + checkShortcutIsExist(data, 'id.vendor1', 'vendor1'); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1500 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: 1.install a normal hap + * 2.get the shortcut information of this hap by bundlename + * 3.get the shortcut information of this hap after uninstalling the hap + */ + it('bms_getAllShortcutInfo_1500', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1500=================='); + var bundlePath = ['/data/test/bmsThirdBundleTest1.hap']; + await install(bundlePath); + var bundleName = 'com.example.third1'; + var data = await bundle.getAllShortcutInfo(bundleName); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(1); + checkShortcutIsExist(data, 'id.third1', 'third1'); + await uninstall(bundleName); + var info = await bundle.getAllShortcutInfo(bundleName); + expect(info.length).assertEqual(0); + done(); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1600 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: get the shortcut information of this hap after uninstalling the hap + */ + it('bms_getAllShortcutInfo_1600', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1600==================');; + var bundleName = 'com.example.third1'; + bundle.getAllShortcutInfo(bundleName, (result, data) => { + expect(result.code).assertEqual(-1); + expect(data.length).assertEqual(0); + done(); + }); + }) + + /* + * @tc.number: bms_getAllShortcutInfo_1700 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut informations of this hap with two shortcuts in config.json by bundlename + */ + it('bms_getAllShortcutInfo_1700', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1700=================='); + var bundleName = 'com.example.third4'; + var bundlePath = ['/data/test/bmsThirdBundleTest4.hap']; + await install(bundlePath); + var data = await bundle.getAllShortcutInfo(bundleName); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(2); + checkShortcutIsExist(data, 'id.third4A', 'third4A'); + checkShortcutIsExist(data, 'id.third4B', 'third4B'); + done(); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1800 + * @tc.name: test getAllShortcutInfo with callback + * @tc.desc: get the shortcut informations of this hap with two shortcuts in config.json by bundlename + */ + it('bms_getAllShortcutInfo_1800', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1800=================='); + var bundleName = 'com.example.third4'; + bundle.getAllShortcutInfo(bundleName, async (result, data) => { + expect(result.code).assertEqual(0); + expect(data.length).assertEqual(2); + checkShortcutIsExist(data, 'id.third4A', 'third4A'); + checkShortcutIsExist(data, 'id.third4B', 'third4B'); + await uninstall(bundleName); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_1900 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut informations of an invalid bundleName + */ + it('bms_getAllShortcutInfo_1900', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_1900=================='); + var bundleName = '!@#$%^&ERTYUhusdf7254_=-'; + bundle.getAllShortcutInfo(bundleName).then((data) => { + expect(data.length).assertEqual(0); + done(); + }); + }) + /* + * @tc.number: bms_getAllShortcutInfo_2000 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut informations of an invalid bundleName + */ + it('bms_getAllShortcutInfo_2000', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_2000=================='); + var bundleName = '!@#$%^&ERTYUhusdf7254_=-'; + bundle.getAllShortcutInfo(bundleName, async (result, data) => { + expect(result.code).assertEqual(-1); + expect(data.length).assertEqual(0); + done(); + }); + }) + + /* + * @tc.number: bms_getAllShortcutInfo_2100 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut informations of an invalid long bundleName + */ + it('bms_getAllShortcutInfo_2100', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_2100=================='); + var bundleName = 'test'; + for(var i = 0; i < 10000; i++){ + bundleName += 'test'; + } + var data = await bundle.getAllShortcutInfo(bundleName); + expect(typeof data).assertEqual('object'); + expect(data.length).assertEqual(0); + done(); + }) + + /* + * @tc.number: bms_getAllShortcutInfo_2200 + * @tc.name: test getAllShortcutInfo with promise + * @tc.desc: get the shortcut informations of an invalid long bundleName + */ + it('bms_getAllShortcutInfo_2200', 0, async function (done) { + console.info('=====================bms_getAllShortcutInfo_2200=================='); + var bundleName = 'test'; + for(var i = 0; i < 10000; i++){ + bundleName += 'test'; + } + bundle.getAllShortcutInfo(bundleName, async (result, data) => { + expect(result.code).assertEqual(-1); + expect(data.length).assertEqual(0); + done(); + }); + }) + + function checkShortcutInfo(dataInfo, name) { + console.info('=======Shortcut Info========' + JSON.stringify(dataInfo)) + console.info('=============Shortcutid=========' + dataInfo.id); + expect(typeof dataInfo.id).assertEqual('string'); + expect(dataInfo.id).assertEqual('id.' + name); + console.info('=============icon==============' + JSON.stringify(dataInfo.icon)); + expect(typeof dataInfo.disableMessage).assertEqual('string'); + expect(typeof dataInfo.isStatic).assertEqual('boolean'); + expect(typeof dataInfo.isHomeShortcut).assertEqual('boolean'); + expect(typeof dataInfo.isEnabled).assertEqual('boolean'); + expect(typeof dataInfo.hostAbility).assertEqual('string'); + console.info('=============label==============' + JSON.stringify(dataInfo.label)); + expect(typeof dataInfo.wants).assertEqual('object'); + if (typeof dataInfo.wants != 'undefined' && Object.keys(dataInfo.wants).length != 0) { + expect(dataInfo.wants.length).assertLarger(0); + for (var j = 0; j < dataInfo.wants.length; j++) { + console.info('=============targetClass==============' + JSON.stringify(dataInfo.wants[j].targetClass)); + expect(dataInfo.wants[j].targetClass).assertEqual('com.example.' + name + '.MainAbility'); + console.info('=============targetBundle==============' + JSON.stringify(dataInfo.wants[j].targetBundle)); + expect(dataInfo.wants[j].targetBundle).assertEqual('com.example.' + name); + } + } + } + + async function install(bundlePath) { + let result = await bundle.getBundleInstaller(); + await result.install(bundlePath, { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, OnReceiveInstallEvent); + + function OnReceiveInstallEvent(err, data) { + expect(data.status).assertEqual(0); + expect(data.statusMessage).assertEqual("SUCCESS"); + }; + } + async function uninstall(bundleName) { + let result = await bundle.getBundleInstaller(); + await result.uninstall(bundleName, { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, OnReceiveUninstallEvent); + + function OnReceiveUninstallEvent(err, data) { + expect(data.status).assertEqual(0); + expect(data.statusMessage).assertEqual("SUCCESS"); + }; + } + + function checkShortcutIsExist(dataInfo, shortcutId, testName) { + let info = new Map(); + for (var i = 0, len = dataInfo.length; i < len; i++) { + expect(typeof dataInfo[i]).assertEqual('object'); + info.set(dataInfo[i].id, dataInfo[i]); + } + expect(info.has(shortcutId)).assertTrue(); + if (info.has(shortcutId)) { + checkShortcutInfo(info.get(shortcutId), testName); + } + } +}) \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/test/List.test.js new file mode 100644 index 000000000..3a82aa5c6 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/entry/src/main/js/test/List.test.js @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +require('./ActsBmsAllShortcutInfoTest.test.js') \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/signature/openharmony_sx.p7b b/appexecfwk/bundle_standard/bundlemanager/actsbmsallshortcutinfotest/signature/openharmony_sx.p7b new file mode 100755 index 0000000000000000000000000000000000000000..9be1e98fa4c0c28ca997ed660112fa16b194f0f5 GIT binary patch literal 3437 zcmcgvX>b$g8MY4FF(5FQyMT=#m||qU)nQ9cId-MBB-<-lvSdq&snM}IENNF>t+bK| zgowuF2vC|SxSZxNN5eHhV%(WPpbeB9Fc3;JDMtzMBv1-XAc2N~c2_tCXW&OCGw6qQ z-s9VS-tT?h=bI0tMS+~WDXqHJyCPmLzdbE-fV8Nd&*MRZfG8(#POFZG3xs@Lb{0ry z=R8j3wWo!5g=yjKx#BoZMFS)uA)H}cTp@-^K`9VV?RC3J59@}eik*>n|pRKOLZ zxdn7G!Yv@9O#y<&eUy{)vMXb;fQR)ffVAADQsEMXm;IBMDLfLD0w^U;6%HVo-0Q_5 zCHEa?DBuauNpZzoF+tK27w#n~?u%toS-DhR4k@Q*{7x^8Q=D6&kd^_~J#VVG2LXkL zaAy=}U*?Jto)9hx5MGjdp9hcQAu@tfk_;l!PeyxPY<8b&+&D!CyaBh9=8BSVKLpk4 z4Ml3yY|&Th)vyK4cpC{!uU8v2YB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`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/BUILD.gn b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/BUILD.gn new file mode 100644 index 000000000..4650bd3c4 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsBmsCheckPermissionTest") { + hap_profile = "./entry/src/main/config.json" + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "ActsBmsCheckPermissionTest" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./entry/src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./entry/src/main/js/resources" ] + hap_profile = "./entry/src/main/config.json" +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/Test.json b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/Test.json new file mode 100644 index 000000000..44a4c9113 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/Test.json @@ -0,0 +1,18 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "JSUnitTest", + "test-timeout": "21600000", + "package": "com.example.actsbmscheckpermissiontest", + "shell-timeout": "21600000" + }, + "kits": [ + { + "test-file-name": [ + "ActsBmsCheckPermissionTest.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + } + ] +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/package.json new file mode 100644 index 000000000..69a88e3b6 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/package.json @@ -0,0 +1 @@ +{} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/config.json new file mode 100644 index 000000000..cc3089597 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/config.json @@ -0,0 +1,96 @@ +{ + "app": { + "bundleName": "com.example.actsbmscheckpermissiontest", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.actsbmscheckpermissiontest", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.actsbmscheckpermissiontest.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard", + "visible": true + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ], + + "defPermissions": [ + { + "name": "com.permission.CAMERA", + "grantMode": "user_grant", + "availableScope": ["signature"] + }, + { + "name": "com.permission.PERMISSION_A", + "grantMode": "system_grant", + "availableScope": ["signature"] + } + ], + "reqPermissions": [ + { + "name": "com.permission.CAMERA", + "reason": "Need open camera", + "usedScene": { + "ability": [ + "com.example.permissionchange.MainAbility" + ], + "when": "always" + } + }, + { + "name": "com.permission.PERMISSION_A", + "reason": "Need PERMISSION_A", + "usedScene": { + "ability": [ + "com.example.permissionchange.MainAbility" + ], + "when": "always" + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/app.js new file mode 100644 index 000000000..2ba842eda --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/app.js @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..13ae33e07 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..3a1c06c29 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/default/pages/index/index.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import {Core, ExpectExtend} from 'deccjsunit/index' + +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: 'Test CheckPermission' + }, + onInit() { + this.title = this.data.title; + }, + onShow() { + console.info('onReady finish') + const core = Core.getInstance() + const expectExtend = new ExpectExtend({ + 'id': 'extend' + }) + core.addService('expect', expectExtend) + core.init() + const configService = core.getDefaultService('config') + configService.setConfig(this) + + require('../../../test/List.test') + core.execute() + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..96c4547ae --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "actsbmscheckpermissiontest" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08k-|#Ly zaNOmT(^9tIb&eb4%CzIT zAm3CUtWSr1t4?h1kk#NBi{U|pJslvME{q|_eS^3En>SOqSxyuN1x;Is@8~m?*>}** znrRFArP!K_52RpX*&JHMR<^lVdm8ypJ}0R(SD(51j;6@ni$6bQ+2XL+R^|Nn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<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y { + expect(err.code).assertEqual(0); + expect(data).assertEqual(0); + done(); + }) + }) + /* + * @tc.number: bms_checkPermission_0300 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the bundleName is invalid. (by promise) + */ + it('bms_checkPermission_0300', 0, async function (done) { + console.info('=====================bms_checkPermission_0300=================='); + var data = await bundle.checkPermission('', PERMISSION_ONE) + expect(data).assertEqual(-1); + done(); + }) + /* + * @tc.number: bms_checkPermission_0400 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the bundleName is invalid. (by callback) + */ + it('bms_checkPermission_0400', 0, async function (done) { + console.info('=====================bms_checkPermission_0400=================='); + await bundle.checkPermission('', PERMISSION_ONE, (err, data) => { + expect(err.code).assertEqual(-1); + expect(data).assertEqual(-1); + done(); + }) + }) + /* + * @tc.number: bms_checkPermission_0500 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the permissionName is invalid. (by promise) + */ + it('bms_checkPermission_0500', 0, async function (done) { + console.info('=====================bms_checkPermission_0500=================='); + var data = await bundle.checkPermission(BUNDLE_NAME, '') + expect(data).assertEqual(-1); + done(); + }) + /* + * @tc.number: bms_checkPermission_0600 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the permissionName is invalid. (by callback) + */ + it('bms_checkPermission_0600', 0, async function (done) { + console.info('=====================bms_checkPermission_0600=================='); + await bundle.checkPermission(BUNDLE_NAME, '', (err, data) => { + expect(err.code).assertEqual(-1); + expect(data).assertEqual(-1); + done(); + }) + }) + /* + * @tc.number: bms_checkPermission_0700 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the permissionName is invalid. (by promise) + */ + it('bms_checkPermission_0700', 0, async function (done) { + console.info('=====================bms_checkPermission_0700=================='); + var data = await bundle.checkPermission(BUNDLE_NAME, '@\n,. 。测试@abc1^%12345') + expect(data).assertEqual(-1); + done(); + }) + + /* + * @tc.number: bms_checkPermission_0800 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the permissionName is invalid. (by callback) + */ + it('bms_checkPermission_0800', 0, async function (done) { + console.info('=====================bms_checkPermission_0800=================='); + await bundle.checkPermission(BUNDLE_NAME, '@\n,. 。测试@abc1^%12345', (err, data) => { + expect(err.code).assertEqual(-1); + expect(data).assertEqual(-1); + done(); + }) + }) + /* + * @tc.number: bms_checkPermission_0900 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the bundleName is invalid. (by callback) + */ + it('bms_checkPermission_0900', 0, async function (done) { + console.info('=====================bms_checkPermission_0900=================='); + var data = await bundle.checkPermission('@\n,. 。测试@abc1^%12345', PERMISSION_ONE) + expect(data).assertEqual(-1); + done(); + }) + /* + * @tc.number: bms_checkPermission_1000 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the bundleName is invalid. (by callback) + */ + it('bms_checkPermission_1000', 0, async function (done) { + console.info('=====================bms_checkPermission_1000=================='); + await bundle.checkPermission('@\n,. 。测试@abc1^%12345', PERMISSION_ONE, (err, data) => { + expect(err.code).assertEqual(-1); + expect(data).assertEqual(-1); + done(); + }) + }) + /* + * @tc.number: bms_checkPermission_1100 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the permissionName is invalid. (by promise) + */ + it('bms_checkPermission_1100', 0, async function (done) { + console.info('=====================bms_checkPermission_1100=================='); + var permissionName = 'test'; + for (var i = 0; i < 10000; i++) { + permissionName += 'test'; + } + var data = await bundle.checkPermission(BUNDLE_NAME, permissionName) + expect(data).assertEqual(-1); + done(); + }) + + /* + * @tc.number: bms_checkPermission_1200 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the permissionName is invalid. (by callback) + */ + it('bms_checkPermission_1200', 0, async function (done) { + console.info('=====================bms_checkPermission_1200=================='); + var permissionName = 'test'; + for (var i = 0; i < 10000; i++) { + permissionName += 'test'; + } + await bundle.checkPermission(BUNDLE_NAME, permissionName, (err, data) => { + expect(err.code).assertEqual(-1); + expect(data).assertEqual(-1); + done(); + }) + }) + /* + * @tc.number: bms_checkPermission_1300 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the bundleName is invalid. (by promise) + */ + it('bms_checkPermission_1300', 0, async function (done) { + console.info('=====================bms_checkPermission_1300=================='); + var bundleName = 'test'; + for (var i = 0; i < 10000; i++) { + bundleName += 'test'; + } + var data = await bundle.checkPermission(bundleName, PERMISSION_ONE) + expect(data).assertEqual(-1); + done(); + }) + /* + * @tc.number: bms_checkPermission_1400 + * @tc.name: check whether the permission is granted + * @tc.desc: verify the requested permission whether is granted, which by calling the checkpermission + * function and the bundleName is invalid. (by callback) + */ + it('bms_checkPermission_1400', 0, async function (done) { + console.info('=====================bms_checkPermission_1400=================='); + var bundleName = 'test'; + for (var i = 0; i < 10000; i++) { + bundleName += 'test'; + } + await bundle.checkPermission(bundleName, PERMISSION_ONE, (err, data) => { + expect(err.code).assertEqual(-1); + expect(data).assertEqual(-1); + done(); + }) + }) +}) \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/test/List.test.js new file mode 100644 index 000000000..3133f8c36 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/entry/src/main/js/test/List.test.js @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +require('./ActsBmsCheckPermissionTest.test.js') \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/signature/openharmony_sx.p7b b/appexecfwk/bundle_standard/bundlemanager/actsbmscheckpermissiontest/signature/openharmony_sx.p7b new file mode 100755 index 0000000000000000000000000000000000000000..9be1e98fa4c0c28ca997ed660112fa16b194f0f5 GIT binary patch literal 3437 zcmcgvX>b$g8MY4FF(5FQyMT=#m||qU)nQ9cId-MBB-<-lvSdq&snM}IENNF>t+bK| zgowuF2vC|SxSZxNN5eHhV%(WPpbeB9Fc3;JDMtzMBv1-XAc2N~c2_tCXW&OCGw6qQ z-s9VS-tT?h=bI0tMS+~WDXqHJyCPmLzdbE-fV8Nd&*MRZfG8(#POFZG3xs@Lb{0ry z=R8j3wWo!5g=yjKx#BoZMFS)uA)H}cTp@-^K`9VV?RC3J59@}eik*>n|pRKOLZ zxdn7G!Yv@9O#y<&eUy{)vMXb;fQR)ffVAADQsEMXm;IBMDLfLD0w^U;6%HVo-0Q_5 zCHEa?DBuauNpZzoF+tK27w#n~?u%toS-DhR4k@Q*{7x^8Q=D6&kd^_~J#VVG2LXkL zaAy=}U*?Jto)9hx5MGjdp9hcQAu@tfk_;l!PeyxPY<8b&+&D!CyaBh9=8BSVKLpk4 z4Ml3yY|&Th)vyK4cpC{!uU8v2YBlVV`d~(nz&<@{G1oe*DHub1z7~J5*;s2bX<)_* zV_GbsPQg`(&rpxRb_*Od7}++3+liSw-$!1 zs5*g}EHWhI3i|!-FcfzYL0`SL-rq>LENC;PMl)G(0(1U2%Va|smp0UFx0xd@soZA* zD5LYc4OlbE7@ARt#h}rr3>K@bf%B#^-c+xz8Hr)0D5ExIFlt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di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/BUILD.gn b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/BUILD.gn new file mode 100644 index 000000000..a938d9d75 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsBmsHapModuleTest") { + hap_profile = "./entry/src/main/config.json" + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "ActsBmsHapModuleTest" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./entry/src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./entry/src/main/js/resources" ] + hap_profile = "./entry/src/main/config.json" +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/Test.json b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/Test.json new file mode 100644 index 000000000..0c599de01 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/Test.json @@ -0,0 +1,39 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "JSUnitTest", + "test-timeout": "21600000", + "package": "com.example.actsbmshapmoduletest", + "shell-timeout": "21600000" + }, + "kits": [ + { + "test-file-name": [ + "ActsBmsHapModuleTest.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "remount", + "mkdir /data/test" + ] + }, + { + "type": "PushKit", + "push": [ + "bmsMainAbilityFirstScene.hap.hap->/data/test/bmsMainAbilityFirstScene.hap", + "bmsMainAbilitySecondScene.hap->/data/test/bmsMainAbilitySecondScene.hap", + "bmsThirdBundleTest2.hap->/data/test/bmsThirdBundleTest2.hap" + ] + }, + { + "type": "ShellKit", + "run-command": [ + "chmod 644 /data/test/*.hap" + ] + } + ] +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/package.json new file mode 100644 index 000000000..69a88e3b6 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/package.json @@ -0,0 +1 @@ +{} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/config.json new file mode 100644 index 000000000..cfd507028 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/config.json @@ -0,0 +1,62 @@ +{ + "app": { + "bundleName": "com.example.actsbmshapmoduletest", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.actsbmshapmoduletest", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home", + "flag.home.intent.from.system" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.actsbmshapmoduletest.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard", + "visible": true + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..13ae33e07 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..28edb2a10 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/default/pages/index/index.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import {Core, ExpectExtend} from 'deccjsunit/index' + +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: 'Test HapModuleInfo' + }, + onInit() { + this.title = this.data.title; + }, + onShow() { + console.info('onReady finish') + const core = Core.getInstance() + const expectExtend = new ExpectExtend({ + 'id': 'extend' + }) + core.addService('expect', expectExtend) + core.init() + const configService = core.getDefaultService('config') + configService.setConfig(this) + + require('../../../test/List.test') + core.execute() + }, + onReady() { + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..57c477c3c --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "actsbmshapmoduletest" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y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l|*Ia@ECeXo2E4h2f!aV=cHAhi_E_mfUth(sM4^hJq7B zQsGWqdZUm9S%F`$nQ*_#NcuD`&)Ek%_s{&^78{9Hm ztri&rYLOxgFdG>O@+XHy z9#;|&vBCPXH5Mon^I`jSuR$&~ZWtyB67ujzFSj!51>#C}C17~TffQ{c-!QFQkTQ%! zIR^b1`zHx|*1GU?tbBx23weFLz5H?y_Q%N&t$}k?w+``2A=aotj0;2v$~AL z{scF-cL{wsdrmPvf#a9OHyYLcwQD4Kcm)`LLwMh4WT~p29f7M!iafJSU`IV}QY5Wa z(n44-9oA}?J{a+ah*@31WTs#&J#o1`H98#6IQf;Wv0N_!);f&9g7o-k(lW5rWnDUR zQBFIRG+X=6NnsI@mxnwm;tf5;_Uxg?jZ8m-m0}&6+DA!qam(p$mN5R})yA_7m$q@| zFEd|dpS595rxQr-n#GjI5i-AhnUE>Cr;jpCqSrD~EwK_DqI^7%3#p5)%T_od!t3SOmH9MyXeeGO2(UQL;ax|x?Ncixmeo1=$ z{-);Au{*tfzOG?KQ~K|ak8-HQ?`Pekhe2WM(8s{xv-p>Zmu_6{G!-oE$7$mY`MOJorI=+mMx?H;`pr!;fVYz?5~yXBACruWB`Ph zZM}90_<^OBxIhyZ9BW$`>6JvO;%VFpqVr8|7t3~AmxYak6?`Pp#c;**_SYmi`&z23 z`p6_~ePvH)C6x-G9$hgL=eVALq`-AiamN>!3~Lxw&{H(b{B(7xSRm6<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y { + console.debug('=======hapModule length========' + data.hapModuleInfo.length); + expect(data.hapModuleInfo.length).assertEqual(2); + for (let i = 0, len = data.hapModuleInfo.length;i < len; i++) { + console.debug('=======get hapModule========' + JSON.stringify(data.hapModuleInfo[i])) + console.debug('=======get hapModule mainAbilityName========' + data.hapModuleInfo[i].mainAbilityName); + checkHapModuleInfo(data.hapModuleInfo[i]); + result.set(data.hapModuleInfo[i].mainAbilityName, data.hapModuleInfo[i]); + } + expect(result.has(firstMainAbility)).assertTrue(); + expect(result.has(secondMainAbility)).assertTrue(); + expect(result.get(firstMainAbility).moduleName).assertEqual('entry'); + expect(result.get(secondMainAbility).moduleName).assertEqual('bmsmainabilitysecondscene'); + await uninstall(bundleName); + done(); + }) + }) + + /* + * @tc.number: bms_getHapModuleInfo_0300 + * @tc.name: get hapModuleInfo one app without mainAbility by getBundleInfo + * @tc.desc: get the module information of the hap without mainAbility + */ + it('bms_getHapModuleInfo_0300', 0, async function (done) { + console.debug('===========begin bms_getHapModuleInfo_0300===========') + await install(['/data/test/bmsThirdBundleTest2.hap']); + let bundleName = 'com.example.third2'; + bundle.getBundleInfo(bundleName, 1).then(async (data) => { + console.debug('=======get hapModule========' + JSON.stringify(data)) + expect(data.hapModuleInfo.length).assertEqual(1); + console.debug('=======get hapModule mainAbilityName========' + data.hapModuleInfo[0].mainAbilityName) + expect(data.hapModuleInfo[0].mainAbilityName).assertEqual(''); + expect(data.hapModuleInfo[0].moduleName).assertEqual('entry'); + checkHapModuleInfo(data.hapModuleInfo[0]); + await uninstall(bundleName); + done(); + }) + }) + + function checkHapModuleInfo(dataInfo) { + console.debug('========begin check hapModuleInfo========') + expect(typeof dataInfo.name).assertEqual('string'); + expect(typeof dataInfo.description).assertEqual('string'); + expect(typeof dataInfo.descriptionId).assertEqual('number'); + expect(typeof dataInfo.icon).assertEqual('string'); + expect(typeof dataInfo.label).assertEqual('string'); + expect(typeof dataInfo.labelId).assertEqual('number'); + expect(typeof dataInfo.iconId).assertEqual('number'); + expect(typeof dataInfo.backgroundImg).assertEqual('string'); + expect(typeof dataInfo.supportedModes).assertEqual('number'); + expect(typeof dataInfo.reqCapabilities).assertEqual('object'); + expect(typeof dataInfo.deviceTypes).assertEqual('object'); + expect(typeof dataInfo.abilityInfo).assertEqual('object'); + expect(typeof dataInfo.moduleName).assertEqual('string'); + expect(typeof dataInfo.mainAbilityName).assertEqual('string'); + expect(typeof dataInfo.installationFree).assertEqual('boolean'); + } + + async function install(bundlePath) + { + var installer = await bundle.getBundleInstaller(); + await installer.install(bundlePath, { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, onReceiveInstallEvent); + + function onReceiveInstallEvent(err, data) { + console.info('========install Finish========'); + expect(typeof err).assertEqual('object'); + expect(err.code).assertEqual(0); + expect(typeof data).assertEqual('object'); + expect(data.status).assertEqual(0); + expect(data.statusMessage).assertEqual('SUCCESS'); + } + } + + async function uninstall(bundleName) + { + var installer = await bundle.getBundleInstaller(); + await installer.uninstall(bundleName, { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, onReceiveUninstallEvent); + + function onReceiveUninstallEvent(err, data) { + console.info('========uninstall Finish========'); + expect(typeof err).assertEqual('object'); + expect(err.code).assertEqual(0); + expect(typeof data).assertEqual('object'); + expect(data.status).assertEqual(0); + expect(data.statusMessage).assertEqual('SUCCESS'); + } + } + +}) \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/test/List.test.js new file mode 100644 index 000000000..86c7650fc --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/entry/src/main/js/test/List.test.js @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +require('./ActsBmsHapModuleTest.test.js') \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/signature/openharmony_sx.p7b b/appexecfwk/bundle_standard/bundlemanager/actsbmshapmoduletest/signature/openharmony_sx.p7b new file mode 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undle_standard/bundlemanager/actsbmsjstest/BUILD.gn new file mode 100644 index 000000000..bdde22de2 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsBmsJsTest") { + hap_profile = "./entry/src/main/config.json" + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "ActsBmsJsTest" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./entry/src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./entry/src/main/js/resources" ] + hap_profile = "./entry/src/main/config.json" +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/Test.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/Test.json new file mode 100644 index 000000000..af8f9d805 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/Test.json @@ -0,0 +1,39 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "JSUnitTest", + "test-timeout": "21600000", + "package": "com.example.actsbmsjstest", + "shell-timeout": "21600000" + }, + "kits": [ + { + "test-file-name": [ + "ActsBmsJsTest.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "remount", + "mkdir /data/test" + ] + }, + { + "type": "PushKit", + "push": [ + "bmsThirdBundleTest2.hap->/data/test/bmsThirdBundleTest2.hap", + "bmsThirdBundleTest5.hap->/data/test/bmsThirdBundleTest5.hap", + "bmsThirdBundleJs.hap->/data/test/bmsThirdBundleJs.hap" + ] + }, + { + "type": "ShellKit", + "run-command": [ + "chmod 644 /data/test/*.hap" + ] + } + ] +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/package.json new file mode 100644 index 000000000..69a88e3b6 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/package.json @@ -0,0 +1 @@ +{} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/config.json new file mode 100644 index 000000000..8b7c7ab34 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/config.json @@ -0,0 +1,63 @@ +{ + "app": { + "bundleName": "com.example.actsbmsjstest", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.actsbmsjstest", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home", + "flag.home.intent.from.system" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": ".MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard", + "visible": true, + "srcPath": "default" + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..66a83f621 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 50px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..13ae33e07 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..1dab932fd --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/default/pages/index/index.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import {Core, ExpectExtend} from 'deccjsunit/index' + +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "Test Multi Js Ability" + }, + onInit() { + this.title = this.data.title; + }, + onShow() { + }, + onReady() { + console.info('onShow finish') + const core = Core.getInstance() + const expectExtend = new ExpectExtend({ + 'id': 'extend' + }) + core.addService('expect', expectExtend) + core.init() + const configService = core.getDefaultService('config') + configService.setConfig(this) + require('../../../test/List.test') + core.execute() + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..25412fb11 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "actsbmsjstest" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2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xQr-n#GjI5i-AhnUE>Cr;jpCqSrD~EwK_DqI^7%3#p5)%T_od!t3SOmH9MyXeeGO2(UQL;ax|x?Ncixmeo1=$ z{-);Au{*tfzOG?KQ~K|ak8-HQ?`Pekhe2WM(8s{xv-p>Zmu_6{G!-oE$7$mY`MOJorI=+mMx?H;`pr!;fVYz?5~yXBACruWB`Ph zZM}90_<^OBxIhyZ9BW$`>6JvO;%VFpqVr8|7t3~AmxYak6?`Pp#c;**_SYmi`&z23 z`p6_~ePvH)C6x-G9$hgL=eVALq`-AiamN>!3~Lxw&{H(b{B(7xSRm6<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y{ + expect(data.abilityInfo.length).assertEqual(1); + checkIsExist(abilityName, data); + uninstall(bundleName); + done(); + }); + }) + /* + * @tc.number: bms_getJsAbility_0200 + * @tc.name: test the multi js ability + * @tc.desc: 1.install a js hap with two ability + * 2.check the ability name by the interface of getBundleInfo + */ + it('bms_getJsAbility_0200', 0, async function (done) { + console.info('=====================bms_getJsAbility_0200=================='); + var bundleName = 'com.example.third5'; + let abilityName1 = 'com.example.third5.AMainAbility'; + let abilityName2 = 'com.example.third5.BMainAbility'; + await install(['/data/test/bmsThirdBundleTest5.hap']); + bundle.getBundleInfo(bundleName,1).then((data)=>{ + console.debug('==========bundleInfo==========' + JSON.stringify(data)) + expect(data.abilityInfo.length).assertLarger(1); + checkIsExist(abilityName1, data); + checkIsExist(abilityName2, data); + uninstall(bundleName); + done(); + }); + }) + /* + * @tc.number: bms_getJsAbility_0300 + * @tc.name: test the multi js ability + * @tc.desc: 1.install a js hap which has an ability with short domain name + * 2.check the ability name by the interface of getBundleInfo + */ + it('bms_getJsAbility_0300', 0, async function (done) { + console.info('=====================bms_getJsAbility_0300=================='); + let bundleName = 'com.example.js'; + let abilityName = 'com.example.js.MainAbility'; + await install(['/data/test/bmsThirdBundleJs.hap']); + bundle.getBundleInfo(bundleName,1).then((data)=>{ + expect(data.abilityInfo.length).assertEqual(1); + checkIsExist(abilityName, data); + uninstall(bundleName); + done(); + }); + }) + async function install(bundlePath) + { + var installer = await bundle.getBundleInstaller(); + await installer.install(bundlePath, { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, onReceiveInstallEvent); + + function onReceiveInstallEvent(err, data) { + console.info('========install Finish========'); + expect(typeof err).assertEqual('object'); + expect(err.code).assertEqual(0); + expect(typeof data).assertEqual('object'); + expect(data.status).assertEqual(0); + expect(data.statusMessage).assertEqual('SUCCESS'); + } + } + async function uninstall(bundleName) + { + var installer = await bundle.getBundleInstaller(); + await installer.uninstall(bundleName, { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, onReceiveUninstallEvent); + + function onReceiveUninstallEvent(err, data) { + console.info('========uninstall Finish========'); + expect(typeof err).assertEqual('object'); + expect(err.code).assertEqual(0); + expect(typeof data).assertEqual('object'); + expect(data.status).assertEqual(0); + expect(data.statusMessage).assertEqual('SUCCESS'); + } + } + function checkIsExist(abilityName, data) + { + console.debug('==========bundleInfo==========' + JSON.stringify(data)) + console.debug('==========AbilityInfo===========' + JSON.stringify(data.abilityInfo)) + let abilityNames = new Map(); + for (var i = 0; i < data.abilityInfo.length; i++) + { + console.debug('==========abilityName==========' + data.abilityInfo[i].name); + abilityNames.set(data.abilityInfo[i].name, data.abilityInfo[i]); + } + expect(abilityNames.has(abilityName)).assertEqual(true); + } +}) \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/test/List.test.js new file mode 100644 index 000000000..6cadb5202 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/entry/src/main/js/test/List.test.js @@ -0,0 +1,15 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +require('./ActsBmsJsTest.test.js') \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/signature/openharmony_sx.p7b b/appexecfwk/bundle_standard/bundlemanager/actsbmsjstest/signature/openharmony_sx.p7b new file mode 100755 index 0000000000000000000000000000000000000000..9be1e98fa4c0c28ca997ed660112fa16b194f0f5 GIT binary patch literal 3437 zcmcgvX>b$g8MY4FF(5FQyMT=#m||qU)nQ9cId-MBB-<-lvSdq&snM}IENNF>t+bK| zgowuF2vC|SxSZxNN5eHhV%(WPpbeB9Fc3;JDMtzMBv1-XAc2N~c2_tCXW&OCGw6qQ z-s9VS-tT?h=bI0tMS+~WDXqHJyCPmLzdbE-fV8Nd&*MRZfG8(#POFZG3xs@Lb{0ry z=R8j3wWo!5g=yjKx#BoZMFS)uA)H}cTp@-^K`9VV?RC3J59@}eik*>n|pRKOLZ zxdn7G!Yv@9O#y<&eUy{)vMXb;fQR)ffVAADQsEMXm;IBMDLfLD0w^U;6%HVo-0Q_5 zCHEa?DBuauNpZzoF+tK27w#n~?u%toS-DhR4k@Q*{7x^8Q=D6&kd^_~J#VVG2LXkL zaAy=}U*?Jto)9hx5MGjdp9hcQAu@tfk_;l!PeyxPY<8b&+&D!CyaBh9=8BSVKLpk4 z4Ml3yY|&Th)vyK4cpC{!uU8v2YBlVV`d~(nz&<@{G1oe*DHub1z7~J5*;s2bX<)_* zV_GbsPQg`(&rpxRb_*Od7}++3+liSw-$!1 zs5*g}EHWhI3i|!-FcfzYL0`SL-rq>LENC;PMl)G(0(1U2%Va|smp0UFx0xd@soZA* zD5LYc4OlbE7@ARt#h}rr3>K@bf%B#^-c+xz8Hr)0D5ExIFltezN@Hn8>o5d~bSfYtkc+_Z&kI#-N5_GhCg*V-^TSO=!G~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?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/BUILD.gn b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/BUILD.gn new file mode 100644 index 000000000..47b9d717f --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsBmsMetaDataTest") { + hap_profile = "./entry/src/main/config.json" + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "ActsBmsMetaDataTest" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./entry/src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./entry/src/main/js/resources" ] + hap_profile = "./entry/src/main/config.json" +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/Test.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/Test.json new file mode 100644 index 000000000..990fe169f --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/Test.json @@ -0,0 +1,40 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "JSUnitTest", + "test-timeout": "21600000", + "package": "com.example.actsbmsmetadatatest", + "shell-timeout": "21600000" + }, + "kits": [ + { + "test-file-name": [ + "ActsBmsMetaDataTest.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "remount", + "mkdir /data/test" + ] + }, + { + "type": "PushKit", + "push": [ + "bmsThirdBundleTest1.hap->/data/test/bmsThirdBundleTest1.hap", + "bmsThirdBundleTest3.hap->/data/test/bmsThirdBundleTest3.hap", + "bmsThirdBundleTest5.hap->/data/test/bmsThirdBundleTest5.hap", + "bmsThirdBundleTestA1.hap->/data/test/bmsThirdBundleTestA1.hap" + ] + }, + { + "type": "ShellKit", + "run-command": [ + "chmod 644 /data/test/*.hap" + ] + } + ] +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/package.json new file mode 100644 index 000000000..69a88e3b6 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/package.json @@ -0,0 +1 @@ +{} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/config.json new file mode 100644 index 000000000..66d62562a --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/config.json @@ -0,0 +1,62 @@ +{ + "app": { + "bundleName": "com.example.actsbmsmetadatatest", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.actsbmsmetadatatest", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home", + "flag.home.intent.from.system" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.actsbmsmetadatatest.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard", + "visible": true + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..13ae33e07 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..99c9497cd --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/default/pages/index/index.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import {Core, ExpectExtend} from 'deccjsunit/index' + +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: 'Test MetaData' + }, + onInit() { + this.title = this.data.title; + }, + onShow() { + console.info('onReady finish') + const core = Core.getInstance() + const expectExtend = new ExpectExtend({ + 'id': 'extend' + }) + core.addService('expect', expectExtend) + core.init() + const configService = core.getDefaultService('config') + configService.setConfig(this) + + require('../../../test/List.test') + core.execute() + }, + onReady() { + }, + onBackPress(){ + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..e6b09b287 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "actsbmsmetadatatest" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/actsbmsmetadatatest/entry/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{Bax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z_%rB=a%o>I z!2c6lHyKQN)VjiFwa!eE^p8jc$sy$vB+8i25lI~6KPFFh$!o$avA~rj#L6xvR|Z83 z*WD6T9e+5Pyy=F+)pNTf{ny3cy>7Rkd3o*TS?TZJ`NS^NF2%HMkyS{?uJ$`!P4_L^ z1`NFDUbNyg_qREifgktnp1_v{Jbb`7m}2PTyUdOmtJj~m z9bB=ecw4_^rw1IW=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/BUILD.gn b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/BUILD.gn new file mode 100644 index 000000000..c2be08f8d --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//test/xts/tools/build/suite.gni") + +ohos_js_hap_suite("ActsBmsModuleUsageRecordTest") { + hap_profile = "./entry/src/main/config.json" + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" + hap_name = "ActsBmsModuleUsageRecordTest" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./entry/src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./entry/src/main/js/resources" ] + hap_profile = "./entry/src/main/config.json" +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/Test.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/Test.json new file mode 100644 index 000000000..9952c7577 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/Test.json @@ -0,0 +1,37 @@ +{ + "description": "Configuration for hjunit demo Tests", + "driver": { + "type": "JSUnitTest", + "test-timeout": "21600000", + "package": "com.example.actsbmsmoduleusagerecordtest", + "shell-timeout": "21600000" + }, + "kits": [ + { + "test-file-name": [ + "ActsBmsModuleUsageRecordTest.hap" + ], + "type": "AppInstallKit", + "cleanup-apps": true + }, + { + "type": "ShellKit", + "run-command": [ + "remount", + "mkdir /data/test" + ] + }, + { + "type": "PushKit", + "push": [ + "bmsThirdBundleTest1.hap->/data/test/bmsThirdBundleTest1.hap" + ] + }, + { + "type": "ShellKit", + "run-command": [ + "chmod 644 /data/test/*.hap" + ] + } + ] +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/package.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/package.json new file mode 100644 index 000000000..69a88e3b6 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/package.json @@ -0,0 +1 @@ +{} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/config.json new file mode 100644 index 000000000..ed25424dc --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/config.json @@ -0,0 +1,62 @@ +{ + "app": { + "bundleName": "com.example.actsbmsmoduleusagerecordtest", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.actsbmsmoduleusagerecordtest", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home", + "flag.home.intent.from.system" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.actsbmsmoduleusagerecordtest.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "visible": true, + "type": "page", + "launchType": "standard" + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/app.js new file mode 100644 index 000000000..f4beb9efb --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* +* Copyright (c) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the 'License'); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an 'AS IS' BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..66a83f621 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 50px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..13ae33e07 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..b6ed8c21b --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/default/pages/index/index.js @@ -0,0 +1,43 @@ +/* +* Copyright (c) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the 'License'); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an 'AS IS' BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +import {Core, ExpectExtend} from 'deccjsunit/index' + +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "Test ModuleUsageRecord" + }, + onInit() { + this.title = this.data.title; + }, + onShow() { + console.info('onReady finish') + const core = Core.getInstance() + const expectExtend = new ExpectExtend({ + 'id': 'extend' + }) + core.addService('expect', expectExtend) + core.init() + const configService = core.getDefaultService('config') + configService.setConfig(this) + + require('../../../test/List.test.js') + core.execute() + }, + onReady() { + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..aa01804d4 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "actsbmsmoduleusagerecordtest" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6p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mH9MyXeeGO2(UQL;ax|x?Ncixmeo1=$ z{-);Au{*tfzOG?KQ~K|ak8-HQ?`Pekhe2WM(8s{xv-p>Zmu_6{G!-oE$7$mY`MOJorI=+mMx?H;`pr!;fVYz?5~yXBACruWB`Ph zZM}90_<^OBxIhyZ9BW$`>6JvO;%VFpqVr8|7t3~AmxYak6?`Pp#c;**_SYmi`&z23 z`p6_~ePvH)C6x-G9$hgL=eVALq`-AiamN>!3~Lxw&{H(b{B(7xSRm6<3<{%{yXiH# zos5Rv1L+8fUKJLo%P>4I&$}y { + console.debug('=======before all install========'); + bundle.getBundleInstaller().then((data) => { + data.install(['/data/test/bmsThirdBundleTest1.hap'], { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, onReceiveinstallEvent); + }) + function onReceiveinstallEvent(err, data) { + console.info('========install finish========' + JSON.stringify(err)); + console.info('========install finish========' + JSON.stringify(data)); + console.info('========install finish========' + data.status); + console.info('========install finish========' + data.statusMessage); + done() + } + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0100 + * @tc.name: getModuleUsageRecord(maxNum) + * @tc.desc: Use the getModuleUsageRecord interface to query the activation times and last + * activation time of ability + */ + it('bms_getModuleUsageRecordTest_0100', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0100=================='); + var bundleName = 'com.example.third1'; + var Subscriber; + let id; + async function SubscribeCallBack(err, data) { + clearTimeout(id); + expect(data.event).assertEqual('ACTS_Third1_Publish_CommonEvent'); + console.debug('====>Subscribe CallBack data:====>' + JSON.stringify(data)); + let records = await bundle.getModuleUsageRecords(MIN_NUM); + checkModuleUsageRecord(records, 'bms_getModuleUsageRecordTest_0100'); + var result = checkIsExist(records, bundleName); + expect(result).assertEqual(true); + commonEvent.unsubscribe(Subscriber, UnSubscribeCallback); + done(); + } + await commonEvent.createSubscriber(SubscriberInfo_bms_getModuleUsageRecordTest_0100).then(async (data) => { + console.debug('====>Create Subscriber====>'); + Subscriber = data; + await commonEvent.subscribe(Subscriber, SubscribeCallBack); + }) + function UnSubscribeCallback() { + console.debug('====>UnSubscribe CallBack====>'); + done(); + } + function timeout() { + expect().assertFail(); + console.debug('bms_getModuleUsageRecordTest_0100=====timeout======'); + commonEvent.unsubscribe(Subscriber, UnSubscribeCallback) + done(); + } + id = setTimeout(timeout, START_ABILITY_TIMEOUT); + console.debug('=======start ability========') + let result = await featureAbility.startAbility( + { + want: + { + bundleName: 'com.example.third1', + abilityName: 'com.example.third1.MainAbility' + } + } + ) + expect(result).assertEqual(0); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0200 + * @tc.name: getModuleUsageRecord(maxNum) + * @tc.desc: When the number of starts of ability is less than maxNum, call interface getModuleUsageRecord + */ + it('bms_getModuleUsageRecordTest_0200', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0200=================='); + var bundleName = 'com.example.third1'; + bundle.getModuleUsageRecords(MIN_NUM, (err, data) => { + expect(err.code).assertEqual(0); + checkModuleUsageRecord(data, 'bms_getModuleUsageRecordTest_0200'); + var result = checkIsExist(data, bundleName); + expect(result).assertEqual(true); + done(); + }); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0300 + * @tc.name: getModuleUsageRecord(maxNum) + * @tc.desc: When the number of starts of ability is less than maxNum, call interface getModuleUsageRecord + */ + it('bms_getModuleUsageRecordTest_0300', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0300=================='); + var bundleName = 'com.example.third1'; + bundle.getModuleUsageRecords(MAX_NUM, (err, data) => { + expect(err.code).assertEqual(0); + checkModuleUsageRecord(data, 'bms_getModuleUsageRecordTest_0300'); + var result = checkIsExist(data, bundleName); + expect(result).assertEqual(true); + done(); + }); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0400 + * @tc.name: getModuleUsageRecord(maxNum) + * @tc.desc: When the number of starts of ability is less than maxNum, call interface getModuleUsageRecord + */ + it('bms_getModuleUsageRecordTest_0400', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0400=================='); + var bundleName = 'com.example.third1'; + var records = await bundle.getModuleUsageRecords(MAX_NUM); + checkModuleUsageRecord(records, 'bms_getModuleUsageRecordTest_0400'); + var result = checkIsExist(records, bundleName); + expect(result).assertEqual(true); + done(); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0500 + * @tc.name: getModuleUsageRecord(maxNum) by promise + * @tc.desc: Uninstall a third-party application, and then use the getModuleUsageRecord interface + * to query the activation times and last activation time of ability + */ + it('bms_getModuleUsageRecordTest_0500', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0500=================='); + var bundleName = 'com.example.third1' + await uninstall(bundleName); + console.debug('===================uninstall third1===================='); + var records = await bundle.getModuleUsageRecords(MAX_NUM) + checkModuleUsageRecord(records, 'bms_getModuleUsageRecordTest_0500'); + var result = checkIsExist(records, bundleName); + expect(result).assertEqual(false); + done(); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0600 + * @tc.name: getModuleUsageRecord(maxNum,callback: AsyncCallback>) + * @tc.desc: Uninstall a third-party application, and then use the getModuleUsageRecord interface + * to query the activation times and last activation time of ability + */ + it('bms_getModuleUsageRecordTest_0600', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0600=================='); + var bundleName = 'com.example.third1' + await bundle.getModuleUsageRecords(MAX_NUM, (err, data) => { + expect(err.code).assertEqual(0); + checkModuleUsageRecord(data, 'bms_getModuleUsageRecordTest_0600'); + var result = checkIsExist(data, bundleName); + expect(result).assertEqual(false); + done(); + }); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0700 + * @tc.name: getModuleUsageRecord(maxNum, callback: AsyncCallback>) + * @tc.desc: test getModuleUsageRecord with the invalid parameter + */ + it('bms_getModuleUsageRecordTest_0700', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0700=================='); + await bundle.getModuleUsageRecords(INVALID_NUM, (err, data) => { + console.debug('============err.code==========' + err.code); + expect(err.code).assertEqual(0); + expect(data.length).assertEqual(0); + done(); + }); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0800 + * @tc.name: getModuleUsageRecord(maxNum) by promise + * @tc.desc: test getModuleUsageRecord with the invalid parameter + */ + it('bms_getModuleUsageRecordTest_0800', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0800=================='); + var data = await bundle.getModuleUsageRecords(INVALID_NUM); + expect(data.length).assertEqual(0); + done(); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_0900 + * @tc.name: getModuleUsageRecord(maxNum, callback: AsyncCallback>) + * @tc.desc: test getModuleUsageRecord with the critical value + */ + it('bms_getModuleUsageRecordTest_0900', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_0900=================='); + await bundle.getModuleUsageRecords(0, (err, data) => { + console.debug('============err.code==========' + err.code); + expect(err.code).assertEqual(0); + expect(data.length).assertEqual(0); + done(); + }); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_1000 + * @tc.name: getModuleUsageRecord(maxNum, callback: AsyncCallback>) + * @tc.desc: test getModuleUsageRecord with the critical value + */ + it('bms_getModuleUsageRecordTest_1000', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_1000=================='); + var data = await bundle.getModuleUsageRecords(0); + expect(data.length).assertEqual(0); + done(); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_1100 + * @tc.name: getModuleUsageRecord(maxNum) by promise + * @tc.desc: Install a third-party which is uninstalled, and then use the getModuleUsageRecord interface + * to query the activation times and last activation time of ability + */ + it('bms_getModuleUsageRecordTest_1100', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_1100=================='); + var bundleName = 'com.example.third1' + var bundlePath = ['/data/test/bmsThirdBundleTest1.hap'] + await install(bundlePath); + console.debug('===================install third1===================='); + var records = await bundle.getModuleUsageRecords(MAX_NUM) + checkModuleUsageRecord(records, 'bms_getModuleUsageRecordTest_1100'); + var result = checkIsExist(records, bundleName); + expect(result).assertEqual(true); + done(); + }) + /* + * @tc.number: bms_getModuleUsageRecordTest_1200 + * @tc.name: getModuleUsageRecord(maxNum, callback: AsyncCallback>) + * @tc.desc: Install a third-party which is uninstalled, and then use the getModuleUsageRecord interface + * to query the activation times and last activation time of ability + */ + it('bms_getModuleUsageRecordTest_1200', 0, async function (done) { + console.debug('=====================bms_getModuleUsageRecordTest_1200=================='); + var bundleName = 'com.example.third1' + await bundle.getModuleUsageRecords(MAX_NUM, (err, data) => { + expect(err.code).assertEqual(0); + checkModuleUsageRecord(data, 'bms_getModuleUsageRecordTest_1200'); + var result = checkIsExist(data, bundleName); + expect(result).assertEqual(true); + done(); + }) + }) + + function checkModuleUsageRecord(data, caseName) { + console.debug('======================check ModuleUsageRecord begin=========================='); + console.debug(caseName + ' ==========record length is ========== ' + data.length); + expect(data.length).assertLarger(0); + for (let i = 0, length = data.length; i < length; i++) { + console.debug('=======All Info========' + JSON.stringify(data[i])); + console.debug('=============bundleName is=========' + JSON.stringify(data[i].bundleName)); + expect(data[i].bundleName.length).assertLarger(0); + console.debug('=============appLabelId==============' + JSON.stringify(data[i].appLabelId)); + expect(data[i].appLabelId).assertLarger(0); + console.debug('=============name==============' + JSON.stringify(data[i].name)); + expect(data[i].name.length).assertLarger(0); + console.debug('=============labelId==============' + JSON.stringify(data[i].labelId)); + expect(data[i].labelId >= 0).assertTrue(); + console.debug('=============descriptionId==============' + JSON.stringify(data[i].descriptionId)); + expect(data[i].descriptionId).assertEqual(0); + console.debug('=============abilityName==============' + JSON.stringify(data[i].abilityName)); + expect(data[i].abilityName.length).assertLarger(0); + console.debug('=============abilityLabelId==============' + JSON.stringify(data[i].abilityLabelId)); + expect(data[i].abilityLabelId).assertLarger(0); + console.debug('===========abilityDescriptionId===========' + JSON.stringify(data[i].abilityDescriptionId)); + expect(data[i].abilityDescriptionId).assertLarger(0); + console.debug('=============abilityIconId==============' + JSON.stringify(data[i].abilityIconId)); + expect(data[i].abilityIconId).assertLarger(0); + console.debug('=============launchedCount==============' + JSON.stringify(data[i].launchedCount)); + expect(data[i].launchedCount).assertLarger(0); + console.debug('=============lastLaunchTime==============' + JSON.stringify(data[i].lastLaunchTime)); + expect(data[i].lastLaunchTime).assertLarger(0); + console.debug('=============isRemoved==============' + JSON.stringify(data[i].isRemoved)); + expect(data[i].isRemoved).assertEqual(false); + expect(data[i].installationFreeSupported).assertEqual(false); + } + } + function checkIsExist(data, bundleName) { + let bundles = new Map(); + for (let i = 0, length = data.length; i < length; i++) { + console.debug('=============bundleName is=========' + JSON.stringify(data[i].bundleName)); + bundles.set(data[i].bundleName, data[i]); + } + if (bundles.has(bundleName)) { + console.debug(bundleName + ' is exist'); + return true; + } + else { + console.debug(bundleName + ' is not exist'); + return false; + } + } + async function install(bundlePath) { + var installer = await bundle.getBundleInstaller(); + await installer.install(bundlePath, { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, onReceiveinstallEvent); + + function onReceiveinstallEvent(err, data) { + console.debug('========install Finish========'); + expect(typeof err).assertEqual('object'); + expect(err.code).assertEqual(0); + expect(typeof data).assertEqual('object'); + expect(data.status).assertEqual(0); + expect(data.statusMessage).assertEqual('SUCCESS'); + } + } + async function uninstall(bundleName) { + var installer = await bundle.getBundleInstaller(); + await installer.uninstall(bundleName, { + param: { + userId: 0, + installFlag: 1, + isKeepData: false + } + }, onReceiveinstallEvent); + + function onReceiveinstallEvent(err, data) { + console.debug('========uninstall Finish========'); + expect(err.code).assertEqual(0); + expect(typeof data).assertEqual('object'); + expect(data.status).assertEqual(0); + expect(data.statusMessage).assertEqual('SUCCESS'); + console.debug('========data.statusMessage========' + data.statusMessage); + } + } + afterAll(async (done) => { + console.debug('=======after all install========'); + let bundleName = 'com.example.third1' + uninstall(bundleName); + done(); + }) +}) \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/List.test.js b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/List.test.js new file mode 100644 index 000000000..971b84dc3 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/entry/src/main/js/test/List.test.js @@ -0,0 +1,15 @@ +/* +* Copyright (c) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the 'License'); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an 'AS IS' BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +require('./ActsBmsModuleUsageRecordTest.test.js') \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/signature/openharmony_sx.p7b b/appexecfwk/bundle_standard/bundlemanager/actsbmsmoduleusagerecordtest/signature/openharmony_sx.p7b new file mode 100755 index 0000000000000000000000000000000000000000..9be1e98fa4c0c28ca997ed660112fa16b194f0f5 GIT binary patch literal 3437 zcmcgvX>b$g8MY4FF(5FQyMT=#m||qU)nQ9cId-MBB-<-lvSdq&snM}IENNF>t+bK| zgowuF2vC|SxSZxNN5eHhV%(WPpbeB9Fc3;JDMtzMBv1-XAc2N~c2_tCXW&OCGw6qQ z-s9VS-tT?h=bI0tMS+~WDXqHJyCPmLzdbE-fV8Nd&*MRZfG8(#POFZG3xs@Lb{0ry z=R8j3wWo!5g=yjKx#BoZMFS)uA)H}cTp@-^K`9VV?RC3J59@}eik*>n|pRKOLZ zxdn7G!Yv@9O#y<&eUy{)vMXb;fQR)ffVAADQsEMXm;IBMDLfLD0w^U;6%HVo-0Q_5 zCHEa?DBuauNpZzoF+tK27w#n~?u%toS-DhR4k@Q*{7x^8Q=D6&kd^_~J#VVG2LXkL zaAy=}U*?Jto)9hx5MGjdp9hcQAu@tfk_;l!PeyxPY<8b&+&D!CyaBh9=8BSVKLpk4 z4Ml3yY|&Th)vyK4cpC{!uU8v2YBlVV`d~(nz&<@{G1oe*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+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/BUILD.gn b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/BUILD.gn new file mode 100644 index 000000000..cbc66afe2 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/BUILD.gn @@ -0,0 +1,34 @@ +# Copyright (c) 2021 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +import("//test/xts/tools/build/suite.gni") + +ohos_hap("bmsThirdBundleTest5") { + hap_profile = "./src/main/config.json" + hap_name = "bmsThirdBundleTest5" + subsystem_name = XTS_SUITENAME + final_hap_path = + "${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap" + testonly = true + deps = [ + ":hjs_demo_js_assets", + ":hjs_demo_resources", + ] + certificate_profile = "./signature/openharmony_sx.p7b" +} +ohos_js_assets("hjs_demo_js_assets") { + source_dir = "./src/main/js/default" +} +ohos_resources("hjs_demo_resources") { + sources = [ "./src/main/js/resources" ] + hap_profile = "./src/main/config.json" +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/Test.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/Test.json new file mode 100644 index 000000000..7a88763ed --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/Test.json @@ -0,0 +1,3 @@ +{ + "description": "Configuration for hjunit demo Tests", +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/package.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/package.json new file mode 100644 index 000000000..69a88e3b6 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/package.json @@ -0,0 +1 @@ +{} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/signature/openharmony_sx.p7b b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/signature/openharmony_sx.p7b new file mode 100755 index 0000000000000000000000000000000000000000..9be1e98fa4c0c28ca997ed660112fa16b194f0f5 GIT binary patch literal 3437 zcmcgvX>b$g8MY4FF(5FQyMT=#m||qU)nQ9cId-MBB-<-lvSdq&snM}IENNF>t+bK| zgowuF2vC|SxSZxNN5eHhV%(WPpbeB9Fc3;JDMtzMBv1-XAc2N~c2_tCXW&OCGw6qQ z-s9VS-tT?h=bI0tMS+~WDXqHJyCPmLzdbE-fV8Nd&*MRZfG8(#POFZG3xs@Lb{0ry z=R8j3wWo!5g=yjKx#BoZMFS)uA)H}cTp@-^K`9VV?RC3J59@}eik*>n|pRKOLZ zxdn7G!Yv@9O#y<&eUy{)vMXb;fQR)ffVAADQsEMXm;IBMD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$sy$vB+8i25lI~6KPFFh$!o$avA~rj#L6xvR|Z83 z*WD6T9e+5Pyy=F+)pNTf{ny3cy>7Rkd3o*TS?TZJ`NS^NF2%HMkyS{?uJ$`!P4_L^ z1`NFDUbNyg_qREifgktnp1_v{Jbb`7m}2PTyUdOmtJj~m z9bB=ecw4_^rw1IW=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/config.json new file mode 100644 index 000000000..e981bb18f --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/config.json @@ -0,0 +1,203 @@ +{ + "app": { + "bundleName": "com.example.third5", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.third5", + "name": ".BmsThirdBundle5", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.third5.AMainAbility", + "srcLanguage": "js", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "visible": true, + "form": { + "formEntity": [ + "homeScreen", + "searchbox" + ], + "defaultHeight": 100, + "defaultWidth": 200, + "minHeight": 50, + "minWidth": 100 + }, + "forms": [ + { + "colorMode": "light", + "description": " JS5A Form", + "supportDimensions": [ + "1*2", + "2*2", + "2*4" + ], + "type": "JS", + "jsComponentName": "JS_name5A", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName5A", + "value": "com.huawei.weather.testWidget5A" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS5A", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + } + ], + "launchType": "standard", + "metaData": { + "parameters": [ + { + "name": "Data5A", + "type": "float", + "description": "$string:mainability_description" + } + ], + "results": [ + { + "name": "Data5A", + "type": "float", + "description": "$string:mainability_description" + } + ], + "customizeData": [ + { + "name": "Data5A", + "value": "float", + "extra": "$string:mainability_description" + } + ] + } + }, + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": ".BMainAbility", + "srcLanguage": "js", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "visible": true, + "forms": [ + { + "colorMode": "light", + "description": " JS5B Form", + "supportDimensions": [ + "1*2", + "4*4" + ], + "type": "JS", + "jsComponentName": "JS_name5B", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName5B", + "value": "com.huawei.weather.testWidget5B" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS5B", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + } + ], + "launchType": "standard", + "metaData": { + "parameters": [ + { + "name": "Data5B", + "type": "float", + "description": "$string:mainability_description" + } + ], + "results": [ + { + "name": "Data5B", + "type": "float", + "description": "$string:mainability_description" + } + ], + "customizeData": [ + { + "name": "Data5B", + "value": "float", + "extra": "$string:mainability_description" + } + ] + } + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + }, + { + "pages": [ + "pagesB/index/index" + ], + "name": "default2", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..3b792f642 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = 'Third5 Ability A'; + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.js new file mode 100644 index 000000000..39ed99962 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/default2/pagesB/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = 'Third5 Ability B'; + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..7a01f8f72 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "app_name", + "value": "third5" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + }, + { + "name": "bmainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d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;o7z z8a^Lfq<1uH`E{G9E z*(=)Css_LSk=>E9jr)s5^2-!+MN=Ds}>1hRma4`uCIz9%p3O77839E{xf z4c_I?**|1`K2tg4!Hvyrou4BsJQuv*UfF)<%CelYIS>D^o?X)3+MK%la6kooW8&G@BU)Y0hT`+mOm$Z_%rB=a%o>I z!2c6lHyKQN)VjiFwa!eE^p8jc$sy$vB+8i25lI~6KPFFh$!o$avA~rj#L6xvR|Z83 z*WD6T9e+5Pyy=F+)pNTf{ny3cy>7Rkd3o*TS?TZJ`NS^NF2%HMkyS{?uJ$`!P4_L^ z1`NFDUbNyg_qREifgktnp1_v{Jbb`7m}2PTyUdOmtJj~m z9bB=ecw4_^rw1IW=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/config.json new file mode 100644 index 000000000..92ee7db34 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/config.json @@ -0,0 +1,135 @@ +{ + "app": { + "bundleName": "com.example.third1", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.third1.entry", + "name": "com.example.third1.BmsThirdBundle1", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.third1.MainAbility", + "icon": "$media:icon", + "form": { + "formEntity": [ + "homeScreen", + "searchbox" + ], + "defaultHeight": 100, + "defaultWidth": 200, + "minHeight": 50, + "minWidth": 100 + }, + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "forms": [ + { + "colorMode": "light", + "description": " JS1 Form", + "supportDimensions": [ + "1*2", + "2*2", + "2*4" + ], + "type": "JS", + "jsComponentName": "JS_name1", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName1", + "value": "com.huawei.weather.testWidget1" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS1", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + } + ], + "launchType": "standard", + "visible": true, + "metaData": { + "parameters": [ + { + "name": "Data1", + "type": "float", + "description": "$string:mainability_description" + } + ], + "results": [ + { + "name": "Data1", + "type": "float", + "description": "$string:mainability_description" + } + ], + "customizeData": [ + { + "name": "Data1", + "value": "float", + "extra": "$string:mainability_description" + } + ] + } + } + ], + "shortcuts": [ + { + "icon": "$media:icon", + "shortcutId": "id.third1", + "label": "$string:app_name", + "intents": [ + { + "targetClass": "com.example.third1.MainAbility", + "targetBundle": "com.example.third1" + } + ] + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..c6026ced0 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/default/pages/index/index.js @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import commonEvent from '@ohos.commonevent' +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +function PublishCallBackOne() { + console.debug("====>Publish CallBack ACTS_Third1_Publish_CommonEvent====>"); +} +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + }, + onShow() { + commonEvent.publish("ACTS_Third1_Publish_CommonEvent", PublishCallBackOne); + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..c3a0c7230 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "third1" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%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=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/config.json new file mode 100644 index 000000000..1a1c2190b --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/config.json @@ -0,0 +1,134 @@ +{ + "app": { + "bundleName": "com.example.third1", + "vendor": "example", + "version": { + "code": 2, + "name": "2.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.third1.entry", + "name": "com.example.third1.BmsThirdBundle1", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.third1.AMainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "form": { + "formEntity": [ + "homeScreen", + "searchbox" + ], + "defaultHeight": 100, + "defaultWidth": 200, + "minHeight": 50, + "minWidth": 100 + }, + "forms": [ + { + "colorMode": "light", + "description": " JSA1 Form", + "supportDimensions": [ + "2*2", + "2*4" + ], + "type": "JS", + "jsComponentName": "JS_nameA1", + "metaData": { + "customizeData": [ + { + "name": "originWidgetNameA1", + "value": "com.huawei.weather.testWidgetA1" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JSA1", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + } + ], + "launchType": "standard", + "visible": true, + "metaData": { + "parameters": [ + { + "name": "DataA1", + "type": "float", + "description": "$string:mainability_description" + } + ], + "results": [ + { + "name": "DataA1", + "type": "float", + "description": "$string:mainability_description" + } + ], + "customizeData": [ + { + "name": "DataA1", + "value": "float", + "extra": "$string:mainability_description" + } + ] + } + } + ], + "shortcuts": [ + { + "icon": "$media:icon", + "shortcutId": "id.thirdA1", + "label": "$string:shortcut", + "intents": [ + { + "targetClass": "com.example.third1.AMainAbility", + "targetBundle": "com.example.third1" + } + ] + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..23ac44c8d --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..68ee5f383 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "app_name", + "value": "thirdA1" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + }, + { + "name": "shortcut", + "value": "JS_Phone_Empty Shortcut" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbq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t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/config.json new file mode 100644 index 000000000..44caf031d --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/config.json @@ -0,0 +1,139 @@ +{ + "app": { + "bundleName": "com.example.third4", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.third4", + "name": ".BmsThirdBundle4", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.third4.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "form": { + "formEntity": [ + "homeScreen", + "searchbox"], + "defaultHeight": 100, + "defaultWidth": 200, + "minHeight": 50, + "minWidth": 100 + }, + "forms": [ + { + "colorMode": "light", + "description": " JS4A Form", + "supportDimensions": [ "2*4", "4*4" ], + "type": "JS", + "jsComponentName": "JS_name4A", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName4A", + "value": "com.huawei.weather.testWidget4A" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS4A", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + }, + { + "colorMode": "light", + "description": " JS4B Form", + "supportDimensions": [ "1*2", "2*2" , "2*4"], + "type": "JS", + "jsComponentName": "JS_name4B", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName4B", + "value": "com.huawei.weather.testWidget4B" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS4B", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + } + ], + "launchType": "standard" + } + ], + "shortcuts": [ + { + "icon": "$media:icon", + "shortcutId": "id.third4A", + "label": "$string:app_name", + "intents": [ + { + "targetClass":"com.example.third4A.MainAbility", + "targetBundle":"com.example.third4A" + } + ] + }, + { + "icon": "$media:icon", + "shortcutId": "id.third4B", + "label": "$string:app_name", + "intents": [ + { + "targetClass": "com.example.third4B.MainAbility", + "targetBundle": "com.example.third4B" + } + ] + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..23ac44c8d --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..6046f4d0f --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "third4" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000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RZ`?8X#r|wkev7(s;Ou4T#y1XNNf)h;o7z z8a^Lfq<1uH`E{G9E z*(=)Css_LSk=>E9jr)s5^2-!+MN=Ds}>1hRma4`uCIz9%p3O77839E{xf z4c_I?**|1`K2tg4!Hvyrou4BsJQuv*UfF)<%CelYIS>D^o?X)3+MK%la6kooW8&G@BU)Y0hT`+mOm$Z_%rB=a%o>I z!2c6lHyKQN)VjiFwa!eE^p8jc$sy$vB+8i25lI~6KPFFh$!o$avA~rj#L6xvR|Z83 z*WD6T9e+5Pyy=F+)pNTf{ny3cy>7Rkd3o*TS?TZJ`NS^NF2%HMkyS{?uJ$`!P4_L^ z1`NFDUbNyg_qREifgktnp1_v{Jbb`7m}2PTyUdOmtJj~m z9bB=ecw4_^rw1IW=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/config.json new file mode 100644 index 000000000..10cfb165b --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/config.json @@ -0,0 +1,62 @@ +{ + "app": { + "bundleName": "com.example.js", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.js", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": ".MainAbility", + "srcLanguage": "js", + "visible": true, + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard" + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..23ac44c8d --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..41f425000 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "ThirdJsTest" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo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-!+MN=Ds}>1hRma4`uCIz9%p3O77839E{xf z4c_I?**|1`K2tg4!Hvyrou4BsJQuv*UfF)<%CelYIS>D^o?X)3+MK%la6kooW8&G@BU)Y0hT`+mOm$Z_%rB=a%o>I z!2c6lHyKQN)VjiFwa!eE^p8jc$sy$vB+8i25lI~6KPFFh$!o$avA~rj#L6xvR|Z83 z*WD6T9e+5Pyy=F+)pNTf{ny3cy>7Rkd3o*TS?TZJ`NS^NF2%HMkyS{?uJ$`!P4_L^ z1`NFDUbNyg_qREifgktnp1_v{Jbb`7m}2PTyUdOmtJj~m z9bB=ecw4_^rw1IW=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/config.json new file mode 100644 index 000000000..06a9c8975 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/config.json @@ -0,0 +1,114 @@ +{ + "app": { + "bundleName": "com.example.system1", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.system1", + "name": ".BmsSystemBundle1", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.system1.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "forms": [ + { + "colorMode": "light", + "description": " JS1S Form", + "supportDimensions": [ "1*2", "2*2", "2*4", "4*4"], + "type": "JS", + "jsComponentName": "JS_name1S", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName1S", + "value": "com.huawei.weather.testWidget1S" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS1S", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + } + ], + "launchType": "standard", + "metaData": { + "parameters": [{ + "name": "Data1S", + "type": "float", + "description": "$string:mainability_description" + }], + "results": [{ + "name": "Data1S", + "type": "float", + "description": "$string:mainability_description" + }], + "customizeData": [{ + "name": "Data1S", + "value": "float", + "extra": "$string:mainability_description" + }] + } + } + ], + "shortcuts": [ + { + "icon": "$media:icon", + "shortcutId": "id.system1", + "label": "$string:shortcut", + "intents": [ + { + "targetClass":"com.example.system1.MainAbility", + "targetBundle":"com.example.system1" + } + ] + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..23ac44c8d --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..ba4d8c6bd --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "app_name", + "value": "system1" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + }, + { + "name": "shortcut", + "value": "JS_Phone_Empty Shortcut" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vc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?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/config.json new file mode 100644 index 000000000..c00f7a3ae --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/config.json @@ -0,0 +1,136 @@ +{ + "app": { + "bundleName": "com.example.vendor1", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.vendor1", + "name": ".BmsVendorBundle1", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.vendor.home" + ], + "actions": [ + "action.vendor.home" + ] + } + ], + "name": "com.example.vendor1.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "forms": [ + { + "colorMode": "light", + "description": " JS1V Form", + "supportDimensions": [ "1*2", "2*2", "2*4", "4*4"], + "type": "JS", + "jsComponentName": "JS_name1V", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName1V", + "value": "com.huawei.weather.testWidget1V" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS1V", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + }, + { + "colorMode": "light", + "description": " JS1V2 Form", + "supportDimensions": [ "1*2", "2*4", "4*4"], + "type": "JS", + "jsComponentName": "JS_name1V2", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName1V2", + "value": "com.huawei.weather.testWidget1V2" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS1V2", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + } + ], + "launchType": "standard", + "metaData": { + "parameters": [{ + "name": "Data1V", + "type": "float", + "description": "$string:mainability_description" + }], + "results": [{ + "name": "Data1V", + "type": "float", + "description": "$string:mainability_description" + }], + "customizeData": [{ + "name": "Data1V", + "value": "float", + "extra": "$string:mainability_description" + }] + } + } + ], + "shortcuts": [ + { + "icon": "$media:icon", + "shortcutId": "id.vendor1", + "label": "$string:shortcut", + "intents": [ + { + "targetClass":"com.example.vendor1.MainAbility", + "targetBundle":"com.example.vendor1" + } + ] + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..23ac44c8d --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..ce97c66cd --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "app_name", + "value": "vendor1" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + }, + { + "name": "shortcut", + "value": "JS_Phone_Empty Shortcut" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08k-|#Ly zaNOmT(^9tIb&eb4%CzIT zAm3CUtWSr1t4?h1kk#NBi{U|pJslvME{q|_eS^3En>SOqSxyuN1x;Is@8~m?*>}** znrRFArP!K_52RpX*&JHMR<^lVdm8ypJ}0R(S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undle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/config.json new file mode 100644 index 000000000..2cb8e72bd --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/config.json @@ -0,0 +1,62 @@ +{ + "app": { + "bundleName": "com.example.third2", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.third2", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.third2.MainAbility", + "srcLanguage": "js", + "visible": true, + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard" + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..66a83f621 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 50px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..13ae33e07 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..f62a9c1ad --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/default/pages/index/index.js @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + }, + onShow() { + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..9ec7fadd5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "third2" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=h1#XMWt2%fcoN@l7eAS!Es?Q+;XsRNPhiiE=@AqlLkJzF`O18 zbsbSmKN=aaq8k3NFYZfDWpKmM!coBU0(XnL8R{4=i|wi{!uWYM2je{U{B*K2PVdu&=E zTq*-XsEsJ$u5H4g6DIm2Y!DN`>^v|AqlwuCD;w45K0@eqauiqWf7l&o)+YLHm~|L~ z7$0v5mkobriU!H<@mVJHLlmQqzQ3d6Rh_-|%Yy2li*tHO>_vcnuZ7OR_xkAIuIU&x z-|8Y0wj|6|a6_I(v91y%k_kNw6pnkNdxjqG8!%Vz_d%c_!X+6-;1`GC9_FpjoHev5fEV7RhJ>r=mh-jp$fqbqRJ=obwdgLDVP5+s zy1=_DWG0Y-Jb3t^WXmkr(d9~08k-|#Ly zaNOmT(^9tIb&eb4%CzIT zAm3CUtWSr1t4?h1kk#NBi{U|pJslvME{q|_eS^3En>SOqSxyuN1x;Is@8~m?*>}** znrRFArP!K_52RpX*&JHMR<^lVdm8ypJ}0R(SD(51j;6@ni$6bQ+2XL+R^|NnSp5}(kzvMZ^(@4fD_{QVu$(&K6H|C37TG1Am9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Jp=#P#Pf#*luqI_wR;fISDCJhAqSG6R%xItn%~QtZ@m%&u zjGGLX;t6Ls62eQvNmf@v+}J%54^CygxRZ`?8X#r|wkev7(s;Ou4T#y1XNNf)h;o7z z8a^Lfq<1uH`E{G9E z*(=)Css_LSk=>E9jr)s5^2-!+MN=Ds}>1hRma4`uCIz9%p3O77839E{xf z4c_I?**|1`K2tg4!Hvyrou4BsJQuv*UfF)<%CelYIS>D^o?X)3+MK%la6kooW8&G@BU)Y0hT`+mOm$Z_%rB=a%o>I z!2c6lHyKQN)VjiFwa!eE^p8jc$sy$vB+8i25lI~6KPFFh$!o$avA~rj#L6xvR|Z83 z*WD6T9e+5Pyy=F+)pNTf{ny3cy>7Rkd3o*TS?TZJ`NS^NF2%HMkyS{?uJ$`!P4_L^ z1`NFDUbNyg_qREifgktnp1_v{Jbb`7m}2PTyUdOmtJj~m z9bB=ecw4_^rw1IW=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/config.json new file mode 100644 index 000000000..96b253543 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/config.json @@ -0,0 +1,135 @@ +{ + "app": { + "bundleName": "com.example.third1", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.third3", + "name": ".BmsThirdBundle3", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "bmsThirdBundle3", + "moduleType": "feature" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.third3.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "visible": true, + "form": { + "formEntity": [ + "homeScreen", + "searchbox" + ], + "defaultHeight": 100, + "defaultWidth": 200, + "minHeight": 50, + "minWidth": 100 + }, + "forms": [ + { + "colorMode": "light", + "description": " JS3 Form", + "supportDimensions": [ + "2*2", + "2*4", + "4*4" + ], + "type": "JS", + "jsComponentName": "JS_name3", + "metaData": { + "customizeData": [ + { + "name": "originWidgetName3", + "value": "com.huawei.weather.testWidget3" + } + ] + }, + "isDefault": true, + "deepLink": "ability://com.example.myapplication.fa/.MainAbility", + "defaultDimension": "1*2", + "name": "Form_JS3", + "scheduledUpateTime": "21:55", + "updateEnabled": true, + "updateDuration": 1 + } + ], + "launchType": "standard", + "metaData": { + "parameters": [ + { + "name": "Data3", + "type": "float", + "description": "$string:mainability_description" + } + ], + "results": [ + { + "name": "Data3", + "type": "float", + "description": "$string:mainability_description" + } + ], + "customizeData": [ + { + "name": "Data3", + "value": "float", + "extra": "$string:mainability_description" + } + ] + } + } + ], + "shortcuts": [ + { + "icon": "$media:icon", + "shortcutId": "id.third3", + "label": "$string:app_name", + "intents": [ + { + "targetClass": "com.example.third3.MainAbility", + "targetBundle": "com.example.third3" + } + ] + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/app.js new file mode 100644 index 000000000..2a68c1992 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..ad1fae0a8 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/default/pages/index/index.js @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "third3" + }, + onInit() { + this.title = this.data.title; + }, + onShow() { + }, + onReady() { + }, +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..cdb16ba19 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "third3" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z|LuG1{QnBUJRg_E=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w4_^rw1IW=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/config.json new file mode 100644 index 000000000..93e6b5b66 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/config.json @@ -0,0 +1,62 @@ +{ + "app": { + "bundleName": "com.example.bmsmainabilityfirstscene", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.bmsmainabilityfirstscene", + "mainAbility": "com.example.bmsmainabilityfirstscene.MainAbility", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "skills": [ + { + "entities": [ + "entity.system.home" + ], + "actions": [ + "action.system.home" + ] + } + ], + "name": "com.example.bmsmainabilityfirstscene.MainAbility", + "visible": true, + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard" + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/app.js new file mode 100644 index 000000000..f4beb9efb --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* +* Copyright (c) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the 'License'); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an 'AS IS' BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..0451b790e --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the 'License'); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an 'AS IS' BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..8e53a1056 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "MainAbilityFirstScene" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)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`7m}2PTyUdOmtJj~m z9bB=ecw4_^rw1IW=of+>nrW5=d3k`3qHCxsIN_F{T1A545};;+fsyC&qChi+YV zr~M63H8ZLCPYmsjY>ls9cL%I)F|JIW-#+48$+lD4k*(P*kDM%zx_fvu4u5ZYUnI}5 zdrycFq>xFU)&X3p@pP2u%$o}}YcRn(MhJ&B2o?KS@cIVz>Ye%o^xV?CB{_Qhu z;}_q1bvO^g{8<3!gYbo4Di{8qzV+(9 zdlmksohQmRTs@qB;(Wo?dER_ux6XQb@q$tQPW?CMu6GVQd;R=iR;-S{Kr%Zks7>b1 zNs{|-+jhObYE}NR&`TGGr^h^4bjh%c>R#@=8nM&Md>_a+zVulsl;){flFekV1t9ob z+SqfV_Pv3$2f)bQ8%Ul2>fdYR^1zs0BQF~olsOj5AodC&Q_7SMFzsz2 z9newxE&jodk~tNHwl%LBMMDbrk=(^b literal 0 HcmV?d00001 diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/config.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/config.json new file mode 100644 index 000000000..31511fa2a --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/config.json @@ -0,0 +1,53 @@ +{ + "app": { + "bundleName": "com.example.bmsmainabilityfirstscene", + "vendor": "example", + "version": { + "code": 1, + "name": "1.0" + }, + "apiVersion": { + "compatible": 4, + "target": 5, + "releaseType": "Beta1" + } + }, + "deviceConfig": {}, + "module": { + "package": "com.example.bmsmainabilitysecondscene", + "mainAbility": "com.example.bmsmainabilitysecondscene.MainAbility", + "name": ".MyApplication", + "deviceType": [ + "phone" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "bmsmainabilitysecondscene", + "moduleType": "feature", + "installationFree": true + }, + "abilities": [ + { + "visible": true, + "name": "com.example.bmsmainabilitysecondscene.MainAbility", + "icon": "$media:icon", + "description": "$string:mainability_description", + "label": "$string:app_name", + "type": "page", + "launchType": "standard" + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": "default", + "window": { + "designWidth": 720, + "autoDesignWidth": false + } + } + ] + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/app.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/app.js new file mode 100644 index 000000000..f4beb9efb --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/app.js @@ -0,0 +1,22 @@ +/* +* Copyright (c) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the 'License'); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an 'AS IS' BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +export default { + onCreate() { + console.info('AceApplication onCreate'); + }, + onDestroy() { + console.info('AceApplication onDestroy'); + } +}; diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/i18n/en-US.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/i18n/en-US.json new file mode 100644 index 000000000..e63c70d97 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/i18n/zh-CN.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/i18n/zh-CN.json new file mode 100644 index 000000000..de6ee5748 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.css b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.css new file mode 100644 index 000000000..6fda79275 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.css @@ -0,0 +1,9 @@ +.container { + flex-direction: column; + justify-content: center; + align-items: center; +} + +.title { + font-size: 100px; +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.hml b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.hml new file mode 100644 index 000000000..f64b040a5 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.js b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.js new file mode 100644 index 000000000..0451b790e --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/default/pages/index/index.js @@ -0,0 +1,25 @@ +/* +* Copyright (c) 2021 Huawei Device Co., Ltd. +* Licensed under the Apache License, Version 2.0 (the 'License'); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an 'AS IS' BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +const injectRef = Object.getPrototypeOf(global) || global +injectRef.regeneratorRuntime = require('@babel/runtime/regenerator') + +export default { + data: { + title: "" + }, + onInit() { + this.title = this.$t('strings.world'); + } +} diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/resources/base/element/string.json b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/resources/base/element/string.json new file mode 100644 index 000000000..206b23b52 --- /dev/null +++ b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/resources/base/element/string.json @@ -0,0 +1,12 @@ +{ + "string": [ + { + "name": "app_name", + "value": "bmsMainAbilitySecondScene" + }, + { + "name": "mainability_description", + "value": "JS_Phone_Empty Feature Ability" + } + ] +} \ No newline at end of file diff --git a/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/resources/base/media/icon.png b/appexecfwk/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/src/main/js/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ce307a8827bd75456441ceb57d530e4c8d45d36c GIT binary patch literal 6790 zcmX|G1ymHk)?T_}Vd;>R?p|tHQo6fg38|$UVM!6BLrPFWk?s;$LOP{GmJpBl$qoSA!PUg~PA65-S00{{S`XKG6NkG0RgjEntPrmV+?0|00mu7;+5 zrdpa{2QLqPJ4Y{j7=Mrl{BaxrkdY69+c~(w{Fv-v&aR%aEI&JYSeRTLWm!zbv;?)_ ziZB;fwGbbeL5Q}YLx`J$lp~A09KK8t_z}PZ=4ZzgdeKtgoc+o5EvN9A1K1_<>M?MBqb#!ASf&# zEX?<)!RH(7>1P+j=jqG(58}TVN-$psA6K}atCuI!KTJD&FMmH-78ZejBm)0qc{ESp z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