From aa423d0a432e513bf697477703d07d09772e2aa2 Mon Sep 17 00:00:00 2001 From: jiyong Date: Sun, 26 Sep 2021 10:35:44 +0800 Subject: [PATCH] jiyong@huawei.com Signed-off-by: jiyong --- ace/ace_standard/Test.json | 1 - ace/ace_standard/src/main/config.json | 10 ++-------- ace/ace_standard/src/main/js/default/app.js | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/ace/ace_standard/Test.json b/ace/ace_standard/Test.json index 084809ca8..bed98a783 100755 --- a/ace/ace_standard/Test.json +++ b/ace/ace_standard/Test.json @@ -4,7 +4,6 @@ "type": "JSUnitTest", "test-timeout": "60000", "package": "com.example.aceceshi", - "abilityName": "decc.testkit.runner.JsEntryAbility", "shell-timeout": "60000" }, "kits": [ diff --git a/ace/ace_standard/src/main/config.json b/ace/ace_standard/src/main/config.json index 09cab66d4..052014806 100755 --- a/ace/ace_standard/src/main/config.json +++ b/ace/ace_standard/src/main/config.json @@ -27,7 +27,6 @@ }, "abilities": [ { - "visible": true, "skills": [ { "entities": [ @@ -43,13 +42,8 @@ "description": "$string:mainability_description", "label": "$string:entry_MainAbility", "type": "page", - "launchType": "standard" - }, - { - "name": "decc.testkit.runner.JsEntryAbility", - "label": "$string:entry_MainAbility", - "type": "page", - "launchType": "standard" + "launchType": "standard", + "visible": true } ], "js": [ diff --git a/ace/ace_standard/src/main/js/default/app.js b/ace/ace_standard/src/main/js/default/app.js index aedcefe00..e423f4bce 100755 --- a/ace/ace_standard/src/main/js/default/app.js +++ b/ace/ace_standard/src/main/js/default/app.js @@ -1,3 +1,18 @@ +/* + * 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'); -- GitLab