diff --git a/commonlibrary/BUILD.gn b/commonlibrary/BUILD.gn index c08dd13b91428bb0848533bfd7bd0acc667f60e3..8c24c3edd61d441e89abd4e85430f1c4587efc6a 100644 --- a/commonlibrary/BUILD.gn +++ b/commonlibrary/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (C) 2022 Huawei Device Co., Ltd. +# Copyright (C) 2023 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 diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn b/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn index ff05ea41882d810ec1cff57ec09ce2fd25d2d893..421e401b5ff09db7ffd1b1a939774a629c1f3df8 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/BUILD.gn @@ -1,3 +1,15 @@ +# Copyright (C) 2023 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("xml_ets_test") { @@ -8,26 +20,19 @@ ohos_js_hap_suite("xml_ets_test") { ] ets2abc = true certificate_profile = "./signature/openharmony_sx.p7b" - # hap_name: HAP的名字,可选,默认为目标名 hap_name = "xml_ets_test" subsystem_name = "commonlibrary" part_name = "ets_utils" } ohos_app_scope("windowStage_app_profile") { - # app_profile: HAP的AppScope中的app.json,只在Stage模型下使用 app_profile = "AppScope/app.json" - # sources: 资源文件路径 sources = [ "AppScope/resources" ] } ohos_js_assets("windowStage_js_assets") { - # source_dir: js或ets代码路径,兼容FA模型的单ability配置到ability目录 source_dir = "src/main/ets" } ohos_resources("windowStage_resources") { - # sources: 资源文件路径 sources = [ "src/main/resources" ] - # deps: 当前目标的依赖 deps = [ ":windowStage_app_profile" ] - # hap_profile: HAP的config.json,Stage模型对应module.json hap_profile = "src/main/module.json" } \ No newline at end of file diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/TestAbility.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/TestAbility.ets index 2d889f4fdf763010c29f1767b033420a5c7b8671..a535e83f79f890b0209acbfa7d873fd4de72104b 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/TestAbility.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/TestAbility.ets @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2023 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 UIAbility from '@ohos.app.ability.UIAbility'; import AbilityDelegatorRegistry from '@ohos.app.ability.abilityDelegatorRegistry'; import hilog from '@ohos.hilog'; diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/pages/Index.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/pages/Index.ets index 166366593a7e55ef17e6619f68a4c46214814858..dbc536ca80c5095e2bcb95bdf9ce4659ea973139 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/pages/Index.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/TestAbility/pages/Index.ets @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2023 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 hilog from '@ohos.hilog'; @Entry diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/List.test.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/List.test.ets index e83777f0c5090bed969c5eb0bb68471addbe4a2e..09c4f9aa154a60500cfe90fc233265d0d51dbc62 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/List.test.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/List.test.ets @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2023 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 xmlTest from './xml.test' import xmlParseOptionTest from './xmlEventType.test' import xmlEventTypeTest from './xmlParseOption.test' diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlEventType.test.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlEventType.test.ets index c2dcf70545ab17d419d9322289e3ab1b51fc9f36..50e011231d05eb7ea20882eca239231436f43e6e 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlEventType.test.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlEventType.test.ets @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Huawei Device Co., Ltd. + * Copyright (C) 2023 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 diff --git a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlParseOption.test.ets b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlParseOption.test.ets index e7db0ab01341dd9fae968337a943f68b57734391..54b7a7045bb28519d9668af404bf7350ea55f024 100644 --- a/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlParseOption.test.ets +++ b/commonlibrary/crossplatform/commonlibraryxmletstest/src/main/ets/test/xmlParseOption.test.ets @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 Huawei Device Co., Ltd. + * Copyright (C) 2023 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