Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
3c607d1d
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
接近 2 年 前同步成功
通知
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看板
提交
3c607d1d
编写于
9月 09, 2022
作者:
X
xuchenghua09
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
Signed-off-by:
N
xuchenghua09
<
xuchenghua09@huawei.com
>
上级
68781f7d
变更
40
隐藏空白更改
内联
并排
Showing
40 changed file
with
13 addition
and
688 deletion
+13
-688
ability/ability_runtime/actsappselector/actsappselectorrelyhap/Test.json
..._runtime/actsappselector/actsappselectorrelyhap/Test.json
+0
-4
ability/ability_runtime/actsappselector/actsimagearelyhap/AppScope/app.json
...ntime/actsappselector/actsimagearelyhap/AppScope/app.json
+0
-19
ability/ability_runtime/actsappselector/actsimagearelyhap/AppScope/resources/base/element/string.json
...imagearelyhap/AppScope/resources/base/element/string.json
+0
-8
ability/ability_runtime/actsappselector/actsimagearelyhap/AppScope/resources/base/media/app_icon.png
...simagearelyhap/AppScope/resources/base/media/app_icon.png
+0
-0
ability/ability_runtime/actsappselector/actsimagearelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimagearelyhap/BUILD.gn
+0
-44
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/ets/Application/AbilityStage.ts
...gearelyhap/entry/src/main/ets/Application/AbilityStage.ts
+0
-21
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
...agearelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
+0
-66
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/ets/MainAbility/pages/index.ets
...gearelyhap/entry/src/main/ets/MainAbility/pages/index.ets
+0
-47
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/ets/pages/index.ets
...ctor/actsimagearelyhap/entry/src/main/ets/pages/index.ets
+0
-47
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/module.json
...sappselector/actsimagearelyhap/entry/src/main/module.json
+0
-41
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/resources/base/element/string.json
...relyhap/entry/src/main/resources/base/element/string.json
+0
-24
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/resources/base/media/icon.png
...magearelyhap/entry/src/main/resources/base/media/icon.png
+0
-0
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/resources/base/profile/main_pages.json
...hap/entry/src/main/resources/base/profile/main_pages.json
+0
-5
ability/ability_runtime/actsappselector/actsimagearelyhap/signature/openharmony_sx.p7b
...ppselector/actsimagearelyhap/signature/openharmony_sx.p7b
+0
-0
ability/ability_runtime/actsappselector/actsimagebfeaturerelyhap/BUILD.gn
...runtime/actsappselector/actsimagebfeaturerelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimagebrelyhap/AppScope/app.json
...ntime/actsappselector/actsimagebrelyhap/AppScope/app.json
+0
-19
ability/ability_runtime/actsappselector/actsimagebrelyhap/AppScope/resources/base/element/string.json
...imagebrelyhap/AppScope/resources/base/element/string.json
+0
-8
ability/ability_runtime/actsappselector/actsimagebrelyhap/AppScope/resources/base/media/app_icon.png
...simagebrelyhap/AppScope/resources/base/media/app_icon.png
+0
-0
ability/ability_runtime/actsappselector/actsimagebrelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimagebrelyhap/BUILD.gn
+0
-44
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/ets/Application/AbilityStage.ts
...gebrelyhap/entry/src/main/ets/Application/AbilityStage.ts
+0
-21
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
...agebrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
+0
-73
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
...gebrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
+0
-50
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/ets/pages/index.ets
...ctor/actsimagebrelyhap/entry/src/main/ets/pages/index.ets
+0
-47
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/module.json
...sappselector/actsimagebrelyhap/entry/src/main/module.json
+0
-42
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/resources/base/element/string.json
...relyhap/entry/src/main/resources/base/element/string.json
+0
-40
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/resources/base/media/icon.png
...magebrelyhap/entry/src/main/resources/base/media/icon.png
+0
-0
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/resources/base/profile/main_pages.json
...hap/entry/src/main/resources/base/profile/main_pages.json
+0
-5
ability/ability_runtime/actsappselector/actsimagebrelyhap/signature/openharmony_sx.p7b
...ppselector/actsimagebrelyhap/signature/openharmony_sx.p7b
+0
-0
ability/ability_runtime/actsappselector/actsimagecentryrelyhap/BUILD.gn
...y_runtime/actsappselector/actsimagecentryrelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimagecfeaturerelyhap/BUILD.gn
...runtime/actsappselector/actsimagecfeaturerelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimagedrelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimagedrelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimageerelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimageerelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimagefrelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimagefrelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimagegrelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimagegrelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimagehrelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimagehrelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimageirelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimageirelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimagejrelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimagejrelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsimagekrelyhap/BUILD.gn
...bility_runtime/actsappselector/actsimagekrelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsserviceabilityarelyhap/BUILD.gn
...ntime/actsappselector/actsserviceabilityarelyhap/BUILD.gn
+1
-1
ability/ability_runtime/actsappselector/actsserviceabilitybrelyhap/BUILD.gn
...ntime/actsappselector/actsserviceabilitybrelyhap/BUILD.gn
+1
-1
未找到文件。
ability/ability_runtime/actsappselector/actsappselectorrelyhap/Test.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"description"
:
"Configuration for aceceshi Tests"
}
ability/ability_runtime/actsappselector/actsimagearelyhap/AppScope/app.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"app"
:
{
"bundleName"
:
"imagearelyhap"
,
"vendor"
:
"example"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
"icon"
:
"$media:app_icon"
,
"label"
:
"$string:app_name"
,
"distributedNotificationEnabled"
:
true
,
"keepAlive"
:
true
,
"singleUser"
:
true
,
"minAPIVersion"
:
9
,
"targetAPIVersion"
:
9
,
"car"
:
{
"apiCompatibleVersion"
:
9
,
"singleUser"
:
false
}
}
}
ability/ability_runtime/actsappselector/actsimagearelyhap/AppScope/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"actsstartrunnertest"
}
]
}
ability/ability_runtime/actsappselector/actsimagearelyhap/AppScope/resources/base/media/app_icon.png
已删除
100644 → 0
浏览文件 @
68781f7d
6.6 KB
ability/ability_runtime/actsappselector/actsimagearelyhap/BUILD.gn
已删除
100755 → 0
浏览文件 @
68781f7d
# Copyright (c) 2022 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_assist_suite("actsimagearelyhap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "actsimagearelyhap"
testonly = true
deps = [
":actsimagearelyhap_js_assets",
":actsimagearelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
subsystem_name = "ability"
part_name = "ability_runtime"
}
ohos_app_scope("actsimagearelyhap_app_profile") {
app_profile = "AppScope/app.json"
sources = [ "AppScope/resources" ]
}
ohos_js_assets("actsimagearelyhap_js_assets") {
source_dir = "entry/src/main/ets"
}
ohos_resources("actsimagearelyhap_resources") {
sources = [ "entry/src/main/resources" ]
deps = [ ":actsimagearelyhap_app_profile" ]
hap_profile = "entry/src/main/module.json"
}
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/ets/Application/AbilityStage.ts
已删除
100644 → 0
浏览文件 @
68781f7d
/*
* Copyright (c) 2022 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
AbilityStage
from
"
@ohos.application.AbilityStage
"
export
default
class
MyAbilityStage
extends
AbilityStage
{
onCreate
()
{
console
.
log
(
"
[Demo] MyAbilityStage onCreate
"
)
}
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
已删除
100644 → 0
浏览文件 @
68781f7d
/*
* Copyright (c) 2022 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
Ability
from
'
@ohos.application.Ability
'
import
commonEvent
from
'
@ohos.commonEvent
'
export
default
class
MainAbility
extends
Ability
{
onCreate
(
want
,
launchParam
)
{
console
.
log
(
"
[Demo] MainAbility onCreate
"
)
globalThis
.
abilityWant
=
want
;
AppStorage
.
SetOrCreate
(
'
bundleName
'
,
want
.
bundleName
);
AppStorage
.
SetOrCreate
(
'
abilityName
'
,
want
.
abilityName
);
AppStorage
.
SetOrCreate
(
'
type
'
,
want
.
type
);
AppStorage
.
SetOrCreate
(
'
uri
'
,
want
.
parameters
.
uri
);
}
onDestroy
()
{
console
.
log
(
"
[Demo] MainAbility onDestroy
"
)
}
onWindowStageCreate
(
windowStage
)
{
// Main window is created, set main page for this ability
console
.
log
(
"
[Demo] MainAbility onWindowStageCreate
"
)
windowStage
.
setUIContent
(
this
.
context
,
"
pages/index
"
,
null
)
}
onWindowStageDestroy
()
{
// Main window is destroyed, release UI related resources
console
.
log
(
"
[Demo] MainAbility onWindowStageDestroy
"
)
}
onForeground
()
{
// Ability has brought to foreground
console
.
log
(
"
[Demo] MainAbility onForeground
"
)
console
.
log
(
"
[Demo] MainAbility onForeground want:
"
+
JSON
.
stringify
(
globalThis
.
abilityWant
))
let
commonEventData
=
{
code
:
0
,
data
:
'
imagearelyhap
'
,
parameters
:
{
abilityName
:
globalThis
.
abilityWant
.
abilityName
,
bundleName
:
globalThis
.
abilityWant
.
bundleName
,
type
:
globalThis
.
abilityWant
.
type
,
uri
:
globalThis
.
abilityWant
.
parameters
.
uri
}
}
commonEvent
.
publish
(
'
AppSelector
'
,
commonEventData
,
(
err
)
=>
{
console
.
log
(
'
======>imagearelyhap MainAbility published<======
'
)
})
}
onBackground
()
{
// Ability has back to background
console
.
log
(
"
[Demo] MainAbility onBackground
"
)
}
};
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/ets/MainAbility/pages/index.ets
已删除
100644 → 0
浏览文件 @
68781f7d
/*
* Copyright (c) 2022 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.
*/
@Entry
@Component
struct Index {
@State message: string = 'imageAEntryRelyHap'
@StorageLink('bundleName') bundleName: string = null;
@StorageLink('abilityName') abilityName: string = null;
@StorageLink('type') type: string = null;
@StorageLink('uri') uri: string = null;
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
Text("bundleName: " + this.bundleName)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("abilityName: " + this.abilityName)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("type: " + this.type)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("uri: " + this.uri)
.fontSize(25)
.fontWeight(FontWeight.Bold)
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/ets/pages/index.ets
已删除
100644 → 0
浏览文件 @
68781f7d
/*
* Copyright (c) 2022 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.
*/
@Entry
@Component
struct Index {
@State message: string = 'imageAEntryRelyHap'
@StorageLink('bundleName') bundleName: string = null;
@StorageLink('abilityName') abilityName: string = null;
@StorageLink('type') type: string = null;
@StorageLink('uri') uri: string = null;
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
Text("bundleName: " + this.bundleName)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("abilityName: " + this.abilityName)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("type: " + this.type)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("uri: " + this.uri)
.fontSize(25)
.fontWeight(FontWeight.Bold)
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/module.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"module"
:
{
"name"
:
"entry"
,
"type"
:
"entry"
,
"srcEntrance"
:
"./ets/Application/AbilityStage.ts"
,
"description"
:
"$string:entry_desc"
,
"mainElement"
:
"MainAbility"
,
"deviceTypes"
:
[
"phone"
],
"deliveryWithInstall"
:
true
,
"installationFree"
:
false
,
"pages"
:
"$profile:main_pages"
,
"uiSyntax"
:
"ets"
,
"abilities"
:
[
{
"name"
:
"MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:MainAbility_desc"
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:MainAbility_label"
,
"visible"
:
true
,
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"ohos.want.action.viewData"
],
"uris"
:
[
{
"type"
:
"image/png"
}
]
}
]
}
]
}
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"string"
:
[
{
"name"
:
"entry_desc"
,
"value"
:
"description"
},
{
"name"
:
"MainAbility_desc"
,
"value"
:
"description"
},
{
"name"
:
"MainAbility_label"
,
"value"
:
"label"
},
{
"name"
:
"app_name"
,
"value"
:
"actsstartrunnertest"
},
{
"name"
:
"description_application"
,
"value"
:
"demo for test"
}
]
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
68781f7d
6.6 KB
ability/ability_runtime/actsappselector/actsimagearelyhap/entry/src/main/resources/base/profile/main_pages.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"src"
:
[
"pages/index"
]
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagearelyhap/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
68781f7d
文件已删除
ability/ability_runtime/actsappselector/actsimagebfeaturerelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageBFeatureRelyHap") {
ohos_hap
_assist_suite
("ActsImageBFeatureRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageBFeatureRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimagebrelyhap/AppScope/app.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"app"
:
{
"bundleName"
:
"imagebrelyhap"
,
"vendor"
:
"example"
,
"versionCode"
:
1000000
,
"versionName"
:
"1.0.0"
,
"icon"
:
"$media:app_icon"
,
"label"
:
"$string:app_name"
,
"distributedNotificationEnabled"
:
true
,
"keepAlive"
:
true
,
"singleUser"
:
true
,
"minAPIVersion"
:
9
,
"targetAPIVersion"
:
9
,
"car"
:
{
"apiCompatibleVersion"
:
9
,
"singleUser"
:
false
}
}
}
ability/ability_runtime/actsappselector/actsimagebrelyhap/AppScope/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"string"
:
[
{
"name"
:
"app_name"
,
"value"
:
"actsstartrunnertest"
}
]
}
ability/ability_runtime/actsappselector/actsimagebrelyhap/AppScope/resources/base/media/app_icon.png
已删除
100644 → 0
浏览文件 @
68781f7d
6.6 KB
ability/ability_runtime/actsappselector/actsimagebrelyhap/BUILD.gn
已删除
100755 → 0
浏览文件 @
68781f7d
# Copyright (c) 2022 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("ActsImageBRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageBRelyHap"
testonly = true
deps = [
":actsimagebrelyhap_js_assets",
":actsimagebrelyhap_resources",
]
ets2abc = true
certificate_profile = "signature/openharmony_sx.p7b"
subsystem_name = "ability"
part_name = "ability_runtime"
}
ohos_app_scope("actsimagebrelyhap_app_profile") {
app_profile = "AppScope/app.json"
sources = [ "AppScope/resources" ]
}
ohos_js_assets("actsimagebrelyhap_js_assets") {
source_dir = "entry/src/main/ets"
}
ohos_resources("actsimagebrelyhap_resources") {
sources = [ "entry/src/main/resources" ]
deps = [ ":actsimagebrelyhap_app_profile" ]
hap_profile = "entry/src/main/module.json"
}
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/ets/Application/AbilityStage.ts
已删除
100644 → 0
浏览文件 @
68781f7d
/*
* Copyright (c) 2022 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
AbilityStage
from
"
@ohos.application.AbilityStage
"
export
default
class
MyAbilityStage
extends
AbilityStage
{
onCreate
()
{
console
.
log
(
"
[Demo] MyAbilityStage onCreate
"
)
}
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/ets/MainAbility/MainAbility.ts
已删除
100644 → 0
浏览文件 @
68781f7d
/*
* Copyright (c) 2022 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
Ability
from
'
@ohos.application.Ability
'
// import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry'
// import { Hypium } from 'hypium/index'
// import testsuite from '../test/List.test'
import
commonEvent
from
'
@ohos.commonEvent
'
export
default
class
MainAbility
extends
Ability
{
onCreate
(
want
,
launchParam
)
{
console
.
log
(
'
MainAbility onCreate
'
)
globalThis
.
abilityWant
=
want
;
AppStorage
.
SetOrCreate
(
'
bundleName
'
,
want
.
bundleName
);
AppStorage
.
SetOrCreate
(
'
abilityName
'
,
want
.
abilityName
);
AppStorage
.
SetOrCreate
(
'
type
'
,
want
.
type
);
AppStorage
.
SetOrCreate
(
'
uri
'
,
want
.
parameters
.
uri
);
// globalThis.abilityWant = want;
// var abilityDelegator: any
// abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
// var abilityDelegatorArguments: any
// abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
// console.info('start run testcase!!!')
// Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
}
onDestroy
()
{
console
.
log
(
'
MainAbility onDestroy
'
)
}
onWindowStageCreate
(
windowStage
)
{
console
.
log
(
'
MainAbility onWindowStageCreate
'
)
windowStage
.
setUIContent
(
this
.
context
,
'
MainAbility/pages/index
'
,
null
)
}
onWindowStageDestroy
()
{
console
.
log
(
'
MainAbility onWindowStageDestroy
'
)
}
onForeground
()
{
console
.
log
(
'
MainAbility onForeground
'
)
console
.
log
(
"
[Demo] MainAbility onForeground want:
"
+
JSON
.
stringify
(
globalThis
.
abilityWant
))
let
commonEventData
=
{
code
:
0
,
data
:
'
imagebrelyhap
'
,
parameters
:
{
abilityName
:
globalThis
.
abilityWant
.
abilityName
,
bundleName
:
globalThis
.
abilityWant
.
bundleName
,
type
:
globalThis
.
abilityWant
.
type
,
uri
:
globalThis
.
abilityWant
.
parameters
.
uri
}
}
commonEvent
.
publish
(
'
AppSelector
'
,
commonEventData
,
(
err
)
=>
{
console
.
log
(
'
======>imagebrelyhap MainAbility published<======
'
)
})
}
onBackground
()
{
console
.
log
(
'
MainAbility onBackground
'
)
}
};
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/ets/MainAbility/pages/index.ets
已删除
100644 → 0
浏览文件 @
68781f7d
/*
* Copyright (c) 2022 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 router from '@system.router';
import file from '@system.file';
@Entry
@Component
struct Index {
aboutToAppear() {
console.info('MainAbility index aboutToAppear')
}
@State message: string = 'MainAbility'
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
Button() {
Text('next page')
.fontSize(20)
.fontWeight(FontWeight.Bold)
}.type(ButtonType.Capsule)
.margin({
top: 20
})
.backgroundColor('#0D9FFB')
.width('35%')
.height('5%')
.onClick(()=>{
})
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/ets/pages/index.ets
已删除
100644 → 0
浏览文件 @
68781f7d
/*
* Copyright (c) 2022 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.
*/
@Entry
@Component
struct Index {
@State message: string = 'imageAEntryRelyHap'
@StorageLink('bundleName') bundleName: string = null;
@StorageLink('abilityName') abilityName: string = null;
@StorageLink('type') type: string = null;
@StorageLink('uri') uri: string = null;
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
Text("bundleName: " + this.bundleName)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("abilityName: " + this.abilityName)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("type: " + this.type)
.fontSize(25)
.fontWeight(FontWeight.Bold)
Text("uri: " + this.uri)
.fontSize(25)
.fontWeight(FontWeight.Bold)
}
.width('100%')
}
.height('100%')
}
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/module.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"module"
:
{
"name"
:
"entry"
,
"type"
:
"entry"
,
"srcEntrance"
:
"./ets/Application/AbilityStage.ts"
,
"description"
:
"$string:entry_desc"
,
"mainElement"
:
"MainAbility"
,
"deviceTypes"
:
[
"phone"
,
"tablet"
],
"deliveryWithInstall"
:
true
,
"installationFree"
:
false
,
"pages"
:
"$profile:main_pages"
,
"uiSyntax"
:
"ets"
,
"abilities"
:
[
{
"name"
:
"MainAbility"
,
"srcEntrance"
:
"./ets/MainAbility/MainAbility.ts"
,
"description"
:
"$string:MainAbility_desc"
,
"icon"
:
"$media:icon"
,
"label"
:
"$string:MainAbility_label"
,
"visible"
:
true
,
"skills"
:
[
{
"entities"
:
[
"entity.system.home"
],
"actions"
:
[
"ohos.want.action.viewData"
],
"uris"
:
[
{
"type"
:
"image/png"
}
]
}
]
}
]
}
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/resources/base/element/string.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"string"
:
[
{
"name"
:
"entry_desc"
,
"value"
:
"description"
},
{
"name"
:
"MainAbility_desc"
,
"value"
:
"description"
},
{
"name"
:
"MainAbility_label"
,
"value"
:
"label"
},
{
"name"
:
"MainAbility2_desc"
,
"value"
:
"description"
},
{
"name"
:
"MainAbility2_label"
,
"value"
:
"label"
},
{
"name"
:
"MainAbility3_desc"
,
"value"
:
"description"
},
{
"name"
:
"MainAbility3_label"
,
"value"
:
"label"
},
{
"name"
:
"app_name"
,
"value"
:
"actsstartrunnertest"
},
{
"name"
:
"description_application"
,
"value"
:
"demo for test"
}
]
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/resources/base/media/icon.png
已删除
100644 → 0
浏览文件 @
68781f7d
6.6 KB
ability/ability_runtime/actsappselector/actsimagebrelyhap/entry/src/main/resources/base/profile/main_pages.json
已删除
100644 → 0
浏览文件 @
68781f7d
{
"src"
:
[
"pages/index"
]
}
\ No newline at end of file
ability/ability_runtime/actsappselector/actsimagebrelyhap/signature/openharmony_sx.p7b
已删除
100644 → 0
浏览文件 @
68781f7d
文件已删除
ability/ability_runtime/actsappselector/actsimagecentryrelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageCEntryRelyHap") {
ohos_hap
_assist_suite
("ActsImageCEntryRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageCEntryRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimagecfeaturerelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageCFeatureRelyHap") {
ohos_hap
_assist_suite
("ActsImageCFeatureRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageCFeatureRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimagedrelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageDRelyHap") {
ohos_hap
_assist_suite
("ActsImageDRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageDRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimageerelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageERelyHap") {
ohos_hap
_assist_suite
("ActsImageERelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageERelyHap"
...
...
ability/ability_runtime/actsappselector/actsimagefrelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageFRelyHap") {
ohos_hap
_assist_suite
("ActsImageFRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageFRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimagegrelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageGRelyHap") {
ohos_hap
_assist_suite
("ActsImageGRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageGRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimagehrelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageHRelyHap") {
ohos_hap
_assist_suite
("ActsImageHRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageHRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimageirelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageIRelyHap") {
ohos_hap
_assist_suite
("ActsImageIRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageIRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimagejrelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageJRelyHap") {
ohos_hap
_assist_suite
("ActsImageJRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageJRelyHap"
...
...
ability/ability_runtime/actsappselector/actsimagekrelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsImageKRelyHap") {
ohos_hap
_assist_suite
("ActsImageKRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsImageKRelyHap"
...
...
ability/ability_runtime/actsappselector/actsserviceabilityarelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsServiceAbilityARelyHap") {
ohos_hap
_assist_suite
("ActsServiceAbilityARelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsServiceAbilityARelyHap"
...
...
ability/ability_runtime/actsappselector/actsserviceabilitybrelyhap/BUILD.gn
浏览文件 @
3c607d1d
...
...
@@ -12,7 +12,7 @@
# limitations under the License.
import("//test/xts/tools/build/suite.gni")
ohos_hap("ActsServiceAbilityBRelyHap") {
ohos_hap
_assist_suite
("ActsServiceAbilityBRelyHap") {
hap_profile = "entry/src/main/module.json"
js_build_mode = "debug"
hap_name = "ActsServiceAbilityBRelyHap"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录