提交 775f8664 编写于 作者: J jiyong

jiyong@huawei.com

Signed-off-by: Njiyong <jiyong@huawei.com>
上级 5a92ab99
...@@ -10,11 +10,10 @@ ...@@ -10,11 +10,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("ActsFormSystemTestServiceA") { ohos_hap("ActsFormSystemTestServiceA") {
hap_profile = "./formmodule001/src/main/config.json" hap_profile = "./src/main/config.json"
hap_name = "ActsFormSystemTestServiceA" hap_name = "ActsFormSystemTestServiceA"
subsystem_name = XTS_SUITENAME subsystem_name = XTS_SUITENAME
final_hap_path = final_hap_path =
...@@ -27,9 +26,9 @@ ohos_js_hap_suite("ActsFormSystemTestServiceA") { ...@@ -27,9 +26,9 @@ ohos_js_hap_suite("ActsFormSystemTestServiceA") {
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./formmodule001/src/main/js/default" source_dir = "./src/main/js/default"
} }
ohos_resources("hjs_demo_resources") { ohos_resources("hjs_demo_resources") {
sources = [ "./formmodule001/src/main/resources" ] sources = [ "./src/main/js/resources" ]
hap_profile = "./formmodule001/src/main/config.json" hap_profile = "./src/main/config.json"
} }
{ {
"app": { "app": {
"bundleName": "com.form.formsystemtestservicea", "bundleName": "com.form.formsystemtestservicea",
"vendor": "ohos", "vendor": "ohos",
"version": { "version": {
"code": 1, "code": 1,
"name": "1.0" "name": "1.0"
}, },
"apiVersion": { "apiVersion": {
"compatible": 5, "compatible": 5,
"target": 5, "target": 5,
"releaseType": "Beta1" "releaseType": "Beta1"
} }
}, },
"deviceConfig": {}, "deviceConfig": {},
"module": { "module": {
"package": "com.form.formsystemtestservicea", "package": "com.form.formsystemtestservicea",
"name": ".MyApplication", "name": ".MyApplication",
"deviceType": [ "deviceType": [
"phone" "phone"
], ],
"distro": { "distro": {
"deliveryWithInstall": true, "deliveryWithInstall": true,
"moduleName": "formmodule001", "moduleName": "formmodule001",
"moduleType": "entry" "moduleType": "entry"
}, },
"abilities": [ "abilities": [
{ {
"skills": [ "skills": [
{ {
"entities": [ "entities": [
"entity.system.home" "entity.system.home"
], ],
"actions": [ "actions": [
"action.system.home" "action.system.home"
] ]
} }
], ],
"visible": true, "visible": true,
"name": "FormStServiceAbilityA", "name": "FormStServiceAbilityA",
"icon": "$media:icon", "icon": "$media:icon",
"description": "$string:mainability_description", "description": "$string:mainability_description",
"label": "$string:entry_MainAbility", "label": "$string:entry_MainAbility",
"type": "service", "type": "service",
"launchType": "standard", "launchType": "standard",
"formsEnabled": true, "formsEnabled": true,
"srcLanguage": "c++", "srcLanguage": "c++",
"forms": [ "forms": [
{ {
"name": "Form_Js001", "name": "Form_Js001",
"description": "form_description", "description": "form_description",
"isDefault": true, "isDefault": true,
"type": "JS", "type": "JS",
"colorMode": "auto", "colorMode": "auto",
"supportDimensions":[ "1*2", "2*2" ], "supportDimensions":[ "1*2", "2*2" ],
"defaultDimension": "1*2", "defaultDimension": "1*2",
"updateEnabled": true, "updateEnabled": true,
"scheduledUpdateTime": "10:30", "scheduledUpdateTime": "10:30",
"jsComponentName": "card", "jsComponentName": "card",
"formVisibleNotify" : true, "formVisibleNotify" : true,
"metaData": { "metaData": {
"customizeData": [ "customizeData": [
{ {
"name": "originWidgetName", "name": "originWidgetName",
"value": "myTest" "value": "myTest"
} }
] ]
} }
}, },
{ {
"name": "Form_Js002", "name": "Form_Js002",
"description": "form_description", "description": "form_description",
"isDefault": true, "isDefault": true,
"type": "JS", "type": "JS",
"colorMode": "auto", "colorMode": "auto",
"supportDimensions":[ "1*2", "2*2" ], "supportDimensions":[ "1*2", "2*2" ],
"defaultDimension": "1*2", "defaultDimension": "1*2",
"updateEnabled": true, "updateEnabled": true,
"updateDuration": 1, "updateDuration": 1,
"jsComponentName": "card", "jsComponentName": "card",
"formVisibleNotify" : true, "formVisibleNotify" : true,
"metaData": { "metaData": {
"customizeData": [ "customizeData": [
{ {
"name": "originWidgetName", "name": "originWidgetName",
"value": "myTest" "value": "myTest"
} }
] ]
} }
} }
] ]
} }
], ],
"js": [ "js": [
{ {
"pages": [ "pages": [
"pages/index/index" "pages/index/index"
], ],
"name": "default", "name": "default",
"window": { "window": {
"designWidth": 720, "designWidth": 720,
"autoDesignWidth": true "autoDesignWidth": true
} }
} }
] ]
} }
} }
\ No newline at end of file
{ {
"string": [ "string": [
{ {
"name": "entry_MainAbility", "name": "entry_MainAbility",
"value": "A_fms" "value": "A_fms"
}, },
{ {
"name": "mainability_description", "name": "mainability_description",
"value": "JS_Empty Ability" "value": "JS_Empty Ability"
} }
] ]
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册