Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f442f64d
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f442f64d
编写于
8月 28, 2021
作者:
L
luozhewen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update 子系统编译整改
Signed-off-by:
N
luozhewen
<
luozhewen@huawei.com
>
上级
0a7f0701
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
2009 addition
and
4023 deletion
+2009
-4023
updater/update_test/BUILD.gn
updater/update_test/BUILD.gn
+21
-4
updater/update_test/gradle/entry/src/main/js/test/List.test.js
...er/update_test/gradle/entry/src/main/js/test/List.test.js
+0
-16
updater/update_test/gradle/entry/src/ohosTest/config.json
updater/update_test/gradle/entry/src/ohosTest/config.json
+0
-52
updater/update_test/gradle/entry/src/ohosTest/js/test/update.test.js
...ate_test/gradle/entry/src/ohosTest/js/test/update.test.js
+0
-1951
updater/update_test/gradle/entry/src/ohosTest/resources/base/element/string.json
...dle/entry/src/ohosTest/resources/base/element/string.json
+0
-12
updater/update_test/gradle/entry/src/ohosTest/resources/base/media/icon.png
...t/gradle/entry/src/ohosTest/resources/base/media/icon.png
+0
-0
updater/update_test/hap/entry-debug-signed.hap
updater/update_test/hap/entry-debug-signed.hap
+0
-0
updater/update_test/signature/openharmony_sx.p7b
updater/update_test/signature/openharmony_sx.p7b
+0
-0
updater/update_test/src/main/config.json
updater/update_test/src/main/config.json
+0
-0
updater/update_test/src/main/js/default/app.js
updater/update_test/src/main/js/default/app.js
+23
-23
updater/update_test/src/main/js/default/pages/index/index.css
...ter/update_test/src/main/js/default/pages/index/index.css
+0
-0
updater/update_test/src/main/js/default/pages/index/index.hml
...ter/update_test/src/main/js/default/pages/index/index.hml
+0
-0
updater/update_test/src/main/js/default/pages/index/index.js
updater/update_test/src/main/js/default/pages/index/index.js
+1
-1
updater/update_test/src/main/js/default/test/List.test.js
updater/update_test/src/main/js/default/test/List.test.js
+2
-2
updater/update_test/src/main/js/default/test/update.test.js
updater/update_test/src/main/js/default/test/update.test.js
+1951
-1951
updater/update_test/src/main/resources/base/element/string.json
...r/update_test/src/main/resources/base/element/string.json
+11
-11
updater/update_test/src/main/resources/base/media/icon.png
updater/update_test/src/main/resources/base/media/icon.png
+0
-0
未找到文件。
updater/update_test/BUILD.gn
浏览文件 @
f442f64d
...
...
@@ -9,11 +9,28 @@
# 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.
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("update_js_test") {
test_hap_name = "updatejstest"
hap_source_path = "hap/entry-debug-signed.hap"
hap_profile = "./src/main/config.json"
deps = [
":update_js_assets",
":update_js_resources",
]
# shared_libraries = [
# "//third_party/giflib:libgif",
# "//third_party/libpng:libpng",
# ]
certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "updatejstest"
# part_name = "prebuilt_hap"
# subsystem_name = "xts"
}
ohos_js_assets("update_js_assets") {
source_dir = "./src/main/js/default"
}
ohos_resources("update_js_resources") {
sources = [ "./src/main/resources" ]
hap_profile = "./src/main/config.json"
}
\ No newline at end of file
updater/update_test/gradle/entry/src/main/js/test/List.test.js
已删除
100755 → 0
浏览文件 @
0a7f0701
/*
* 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
(
'
./update.test.js
'
)
\ No newline at end of file
updater/update_test/gradle/entry/src/ohosTest/config.json
已删除
100644 → 0
浏览文件 @
0a7f0701
{
"app"
:
{
"bundleName"
:
"ohos.acts.upgrade"
,
"vendor"
:
"example"
,
"version"
:
{
"code"
:
1
,
"name"
:
"1.0"
},
"apiVersion"
:
{
"compatible"
:
4
,
"target"
:
5
}
},
"deviceConfig"
:
{},
"module"
:
{
"package"
:
"ohos.acts.upgrade"
,
"name"
:
"testModule"
,
"deviceType"
:
[
"phone"
],
"distro"
:
{
"deliveryWithInstall"
:
true
,
"moduleName"
:
"entry_test"
,
"moduleType"
:
"feature"
,
"installationFree"
:
true
},
"abilities"
:
[
{
"name"
:
"ohos.acts.upgrade.MainAbility"
,
"description"
:
"Test Entry Ability"
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:app_name"
,
"launchType"
:
"standard"
,
"orientation"
:
"landscape"
,
"visible"
:
true
,
"type"
:
"page"
}
],
"js"
:
[
{
"pages"
:
[
"pages/index/index"
],
"name"
:
"default"
,
"window"
:
{
"designWidth"
:
750
,
"autoDesignWidth"
:
false
}
}
]
}
}
updater/update_test/gradle/entry/src/ohosTest/js/test/update.test.js
已删除
100755 → 0
浏览文件 @
0a7f0701
此差异已折叠。
点击以展开。
updater/update_test/gradle/entry/src/ohosTest/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
0a7f0701
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"MyApplication0420"
},
{
"name"
:
"mainability_description"
,
"value"
:
"hap sample empty page"
}
]
}
updater/update_test/gradle/entry/src/ohosTest/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
0a7f0701
6.6 KB
updater/update_test/hap/entry-debug-signed.hap
已删除
100755 → 0
浏览文件 @
0a7f0701
文件已删除
updater/update_test/signature/openharmony_sx.p7b
0 → 100644
浏览文件 @
f442f64d
文件已添加
updater/update_test/
gradle/entry/
src/main/config.json
→
updater/update_test/src/main/config.json
浏览文件 @
f442f64d
文件已移动
updater/update_test/
gradle/entry/
src/main/js/default/app.js
→
updater/update_test/src/main/js/default/app.js
100755 → 100644
浏览文件 @
f442f64d
/*
* 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
'
);
}
};
/*
* 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
'
);
}
};
updater/update_test/
gradle/entry/
src/main/js/default/pages/index/index.css
→
updater/update_test/src/main/js/default/pages/index/index.css
浏览文件 @
f442f64d
文件已移动
updater/update_test/
gradle/entry/
src/main/js/default/pages/index/index.hml
→
updater/update_test/src/main/js/default/pages/index/index.hml
浏览文件 @
f442f64d
文件已移动
updater/update_test/
gradle/entry/
src/main/js/default/pages/index/index.js
→
updater/update_test/src/main/js/default/pages/index/index.js
100755 → 100644
浏览文件 @
f442f64d
...
...
@@ -16,7 +16,7 @@
import
{
Core
}
from
'
deccjsunit/lite
'
const
core
=
Core
.
getInstance
()
core
.
init
()
require
(
'
../../
../
test/List.test.js
'
)
require
(
'
../../test/List.test.js
'
)
core
.
execute
()
export
default
{
...
...
updater/update_test/
gradle/entry/src/ohosTest/js/test/l
ist.test.js
→
updater/update_test/
src/main/js/default/test/L
ist.test.js
100755 → 100644
浏览文件 @
f442f64d
...
...
@@ -12,5 +12,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require
(
'
./update.test.js
'
);
\ No newline at end of file
require
(
'
./update.test.js
'
)
\ No newline at end of file
updater/update_test/
gradle/entry/src/main/js
/test/update.test.js
→
updater/update_test/
src/main/js/default
/test/update.test.js
100755 → 100644
浏览文件 @
f442f64d
此差异已折叠。
点击以展开。
updater/update_test/
gradle/entry/
src/main/resources/base/element/string.json
→
updater/update_test/src/main/resources/base/element/string.json
浏览文件 @
f442f64d
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"MyApplication0420"
},
{
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
}
]
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"MyApplication0420"
},
{
"name"
:
"mainability_description"
,
"value"
:
"JS_Phone_Empty Feature Ability"
}
]
}
\ No newline at end of file
updater/update_test/
gradle/entry/
src/main/resources/base/media/icon.png
→
updater/update_test/src/main/resources/base/media/icon.png
浏览文件 @
f442f64d
文件已移动
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录