From 091b034031caac194e3fc7fc9eba246e7e850bc6 Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Wed, 11 Dec 2024 15:19:40 +0800 Subject: [PATCH 01/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- .../flutter_tools/lib/src/build_system/targets/ohos.dart | 4 ++++ packages/flutter_tools/lib/src/ohos/application_package.dart | 4 ++++ packages/flutter_tools/lib/src/ohos/ohos_builder.dart | 4 ++++ packages/flutter_tools/lib/src/ohos/ohos_device.dart | 4 ++++ .../flutter_tools/lib/src/ohos/ohos_device_discovery.dart | 4 ++++ packages/flutter_tools/lib/src/ohos/ohos_doctor.dart | 4 ++++ packages/flutter_tools/lib/src/ohos/ohos_sdk.dart | 4 ++++ packages/flutter_tools/lib/src/ohos/ohos_workflow.dart | 4 ++++ .../src/main/ets/components/plugin/pluginClass.ets.tmpl | 5 +++++ .../test/general.shard/build_system/targets/ohos_test.dart | 4 ++++ .../test/general.shard/ohos/ohos_device_discovery_test.dart | 4 ++++ .../flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart | 4 ++++ .../test/general.shard/ohos/ohos_workflow_test.dart | 4 ++++ packages/flutter_tools/test/src/ohos_common.dart | 4 ++++ .../components/integration_test/FlutterDeviceScreenshot.ets | 4 ++++ .../components/integration_test/IntegrationTestPlugin.ets | 4 ++++ 16 files changed, 65 insertions(+) diff --git a/packages/flutter_tools/lib/src/build_system/targets/ohos.dart b/packages/flutter_tools/lib/src/build_system/targets/ohos.dart index ae8a9bd47d..e109143f14 100644 --- a/packages/flutter_tools/lib/src/build_system/targets/ohos.dart +++ b/packages/flutter_tools/lib/src/build_system/targets/ohos.dart @@ -11,6 +11,10 @@ * 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. +* +* Based on android.dart originally written by +* Copyright (C) 2019 Jonah Williams +* */ import 'package:file/file.dart'; diff --git a/packages/flutter_tools/lib/src/ohos/application_package.dart b/packages/flutter_tools/lib/src/ohos/application_package.dart index c2e2ab987a..d7cb05c32f 100644 --- a/packages/flutter_tools/lib/src/ohos/application_package.dart +++ b/packages/flutter_tools/lib/src/ohos/application_package.dart @@ -11,6 +11,10 @@ * 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. +* +* Based on application_package.dart originally written by +* Copyright (C) 2015 Ian Fischer +* */ import 'package:json5/json5.dart'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_builder.dart b/packages/flutter_tools/lib/src/ohos/ohos_builder.dart index 0e36e5036d..ca4ce7a8ab 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_builder.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_builder.dart @@ -11,6 +11,10 @@ * 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. +* +* Based on android_builder.dart originally written by +* Copyright (C) 2019 Emmanuel Garcia +* */ import '../base/context.dart'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_device.dart b/packages/flutter_tools/lib/src/ohos/ohos_device.dart index 14c90a39d2..0a2fddae37 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_device.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_device.dart @@ -11,6 +11,10 @@ * 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. +* +* Based on android_device.dart originally written by +* Copyright (C) 2016 Devon Carew +* */ import 'dart:async'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart b/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart index a410af1f48..b6418ddcec 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart @@ -11,6 +11,10 @@ * 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. +* +* Based on android_device_discovery.dart originally written by +* Copyright (C) 2020 Jonah Williams +* */ import 'package:process/process.dart'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_doctor.dart b/packages/flutter_tools/lib/src/ohos/ohos_doctor.dart index 05e9dabed7..082c50fda1 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_doctor.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_doctor.dart @@ -11,6 +11,10 @@ * 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. +* +* Based on linux_doctor.dart originally written by +* Copyright (C) 2019 Jonah Williams +* */ import 'package:process/process.dart'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_sdk.dart b/packages/flutter_tools/lib/src/ohos/ohos_sdk.dart index 0b737851bb..fcc9fe62f8 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_sdk.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_sdk.dart @@ -11,6 +11,10 @@ * 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. +* +* Based on android_sdk.dart originally written by +* Copyright (C) 2016 Devon Carew +* */ import 'dart:collection'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_workflow.dart b/packages/flutter_tools/lib/src/ohos/ohos_workflow.dart index f372aff993..b1603382d0 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_workflow.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_workflow.dart @@ -11,6 +11,10 @@ * 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. +* +* Based on android_workflow.dart originally written by +* Copyright (C) 2016 Devon Carew +* */ import '../base/context.dart'; diff --git a/packages/flutter_tools/templates/plugin/ohos.tmpl/src/main/ets/components/plugin/pluginClass.ets.tmpl b/packages/flutter_tools/templates/plugin/ohos.tmpl/src/main/ets/components/plugin/pluginClass.ets.tmpl index cc521f51b2..990595412d 100644 --- a/packages/flutter_tools/templates/plugin/ohos.tmpl/src/main/ets/components/plugin/pluginClass.ets.tmpl +++ b/packages/flutter_tools/templates/plugin/ohos.tmpl/src/main/ets/components/plugin/pluginClass.ets.tmpl @@ -1,3 +1,8 @@ +/* +* Based on pluginClass.java.tmpl originally written by +* Copyright (C) 2017 Jakob Andersen +*/ + import { FlutterPlugin, FlutterPluginBinding, diff --git a/packages/flutter_tools/test/general.shard/build_system/targets/ohos_test.dart b/packages/flutter_tools/test/general.shard/build_system/targets/ohos_test.dart index 356890262c..b5673ebb2b 100644 --- a/packages/flutter_tools/test/general.shard/build_system/targets/ohos_test.dart +++ b/packages/flutter_tools/test/general.shard/build_system/targets/ohos_test.dart @@ -11,6 +11,10 @@ * 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. + * + * Based on android_test.dart originally written by + * Copyright (C) 2019 Jonah Williams + * */ import 'package:file/memory.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart index bbf9f4ca13..7a94ebb12d 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart @@ -11,6 +11,10 @@ * 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. + * + * Based on android_device_discovery_test.dart originally written by + * Copyright (C) 2020 Jonah Williams + * */ import 'package:file/memory.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart index 1485d76f9d..0036c2753a 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart @@ -11,6 +11,10 @@ * 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. + * + * Based on android_sdk_test.dart originally written by + * Copyright (C) 2016 Devon Carew + * */ import 'package:file/memory.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart index e0cff7ef0a..b93a2bc35f 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart @@ -11,6 +11,10 @@ * 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. + * + * Based on android_sdk_test.dart originally written by + * Copyright (C) 2016 Devon Carew + * */ import 'package:flutter_tools/src/ohos/ohos_sdk.dart'; diff --git a/packages/flutter_tools/test/src/ohos_common.dart b/packages/flutter_tools/test/src/ohos_common.dart index a71e20f66e..fd3714afe4 100644 --- a/packages/flutter_tools/test/src/ohos_common.dart +++ b/packages/flutter_tools/test/src/ohos_common.dart @@ -11,6 +11,10 @@ * 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. + * + * Based on android_common.dart originally written by + * Copyright (C) 2019 Emmanuel Garcia + * */ import 'package:flutter_tools/src/base/file_system.dart'; diff --git a/packages/integration_test/ohos/src/main/ets/components/integration_test/FlutterDeviceScreenshot.ets b/packages/integration_test/ohos/src/main/ets/components/integration_test/FlutterDeviceScreenshot.ets index ea9629b059..21ce29d779 100644 --- a/packages/integration_test/ohos/src/main/ets/components/integration_test/FlutterDeviceScreenshot.ets +++ b/packages/integration_test/ohos/src/main/ets/components/integration_test/FlutterDeviceScreenshot.ets @@ -11,6 +11,10 @@ * 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. + * + * Based on FlutterDeviceScreenshot.java originally written by + * Copyright (C) 2021 Emmanuel Garcia + * */ import { MethodChannel, diff --git a/packages/integration_test/ohos/src/main/ets/components/integration_test/IntegrationTestPlugin.ets b/packages/integration_test/ohos/src/main/ets/components/integration_test/IntegrationTestPlugin.ets index 1b9bf02b13..91d5100266 100644 --- a/packages/integration_test/ohos/src/main/ets/components/integration_test/IntegrationTestPlugin.ets +++ b/packages/integration_test/ohos/src/main/ets/components/integration_test/IntegrationTestPlugin.ets @@ -11,6 +11,10 @@ * 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. + * + * Based on IntegrationTestPlugin.java originally written by + * Copyright (C) 2020 Dan Field + * */ import { -- Gitee From 4105292dfc1e66150d2df54a94d56a203402d1f7 Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Tue, 17 Dec 2024 18:49:46 +0800 Subject: [PATCH 02/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- .../entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl index 0f7f6669df..3e96b264ed 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl @@ -10,7 +10,7 @@ * 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.test */ import { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; -- Gitee From ed8a52c53f701faba669c9f67ba1e92b84b57f9c Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Wed, 18 Dec 2024 15:05:35 +0800 Subject: [PATCH 03/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart | 2 +- .../entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart b/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart index b6418ddcec..0bc053a8d7 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart @@ -13,7 +13,7 @@ * limitations under the License. * * Based on android_device_discovery.dart originally written by -* Copyright (C) 2020 Jonah Williams +* © 2020 Jonah Williams * */ diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl index 3e96b264ed..d00cadbab1 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl @@ -10,7 +10,7 @@ * 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.test +* limitations under the License */ import { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; -- Gitee From 5887f15067a8f55aab81669ce7c1e855fa0c2ca3 Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Thu, 26 Dec 2024 14:49:05 +0800 Subject: [PATCH 04/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- OAT.xml | 36 +++++++++++-------- .../lib/src/ohos/ohos_device_discovery.dart | 2 +- .../ets/entryability/EntryAbility.ets.tmpl | 2 +- 3 files changed, 24 insertions(+), 16 deletions(-) diff --git a/OAT.xml b/OAT.xml index 53cd3f5183..2e714c817b 100644 --- a/OAT.xml +++ b/OAT.xml @@ -52,6 +52,14 @@ + diff --git a/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart b/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart index 0bc053a8d7..b6418ddcec 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart @@ -13,7 +13,7 @@ * limitations under the License. * * Based on android_device_discovery.dart originally written by -* © 2020 Jonah Williams +* Copyright (C) 2020 Jonah Williams * */ diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl index d00cadbab1..0f7f6669df 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl @@ -10,7 +10,7 @@ * 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 { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; -- Gitee From c811d9186a47512a0173abff67122f5ca9e568f3 Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Wed, 8 Jan 2025 10:47:50 +0800 Subject: [PATCH 05/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- LICENSE_KHZG | 21 +++++++++++++++++++ OAT.xml | 3 ++- app_build/__init__.py | 15 +++---------- app_build/build_dill.py | 15 +++---------- app_build/config.py | 15 +++---------- app_build/debug.py | 14 +++---------- app_build/env_util.py | 15 +++---------- app_build/excute_util.py | 15 +++---------- app_build/file_util.py | 15 +++---------- app_build/release.py | 15 +++---------- .../complex_layout/ohos/build-profile.json5 | 15 ------------- .../ohos/entry/build-profile.json5 | 14 ------------- .../complex_layout/ohos/entry/hvigorfile.ts | 15 +++---------- .../ohos/entry/oh-package.json5 | 14 ------------- .../main/ets/entryability/EntryAbility.ets | 15 +++---------- .../ohos/entry/src/main/ets/pages/Index.ets | 15 +++---------- .../ohos/entry/src/main/module.json5 | 15 +------------ .../src/ohosTest/ets/test/Ability.test.ets | 15 ------------- .../entry/src/ohosTest/ets/test/List.test.ets | 15 ------------- .../ohosTest/ets/testability/TestAbility.ets | 14 ------------- .../ohosTest/ets/testability/pages/Index.ets | 14 ------------- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 +++---------- .../ohos/entry/src/ohosTest/module.json5 | 15 +------------ .../ohos/hvigor/hvigor-config.json5 | 14 ------------- .../complex_layout/ohos/hvigorfile.ts | 15 +++---------- .../complex_layout/ohos/oh-package.json5 | 14 ------------- .../macrobenchmarks/ohos/build-profile.json5 | 15 +------------ .../ohos/entry/build-profile.json5 | 15 +------------ .../macrobenchmarks/ohos/entry/hvigorfile.ts | 15 +++---------- .../ohos/entry/oh-package.json5 | 15 +------------ .../main/ets/entryability/EntryAbility.ets | 15 +++---------- .../ohos/entry/src/main/ets/pages/Index.ets | 15 +++---------- .../ohos/entry/src/main/module.json5 | 15 +------------ .../src/ohosTest/ets/test/Ability.test.ets | 14 ------------- .../entry/src/ohosTest/ets/test/List.test.ets | 14 ------------- .../ohosTest/ets/testability/TestAbility.ets | 14 ------------- .../ohosTest/ets/testability/pages/Index.ets | 14 ------------- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 +++---------- .../ohos/entry/src/ohosTest/module.json5 | 15 +------------ .../ohos/hvigor/hvigor-config.json5 | 15 +------------ .../macrobenchmarks/ohos/hvigorfile.ts | 15 +++---------- .../macrobenchmarks/ohos/oh-package.json5 | 15 +------------ .../lib/src/build_system/targets/ohos.dart | 18 +++------------- .../lib/src/commands/build_hap.dart | 15 +++---------- .../lib/src/commands/build_har.dart | 15 +++---------- .../lib/src/commands/build_hsp.dart | 15 +++---------- .../lib/src/ohos/application_package.dart | 18 +++------------- .../flutter_tools/lib/src/ohos/build_env.dart | 15 +++---------- .../lib/src/ohos/hdc_server.dart | 15 +++---------- .../flutter_tools/lib/src/ohos/hvigor.dart | 15 +++---------- .../lib/src/ohos/hvigor_utils.dart | 15 +++---------- .../lib/src/ohos/ohos_builder.dart | 18 +++------------- .../lib/src/ohos/ohos_device.dart | 18 +++------------- .../lib/src/ohos/ohos_device_discovery.dart | 18 +++------------- .../lib/src/ohos/ohos_doctor.dart | 18 +++------------- .../lib/src/ohos/ohos_plugins_manager.dart | 15 +++---------- .../flutter_tools/lib/src/ohos/ohos_sdk.dart | 19 +++-------------- .../lib/src/ohos/ohos_workflow.dart | 19 +++-------------- .../ohos.tmpl/build-profile.json5.tmpl | 15 +------------ .../ohos.tmpl/entry/build-profile.json5.tmpl | 14 ------------- .../ohos.tmpl/entry/hvigorfile.ts.tmpl | 15 +++---------- .../ohos.tmpl/entry/oh-package.json5.tmpl | 15 +++---------- .../ets/entryability/EntryAbility.ets.tmpl | 14 ------------- .../entry/src/main/ets/pages/Index.ets.tmpl | 14 ------------- .../ohos.tmpl/entry/src/main/module.json5 | 15 +------------ .../src/ohosTest/ets/test/Ability.test.ets | 15 ------------- .../entry/src/ohosTest/ets/test/List.test.ets | 15 ------------- .../ohosTest/ets/testability/TestAbility.ets | 15 ------------- .../ohosTest/ets/testability/pages/Index.ets | 15 +++---------- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 +++---------- .../entry/src/ohosTest/module.json5.tmpl | 15 +++---------- .../ohos.tmpl/hvigor/hvigor-config.json5.tmpl | 14 ------------- .../app_shared/ohos.tmpl/hvigorfile.ts.tmpl | 15 +++---------- .../ohos.tmpl/oh-package.json5.tmpl | 15 +++---------- .../host_app_common/build-profile.json5.tmpl | 15 ------------- .../entry.tmpl/build-profile.json5.tmpl | 14 ------------- .../entry.tmpl/hvigorfile.ts.tmpl | 14 ------------- .../entry.tmpl/oh-package.json5.tmpl | 14 ------------- .../ets/entryability/EntryAbility.ets.tmpl | 14 ------------- .../src/main/ets/pages/Index.ets.tmpl | 14 ------------- .../entry.tmpl/src/main/module.json5 | 15 +------------ .../src/ohosTest/ets/test/Ability.test.ets | 14 ------------- .../src/ohosTest/ets/test/List.test.ets | 15 +------------ .../ohosTest/ets/testability/TestAbility.ets | 15 +------------ .../ohosTest/ets/testability/pages/Index.ets | 15 +++---------- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 +++---------- .../entry.tmpl/src/ohosTest/module.json5.tmpl | 14 ------------- .../ohos/host_config/build-profile.json5.tmpl | 14 ------------- .../ohos/host_config/oh-package.json5.tmpl | 14 ------------- .../hvigor/hvigor-config.json5.tmpl | 14 ------------- .../ohos/hvigor_plugin/hvigorfile.ts.tmpl | 15 +++---------- .../build-profile.json5.tmpl | 15 +------------ .../flutter_module.tmpl/hvigorfile.ts.tmpl | 15 +++---------- .../flutter_module.tmpl/index.ets | 15 +++---------- .../flutter_module.tmpl/oh-package.json5.tmpl | 14 ------------- .../flutter_module.tmpl/src/main/module.json5 | 15 +------------ .../templates/plugin/ohos.tmpl/index.ets.tmpl | 14 ------------- .../components/plugin/pluginClass.ets.tmpl | 5 ----- .../permeable/build_app_test.dart | 17 +++------------ .../permeable/build_hap_test.dart | 15 +++---------- .../permeable/build_har_test.dart | 15 +++---------- .../permeable/build_hsp_test.dart | 15 +++---------- .../build_system/targets/ohos_test.dart | 21 +++---------------- .../general.shard/ohos/hdc_server_test.dart | 14 ------------- .../test/general.shard/ohos/hvigor_test.dart | 15 +------------ .../general.shard/ohos/hvigor_utils_test.dart | 14 ------------- .../ohos/ohos_application_package_test.dart | 15 +------------ .../ohos/ohos_device_discovery_test.dart | 19 +---------------- .../general.shard/ohos/ohos_device_test.dart | 15 +------------ .../general.shard/ohos/ohos_doctor_test.dart | 14 ------------- .../ohos/ohos_plugins_manager_test.dart | 15 +------------ .../general.shard/ohos/ohos_sdk_test.dart | 19 +---------------- .../ohos/ohos_workflow_test.dart | 19 +---------------- .../flutter_tools/test/src/ohos_common.dart | 18 +++------------- .../example/ohos/entry/build-profile.json5 | 15 +------------ .../example/ohos/entry/hvigorfile.ts | 15 +++---------- .../main/ets/entryability/EntryAbility.ets | 15 +++---------- .../ohos/entry/src/main/ets/pages/Index.ets | 15 +++---------- .../example/ohos/entry/src/main/module.json5 | 15 +------------ .../src/ohosTest/ets/test/Ability.test.ets | 14 ------------- .../entry/src/ohosTest/ets/test/List.test.ets | 14 ------------- .../ohosTest/ets/testability/TestAbility.ets | 14 ------------- .../ohosTest/ets/testability/pages/Index.ets | 15 +++---------- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 +++---------- .../ohos/entry/src/ohosTest/module.json5 | 15 +------------ .../example/ohos/hvigor/hvigor-config.json5 | 15 +------------ .../example/ohos/hvigorfile.ts | 15 +++---------- packages/integration_test/ohos/Index.ets | 19 +++++------------ .../FlutterDeviceScreenshot.ets | 18 +++------------- .../IntegrationTestPlugin.ets | 18 +++------------- .../ohos/src/test/List.test.ets | 15 +------------ 131 files changed, 236 insertions(+), 1739 deletions(-) create mode 100644 LICENSE_KHZG diff --git a/LICENSE_KHZG b/LICENSE_KHZG new file mode 100644 index 0000000000..452a23994b --- /dev/null +++ b/LICENSE_KHZG @@ -0,0 +1,21 @@ +Copyright 2023 Hunan OpenValley Digital Industry Development Co., Ltd. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided with the distribution. + + * Neither the name of Hunan OpenValley Digital Industry Development Co., Ltd. nor the names of its contributors may be + used to endorse or promote products derived from this software without specific prior written permission. + +NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/OAT.xml b/OAT.xml index 2e714c817b..09f239414f 100644 --- a/OAT.xml +++ b/OAT.xml @@ -133,10 +133,11 @@ - + + diff --git a/app_build/__init__.py b/app_build/__init__.py index 8a0d2b732f..5513928de6 100644 --- a/app_build/__init__.py +++ b/app_build/__init__.py @@ -1,12 +1,3 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file. diff --git a/app_build/build_dill.py b/app_build/build_dill.py index a26e6cfaea..24af312de3 100644 --- a/app_build/build_dill.py +++ b/app_build/build_dill.py @@ -1,15 +1,6 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file. #!/usr/bin/python import excute_util diff --git a/app_build/config.py b/app_build/config.py index 322241ac8b..2c4a366136 100644 --- a/app_build/config.py +++ b/app_build/config.py @@ -1,15 +1,6 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file. #!/usr/bin/python import sys diff --git a/app_build/debug.py b/app_build/debug.py index 350ae37213..d085e3c6af 100644 --- a/app_build/debug.py +++ b/app_build/debug.py @@ -1,14 +1,6 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file.language governing permissions and # limitations under the License. #!/usr/bin/python diff --git a/app_build/env_util.py b/app_build/env_util.py index 8fbc139d88..0a62ad92d1 100644 --- a/app_build/env_util.py +++ b/app_build/env_util.py @@ -1,15 +1,6 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file. #!/usr/bin/python import os diff --git a/app_build/excute_util.py b/app_build/excute_util.py index 6dbd289833..f2221de74b 100644 --- a/app_build/excute_util.py +++ b/app_build/excute_util.py @@ -1,15 +1,6 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file. import subprocess from datetime import datetime diff --git a/app_build/file_util.py b/app_build/file_util.py index 0189665f06..d51a82478b 100644 --- a/app_build/file_util.py +++ b/app_build/file_util.py @@ -1,15 +1,6 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file. #!/usr/bin/python import shutil diff --git a/app_build/release.py b/app_build/release.py index 62427c3eee..6241064c3c 100644 --- a/app_build/release.py +++ b/app_build/release.py @@ -1,15 +1,6 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file. #!/usr/bin/python import config diff --git a/dev/benchmarks/complex_layout/ohos/build-profile.json5 b/dev/benchmarks/complex_layout/ohos/build-profile.json5 index 7ceb22efee..8938b90e0f 100644 --- a/dev/benchmarks/complex_layout/ohos/build-profile.json5 +++ b/dev/benchmarks/complex_layout/ohos/build-profile.json5 @@ -1,18 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ - { "app": { "signingConfigs": [], diff --git a/dev/benchmarks/complex_layout/ohos/entry/build-profile.json5 b/dev/benchmarks/complex_layout/ohos/entry/build-profile.json5 index 633d360fbc..6de31ee224 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/build-profile.json5 +++ b/dev/benchmarks/complex_layout/ohos/entry/build-profile.json5 @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "apiType": 'stageMode', diff --git a/dev/benchmarks/complex_layout/ohos/entry/hvigorfile.ts b/dev/benchmarks/complex_layout/ohos/entry/hvigorfile.ts index 894fc15c6b..8c73fe7ecd 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/hvigorfile.ts +++ b/dev/benchmarks/complex_layout/ohos/entry/hvigorfile.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. diff --git a/dev/benchmarks/complex_layout/ohos/entry/oh-package.json5 b/dev/benchmarks/complex_layout/ohos/entry/oh-package.json5 index dabaee1315..80aa77e3db 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/oh-package.json5 +++ b/dev/benchmarks/complex_layout/ohos/entry/oh-package.json5 @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "name": "entry", diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/entryability/EntryAbility.ets index 8bc48be877..f99d5d0a17 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/pages/Index.ets b/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/pages/Index.ets index 1125f9fdd9..45af41b576 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/pages/Index.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/pages/Index.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import common from '@ohos.app.ability.common'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/main/module.json5 b/dev/benchmarks/complex_layout/ohos/entry/src/main/module.json5 index 7bbf78b18f..5bd7950ba5 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/main/module.json5 +++ b/dev/benchmarks/complex_layout/ohos/entry/src/main/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { "name": "entry", diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/Ability.test.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/Ability.test.ets index 25d4c71ff3..8abf7f2f44 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,18 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/List.test.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/List.test.ets index f4140030e6..d766fe249d 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/List.test.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/List.test.ets @@ -1,18 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' export default function testsuite() { diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets index 4ca645e601..42fcf69c98 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets index cef0447cd2..6466fb9197 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 1def08f2e9..8b02fe38cf 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import hilog from '@ohos.hilog'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/module.json5 b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/module.json5 index fab77ce2e0..e29411f46a 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/module.json5 +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { diff --git a/dev/benchmarks/complex_layout/ohos/hvigor/hvigor-config.json5 b/dev/benchmarks/complex_layout/ohos/hvigor/hvigor-config.json5 index 541ba35711..e7b855ac20 100644 --- a/dev/benchmarks/complex_layout/ohos/hvigor/hvigor-config.json5 +++ b/dev/benchmarks/complex_layout/ohos/hvigor/hvigor-config.json5 @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "modelVersion": "5.0.0", diff --git a/dev/benchmarks/complex_layout/ohos/hvigorfile.ts b/dev/benchmarks/complex_layout/ohos/hvigorfile.ts index 8f2d2aafe6..dc3689cac5 100644 --- a/dev/benchmarks/complex_layout/ohos/hvigorfile.ts +++ b/dev/benchmarks/complex_layout/ohos/hvigorfile.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/dev/benchmarks/complex_layout/ohos/oh-package.json5 b/dev/benchmarks/complex_layout/ohos/oh-package.json5 index 0547594c0d..d0d5dd2e6f 100644 --- a/dev/benchmarks/complex_layout/ohos/oh-package.json5 +++ b/dev/benchmarks/complex_layout/ohos/oh-package.json5 @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "modelVersion": "5.0.0", diff --git a/dev/benchmarks/macrobenchmarks/ohos/build-profile.json5 b/dev/benchmarks/macrobenchmarks/ohos/build-profile.json5 index 5fcb3dc466..e7ef02284e 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/build-profile.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/build-profile.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "app": { diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/build-profile.json5 b/dev/benchmarks/macrobenchmarks/ohos/entry/build-profile.json5 index 633d360fbc..11a8dca6f9 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/build-profile.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/build-profile.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "apiType": 'stageMode', diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/hvigorfile.ts b/dev/benchmarks/macrobenchmarks/ohos/entry/hvigorfile.ts index 894fc15c6b..8c73fe7ecd 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/hvigorfile.ts +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/hvigorfile.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/oh-package.json5 b/dev/benchmarks/macrobenchmarks/ohos/entry/oh-package.json5 index dabaee1315..ecce1057f9 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/oh-package.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/oh-package.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "name": "entry", diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/entryability/EntryAbility.ets index 8bc48be877..f99d5d0a17 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/pages/Index.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/pages/Index.ets index 1125f9fdd9..45af41b576 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/pages/Index.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/pages/Index.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import common from '@ohos.app.ability.common'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/module.json5 b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/module.json5 index 7bbf78b18f..5bd7950ba5 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/module.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { "name": "entry", diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/Ability.test.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/Ability.test.ets index 25d4c71ff3..fefeb6ea18 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/List.test.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/List.test.ets index f4140030e6..348ab4ea9e 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/List.test.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/List.test.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets index 4ca645e601..42fcf69c98 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets index cef0447cd2..6466fb9197 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 1def08f2e9..8b02fe38cf 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import hilog from '@ohos.hilog'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/module.json5 b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/module.json5 index fab77ce2e0..e29411f46a 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/module.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { diff --git a/dev/benchmarks/macrobenchmarks/ohos/hvigor/hvigor-config.json5 b/dev/benchmarks/macrobenchmarks/ohos/hvigor/hvigor-config.json5 index 541ba35711..0e35b0d60f 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/hvigor/hvigor-config.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/hvigor/hvigor-config.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "modelVersion": "5.0.0", diff --git a/dev/benchmarks/macrobenchmarks/ohos/hvigorfile.ts b/dev/benchmarks/macrobenchmarks/ohos/hvigorfile.ts index 8f2d2aafe6..dc3689cac5 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/hvigorfile.ts +++ b/dev/benchmarks/macrobenchmarks/ohos/hvigorfile.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/oh-package.json5 b/dev/benchmarks/macrobenchmarks/ohos/oh-package.json5 index c640999ec2..c341a8f271 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/oh-package.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/oh-package.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "modelVersion": "5.0.0", diff --git a/packages/flutter_tools/lib/src/build_system/targets/ohos.dart b/packages/flutter_tools/lib/src/build_system/targets/ohos.dart index e109143f14..8667a262e2 100644 --- a/packages/flutter_tools/lib/src/build_system/targets/ohos.dart +++ b/packages/flutter_tools/lib/src/build_system/targets/ohos.dart @@ -1,19 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -* -* Based on android.dart originally written by -* Copyright (C) 2019 Jonah Williams +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. * */ diff --git a/packages/flutter_tools/lib/src/commands/build_hap.dart b/packages/flutter_tools/lib/src/commands/build_hap.dart index 4adc519d22..20c3aa3074 100644 --- a/packages/flutter_tools/lib/src/commands/build_hap.dart +++ b/packages/flutter_tools/lib/src/commands/build_hap.dart @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import '../build_info.dart'; diff --git a/packages/flutter_tools/lib/src/commands/build_har.dart b/packages/flutter_tools/lib/src/commands/build_har.dart index 0edbc0fc80..5e9a90dbba 100644 --- a/packages/flutter_tools/lib/src/commands/build_har.dart +++ b/packages/flutter_tools/lib/src/commands/build_har.dart @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import '../build_info.dart'; diff --git a/packages/flutter_tools/lib/src/commands/build_hsp.dart b/packages/flutter_tools/lib/src/commands/build_hsp.dart index 9b8137409e..f68f1aeb75 100644 --- a/packages/flutter_tools/lib/src/commands/build_hsp.dart +++ b/packages/flutter_tools/lib/src/commands/build_hsp.dart @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import '../build_info.dart'; diff --git a/packages/flutter_tools/lib/src/ohos/application_package.dart b/packages/flutter_tools/lib/src/ohos/application_package.dart index d7cb05c32f..6cb1cd48e5 100644 --- a/packages/flutter_tools/lib/src/ohos/application_package.dart +++ b/packages/flutter_tools/lib/src/ohos/application_package.dart @@ -1,19 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -* -* Based on application_package.dart originally written by -* Copyright (C) 2015 Ian Fischer +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. * */ diff --git a/packages/flutter_tools/lib/src/ohos/build_env.dart b/packages/flutter_tools/lib/src/ohos/build_env.dart index e38dc143cd..b5b07e5af0 100644 --- a/packages/flutter_tools/lib/src/ohos/build_env.dart +++ b/packages/flutter_tools/lib/src/ohos/build_env.dart @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ diff --git a/packages/flutter_tools/lib/src/ohos/hdc_server.dart b/packages/flutter_tools/lib/src/ohos/hdc_server.dart index 5748f09e08..5569907512 100644 --- a/packages/flutter_tools/lib/src/ohos/hdc_server.dart +++ b/packages/flutter_tools/lib/src/ohos/hdc_server.dart @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import 'dart:io'; diff --git a/packages/flutter_tools/lib/src/ohos/hvigor.dart b/packages/flutter_tools/lib/src/ohos/hvigor.dart index 99e0560836..e184ea49a9 100644 --- a/packages/flutter_tools/lib/src/ohos/hvigor.dart +++ b/packages/flutter_tools/lib/src/ohos/hvigor.dart @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import 'dart:convert'; diff --git a/packages/flutter_tools/lib/src/ohos/hvigor_utils.dart b/packages/flutter_tools/lib/src/ohos/hvigor_utils.dart index ea3fa101af..af2a670ff0 100644 --- a/packages/flutter_tools/lib/src/ohos/hvigor_utils.dart +++ b/packages/flutter_tools/lib/src/ohos/hvigor_utils.dart @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import 'dart:convert'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_builder.dart b/packages/flutter_tools/lib/src/ohos/ohos_builder.dart index ca4ce7a8ab..21f8d6adb7 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_builder.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_builder.dart @@ -1,19 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -* -* Based on android_builder.dart originally written by -* Copyright (C) 2019 Emmanuel Garcia +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. * */ diff --git a/packages/flutter_tools/lib/src/ohos/ohos_device.dart b/packages/flutter_tools/lib/src/ohos/ohos_device.dart index 0a2fddae37..f450b4fd98 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_device.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_device.dart @@ -1,19 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -* -* Based on android_device.dart originally written by -* Copyright (C) 2016 Devon Carew +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. * */ diff --git a/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart b/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart index b6418ddcec..a700dc448e 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_device_discovery.dart @@ -1,19 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -* -* Based on android_device_discovery.dart originally written by -* Copyright (C) 2020 Jonah Williams +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. * */ diff --git a/packages/flutter_tools/lib/src/ohos/ohos_doctor.dart b/packages/flutter_tools/lib/src/ohos/ohos_doctor.dart index 082c50fda1..74d0d12366 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_doctor.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_doctor.dart @@ -1,19 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -* -* Based on linux_doctor.dart originally written by -* Copyright (C) 2019 Jonah Williams +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. * */ diff --git a/packages/flutter_tools/lib/src/ohos/ohos_plugins_manager.dart b/packages/flutter_tools/lib/src/ohos/ohos_plugins_manager.dart index 574df42646..c0a4dd2224 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_plugins_manager.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_plugins_manager.dart @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. */ import 'dart:convert'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_sdk.dart b/packages/flutter_tools/lib/src/ohos/ohos_sdk.dart index fcc9fe62f8..1ca050d7a9 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_sdk.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_sdk.dart @@ -1,20 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -* -* Based on android_sdk.dart originally written by -* Copyright (C) 2016 Devon Carew -* +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. */ import 'dart:collection'; diff --git a/packages/flutter_tools/lib/src/ohos/ohos_workflow.dart b/packages/flutter_tools/lib/src/ohos/ohos_workflow.dart index b1603382d0..fd67140142 100644 --- a/packages/flutter_tools/lib/src/ohos/ohos_workflow.dart +++ b/packages/flutter_tools/lib/src/ohos/ohos_workflow.dart @@ -1,20 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -* -* Based on android_workflow.dart originally written by -* Copyright (C) 2016 Devon Carew -* +* Copyright 2014 The Flutter Authors. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE file. */ import '../base/context.dart'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/build-profile.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/build-profile.json5.tmpl index 0d8b167e6c..1d8b56bd87 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/build-profile.json5.tmpl @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "app": { diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/build-profile.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/build-profile.json5.tmpl index 633d360fbc..6de31ee224 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/build-profile.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "apiType": 'stageMode', diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/hvigorfile.ts.tmpl index 894fc15c6b..8c73fe7ecd 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/hvigorfile.ts.tmpl @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/oh-package.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/oh-package.json5.tmpl index dabaee1315..d0e6a68b31 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/oh-package.json5.tmpl @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ { diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/entryability/EntryAbility.ets.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/entryability/EntryAbility.ets.tmpl index 8bc48be877..f85a65508a 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/entryability/EntryAbility.ets.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/entryability/EntryAbility.ets.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; import { GeneratedPluginRegistrant } from '../plugins/GeneratedPluginRegistrant'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/pages/Index.ets.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/pages/Index.ets.tmpl index 1125f9fdd9..7bb6543fe7 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/pages/Index.ets.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/pages/Index.ets.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 common from '@ohos.app.ability.common'; import { FlutterPage } from '@ohos/flutter_ohos' diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/module.json5 b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/module.json5 index 7bbf78b18f..5bd7950ba5 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/module.json5 +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { "name": "entry", diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/Ability.test.ets b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/Ability.test.ets index 25d4c71ff3..8abf7f2f44 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,18 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/List.test.ets b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/List.test.ets index f4140030e6..d766fe249d 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/List.test.ets +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/List.test.ets @@ -1,18 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' export default function testsuite() { diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/TestAbility.ets b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/TestAbility.ets index 4ca645e601..e3f6e911d3 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,18 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/pages/Index.ets b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/pages/Index.ets index cef0447cd2..5942443207 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import hilog from '@ohos.hilog'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 1def08f2e9..8b02fe38cf 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import hilog from '@ohos.hilog'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/module.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/module.json5.tmpl index fab77ce2e0..7e88ff7ccc 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/module.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/module.json5.tmpl @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ { diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigor/hvigor-config.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigor/hvigor-config.json5.tmpl index 541ba35711..e7b855ac20 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigor/hvigor-config.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigor/hvigor-config.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "modelVersion": "5.0.0", diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigorfile.ts.tmpl index 8f2d2aafe6..dc3689cac5 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigorfile.ts.tmpl @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/oh-package.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/oh-package.json5.tmpl index a5bc0bec4b..8f51f697f8 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/oh-package.json5.tmpl @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ { diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/build-profile.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/build-profile.json5.tmpl index 75b957106e..aebb05d26a 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/build-profile.json5.tmpl @@ -1,18 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ - { "app": { "signingConfigs": [], diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/build-profile.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/build-profile.json5.tmpl index 633d360fbc..6de31ee224 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/build-profile.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "apiType": 'stageMode', diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/hvigorfile.ts.tmpl index 894fc15c6b..98b5db417e 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/hvigorfile.ts.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. export { hapTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/oh-package.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/oh-package.json5.tmpl index 6f7b62b27e..a5bfaf0e62 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/oh-package.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "name": "entry", diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl index 0f7f6669df..08dc3c6dcb 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; import { GeneratedPluginRegistrant } from '@ohos/flutter_module'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/pages/Index.ets.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/pages/Index.ets.tmpl index 1125f9fdd9..7bb6543fe7 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/pages/Index.ets.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/pages/Index.ets.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 common from '@ohos.app.ability.common'; import { FlutterPage } from '@ohos/flutter_ohos' diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/module.json5 b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/module.json5 index 156fac615e..809307d2e1 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/module.json5 +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { "name": "entry", diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/Ability.test.ets b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/Ability.test.ets index 25d4c71ff3..fefeb6ea18 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/Ability.test.ets +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/Ability.test.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/List.test.ets b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/List.test.ets index f4140030e6..073c11f4d5 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/List.test.ets +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/List.test.ets @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/TestAbility.ets b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/TestAbility.ets index 4ca645e601..242b0c6c21 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/TestAbility.ets +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/TestAbility.ets @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/pages/Index.ets b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/pages/Index.ets index cef0447cd2..5942443207 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/pages/Index.ets +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/pages/Index.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import hilog from '@ohos.hilog'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 1def08f2e9..8b02fe38cf 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import hilog from '@ohos.hilog'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/module.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/module.json5.tmpl index fab77ce2e0..3b02a75a22 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/module.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/module.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "module": { diff --git a/packages/flutter_tools/templates/module/ohos/host_config/build-profile.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_config/build-profile.json5.tmpl index 0de1d44b66..c129d89c4d 100644 --- a/packages/flutter_tools/templates/module/ohos/host_config/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_config/build-profile.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "app": { diff --git a/packages/flutter_tools/templates/module/ohos/host_config/oh-package.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_config/oh-package.json5.tmpl index 38968fc7e4..0db77d9a26 100644 --- a/packages/flutter_tools/templates/module/ohos/host_config/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_config/oh-package.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "modelVersion": "5.0.0", diff --git a/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigor/hvigor-config.json5.tmpl b/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigor/hvigor-config.json5.tmpl index 541ba35711..e7b855ac20 100644 --- a/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigor/hvigor-config.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigor/hvigor-config.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "modelVersion": "5.0.0", diff --git a/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigorfile.ts.tmpl index 8f2d2aafe6..dc3689cac5 100644 --- a/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigorfile.ts.tmpl @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/build-profile.json5.tmpl b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/build-profile.json5.tmpl index 633d360fbc..11a8dca6f9 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/build-profile.json5.tmpl @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "apiType": 'stageMode', diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/hvigorfile.ts.tmpl index d3aba127d6..00b0bc719c 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/hvigorfile.ts.tmpl @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { harTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/index.ets b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/index.ets index ee4e374b29..b90535efc0 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/index.ets +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/index.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ export { GeneratedPluginRegistrant } from './src/main/ets/plugins/GeneratedPluginRegistrant' \ No newline at end of file diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/oh-package.json5.tmpl b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/oh-package.json5.tmpl index 1fa6a4dfea..f16bb33f6f 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/oh-package.json5.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ { "name": "@ohos/flutter_module", diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/src/main/module.json5 b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/src/main/module.json5 index 81d88ba3a3..61b1982a96 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/src/main/module.json5 +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/src/main/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { "name": "flutter_module", diff --git a/packages/flutter_tools/templates/plugin/ohos.tmpl/index.ets.tmpl b/packages/flutter_tools/templates/plugin/ohos.tmpl/index.ets.tmpl index a4d4c30b47..8c3ee5813e 100644 --- a/packages/flutter_tools/templates/plugin/ohos.tmpl/index.ets.tmpl +++ b/packages/flutter_tools/templates/plugin/ohos.tmpl/index.ets.tmpl @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 {{pluginClass}} from './src/main/ets/components/plugin/{{pluginClass}}'; export default {{pluginClass}}; diff --git a/packages/flutter_tools/templates/plugin/ohos.tmpl/src/main/ets/components/plugin/pluginClass.ets.tmpl b/packages/flutter_tools/templates/plugin/ohos.tmpl/src/main/ets/components/plugin/pluginClass.ets.tmpl index 990595412d..cc521f51b2 100644 --- a/packages/flutter_tools/templates/plugin/ohos.tmpl/src/main/ets/components/plugin/pluginClass.ets.tmpl +++ b/packages/flutter_tools/templates/plugin/ohos.tmpl/src/main/ets/components/plugin/pluginClass.ets.tmpl @@ -1,8 +1,3 @@ -/* -* Based on pluginClass.java.tmpl originally written by -* Copyright (C) 2017 Jakob Andersen -*/ - import { FlutterPlugin, FlutterPluginBinding, diff --git a/packages/flutter_tools/test/commands.shard/permeable/build_app_test.dart b/packages/flutter_tools/test/commands.shard/permeable/build_app_test.dart index 9428c2e25d..0ee01a5d99 100644 --- a/packages/flutter_tools/test/commands.shard/permeable/build_app_test.dart +++ b/packages/flutter_tools/test/commands.shard/permeable/build_app_test.dart @@ -1,17 +1,6 @@ -/* - * Copyright (C) 2024 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. - */ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. import 'package:args/command_runner.dart'; import 'package:flutter_tools/src/base/file_system.dart'; diff --git a/packages/flutter_tools/test/commands.shard/permeable/build_hap_test.dart b/packages/flutter_tools/test/commands.shard/permeable/build_hap_test.dart index aa20b8a512..42739bbbfa 100644 --- a/packages/flutter_tools/test/commands.shard/permeable/build_hap_test.dart +++ b/packages/flutter_tools/test/commands.shard/permeable/build_hap_test.dart @@ -1,16 +1,7 @@ /* - * Copyright (C) 2024 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. + * Copyright 2014 The Flutter Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ import 'package:args/args.dart'; diff --git a/packages/flutter_tools/test/commands.shard/permeable/build_har_test.dart b/packages/flutter_tools/test/commands.shard/permeable/build_har_test.dart index faa443cc54..f2847a70fd 100644 --- a/packages/flutter_tools/test/commands.shard/permeable/build_har_test.dart +++ b/packages/flutter_tools/test/commands.shard/permeable/build_har_test.dart @@ -1,16 +1,7 @@ /* - * Copyright (C) 2024 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. + * Copyright 2014 The Flutter Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ import 'package:args/command_runner.dart'; diff --git a/packages/flutter_tools/test/commands.shard/permeable/build_hsp_test.dart b/packages/flutter_tools/test/commands.shard/permeable/build_hsp_test.dart index 047e42d7ae..776bd2e3ba 100644 --- a/packages/flutter_tools/test/commands.shard/permeable/build_hsp_test.dart +++ b/packages/flutter_tools/test/commands.shard/permeable/build_hsp_test.dart @@ -1,16 +1,7 @@ /* - * Copyright (C) 2024 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. + * Copyright 2014 The Flutter Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ import 'package:args/command_runner.dart'; diff --git a/packages/flutter_tools/test/general.shard/build_system/targets/ohos_test.dart b/packages/flutter_tools/test/general.shard/build_system/targets/ohos_test.dart index b5673ebb2b..2a700d7b4e 100644 --- a/packages/flutter_tools/test/general.shard/build_system/targets/ohos_test.dart +++ b/packages/flutter_tools/test/general.shard/build_system/targets/ohos_test.dart @@ -1,21 +1,6 @@ -/* - * Copyright (C) 2024 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. - * - * Based on android_test.dart originally written by - * Copyright (C) 2019 Jonah Williams - * - */ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. import 'package:file/memory.dart'; import 'package:file_testing/file_testing.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/hdc_server_test.dart b/packages/flutter_tools/test/general.shard/ohos/hdc_server_test.dart index 042aef1030..f887685b5b 100644 --- a/packages/flutter_tools/test/general.shard/ohos/hdc_server_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/hdc_server_test.dart @@ -1,17 +1,3 @@ -/* - * Copyright (C) 2024 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 'package:flutter_tools/src/ohos/hdc_server.dart'; import 'package:flutter_tools/src/ohos/ohos_sdk.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/hvigor_test.dart b/packages/flutter_tools/test/general.shard/ohos/hvigor_test.dart index 3ac7d9501d..63ead16ddb 100644 --- a/packages/flutter_tools/test/general.shard/ohos/hvigor_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/hvigor_test.dart @@ -1,17 +1,4 @@ -/* - * Copyright (C) 2024 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 'dart:async'; import 'dart:convert'; diff --git a/packages/flutter_tools/test/general.shard/ohos/hvigor_utils_test.dart b/packages/flutter_tools/test/general.shard/ohos/hvigor_utils_test.dart index deb9499ef4..8e8cd29f12 100644 --- a/packages/flutter_tools/test/general.shard/ohos/hvigor_utils_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/hvigor_utils_test.dart @@ -1,17 +1,3 @@ -/* - * Copyright (C) 2024 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 'package:file/file.dart'; import 'package:flutter_tools/src/convert.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_application_package_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_application_package_test.dart index ce010cb8b2..c1379cd345 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_application_package_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_application_package_test.dart @@ -1,17 +1,4 @@ -/* - * Copyright (C) 2024 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 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart index 7a94ebb12d..0548ea29b5 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart @@ -1,21 +1,4 @@ -/* - * Copyright (C) 2024 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. - * - * Based on android_device_discovery_test.dart originally written by - * Copyright (C) 2020 Jonah Williams - * - */ + import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/logger.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_device_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_device_test.dart index c0c915b78f..580c9621da 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_device_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_device_test.dart @@ -1,17 +1,4 @@ -/* - * Copyright (C) 2024 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 'package:flutter_tools/src/application_package.dart'; import 'package:flutter_tools/src/ohos/ohos_device.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_doctor_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_doctor_test.dart index 357363336c..03564e677d 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_doctor_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_doctor_test.dart @@ -1,17 +1,3 @@ -/* - * Copyright (C) 2024 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 'package:file/memory.dart'; import 'package:flutter_tools/src/base/config.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_plugins_manager_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_plugins_manager_test.dart index de4ceb5064..ce8723adeb 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_plugins_manager_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_plugins_manager_test.dart @@ -1,17 +1,4 @@ -/* - * Copyright (C) 2024 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 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart index 0036c2753a..e65cb789bf 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart @@ -1,21 +1,4 @@ -/* - * Copyright (C) 2024 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. - * - * Based on android_sdk_test.dart originally written by - * Copyright (C) 2016 Devon Carew - * - */ + import 'package:file/memory.dart'; import 'package:flutter_tools/src/base/config.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart index b93a2bc35f..22e36f4f9c 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart @@ -1,21 +1,4 @@ -/* - * Copyright (C) 2024 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. - * - * Based on android_sdk_test.dart originally written by - * Copyright (C) 2016 Devon Carew - * - */ + import 'package:flutter_tools/src/ohos/ohos_sdk.dart'; import 'package:flutter_tools/src/ohos/ohos_workflow.dart'; diff --git a/packages/flutter_tools/test/src/ohos_common.dart b/packages/flutter_tools/test/src/ohos_common.dart index fd3714afe4..900a3b728c 100644 --- a/packages/flutter_tools/test/src/ohos_common.dart +++ b/packages/flutter_tools/test/src/ohos_common.dart @@ -1,19 +1,7 @@ /* - * Copyright (C) 2024 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. - * - * Based on android_common.dart originally written by - * Copyright (C) 2019 Emmanuel Garcia + * Copyright 2014 The Flutter Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. * */ diff --git a/packages/integration_test/example/ohos/entry/build-profile.json5 b/packages/integration_test/example/ohos/entry/build-profile.json5 index 633d360fbc..11a8dca6f9 100644 --- a/packages/integration_test/example/ohos/entry/build-profile.json5 +++ b/packages/integration_test/example/ohos/entry/build-profile.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "apiType": 'stageMode', diff --git a/packages/integration_test/example/ohos/entry/hvigorfile.ts b/packages/integration_test/example/ohos/entry/hvigorfile.ts index 894fc15c6b..8c73fe7ecd 100644 --- a/packages/integration_test/example/ohos/entry/hvigorfile.ts +++ b/packages/integration_test/example/ohos/entry/hvigorfile.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. diff --git a/packages/integration_test/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/packages/integration_test/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets index 8bc48be877..f99d5d0a17 100644 --- a/packages/integration_test/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/packages/integration_test/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; diff --git a/packages/integration_test/example/ohos/entry/src/main/ets/pages/Index.ets b/packages/integration_test/example/ohos/entry/src/main/ets/pages/Index.ets index ac2b5dc723..912710312d 100644 --- a/packages/integration_test/example/ohos/entry/src/main/ets/pages/Index.ets +++ b/packages/integration_test/example/ohos/entry/src/main/ets/pages/Index.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import common from '@ohos.app.ability.common'; diff --git a/packages/integration_test/example/ohos/entry/src/main/module.json5 b/packages/integration_test/example/ohos/entry/src/main/module.json5 index 7bbf78b18f..5bd7950ba5 100644 --- a/packages/integration_test/example/ohos/entry/src/main/module.json5 +++ b/packages/integration_test/example/ohos/entry/src/main/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { "name": "entry", diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets index 25d4c71ff3..fefeb6ea18 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/List.test.ets b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/List.test.ets index f4140030e6..348ab4ea9e 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/List.test.ets +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/List.test.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets index 4ca645e601..42fcf69c98 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,17 +1,3 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets index cef0447cd2..5942443207 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import hilog from '@ohos.hilog'; diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 1def08f2e9..8b02fe38cf 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import hilog from '@ohos.hilog'; diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/module.json5 b/packages/integration_test/example/ohos/entry/src/ohosTest/module.json5 index fab77ce2e0..e29411f46a 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/module.json5 +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/module.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "module": { diff --git a/packages/integration_test/example/ohos/hvigor/hvigor-config.json5 b/packages/integration_test/example/ohos/hvigor/hvigor-config.json5 index 541ba35711..0e35b0d60f 100644 --- a/packages/integration_test/example/ohos/hvigor/hvigor-config.json5 +++ b/packages/integration_test/example/ohos/hvigor/hvigor-config.json5 @@ -1,17 +1,4 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. -*/ + { "modelVersion": "5.0.0", diff --git a/packages/integration_test/example/ohos/hvigorfile.ts b/packages/integration_test/example/ohos/hvigorfile.ts index 8f2d2aafe6..dc3689cac5 100644 --- a/packages/integration_test/example/ohos/hvigorfile.ts +++ b/packages/integration_test/example/ohos/hvigorfile.ts @@ -1,16 +1,7 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. */ import { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/integration_test/ohos/Index.ets b/packages/integration_test/ohos/Index.ets index 9cb1e4ae7c..4bc284a83c 100644 --- a/packages/integration_test/ohos/Index.ets +++ b/packages/integration_test/ohos/Index.ets @@ -1,17 +1,8 @@ -/** - * 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. - */ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. +*/ import IntegrationTestPlugin from './src/main/ets/components/integration_test/IntegrationTestPlugin'; export default IntegrationTestPlugin; diff --git a/packages/integration_test/ohos/src/main/ets/components/integration_test/FlutterDeviceScreenshot.ets b/packages/integration_test/ohos/src/main/ets/components/integration_test/FlutterDeviceScreenshot.ets index 21ce29d779..386cfb69f1 100644 --- a/packages/integration_test/ohos/src/main/ets/components/integration_test/FlutterDeviceScreenshot.ets +++ b/packages/integration_test/ohos/src/main/ets/components/integration_test/FlutterDeviceScreenshot.ets @@ -1,19 +1,7 @@ /** - * 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. - * - * Based on FlutterDeviceScreenshot.java originally written by - * Copyright (C) 2021 Emmanuel Garcia + * Copyright 2014 The Flutter Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. * */ import { diff --git a/packages/integration_test/ohos/src/main/ets/components/integration_test/IntegrationTestPlugin.ets b/packages/integration_test/ohos/src/main/ets/components/integration_test/IntegrationTestPlugin.ets index 91d5100266..442b09054f 100644 --- a/packages/integration_test/ohos/src/main/ets/components/integration_test/IntegrationTestPlugin.ets +++ b/packages/integration_test/ohos/src/main/ets/components/integration_test/IntegrationTestPlugin.ets @@ -1,19 +1,7 @@ /** - * 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. - * - * Based on IntegrationTestPlugin.java originally written by - * Copyright (C) 2020 Dan Field + * Copyright 2014 The Flutter Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. * */ diff --git a/packages/integration_test/ohos/src/test/List.test.ets b/packages/integration_test/ohos/src/test/List.test.ets index 4b699aaccc..af9973d978 100644 --- a/packages/integration_test/ohos/src/test/List.test.ets +++ b/packages/integration_test/ohos/src/test/List.test.ets @@ -1,17 +1,4 @@ -/** - * 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 localUnitTest from './LocalUnit.test'; export default function testsuite() { -- Gitee From 6093b7ef0463399df0440d0396e64eb0d1ac5d4d Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Wed, 8 Jan 2025 15:40:06 +0800 Subject: [PATCH 06/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- OAT.xml | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/OAT.xml b/OAT.xml index 09f239414f..417db11ac6 100644 --- a/OAT.xml +++ b/OAT.xml @@ -128,13 +128,24 @@ + + + + + + - - + + + + + + + @@ -169,6 +180,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + Date: Wed, 8 Jan 2025 15:48:14 +0800 Subject: [PATCH 07/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- app_build/.gitignore | 15 +++------------ .../src/ohosTest/ets/testability/pages/Index.ets | 5 +++++ .../src/ohosTest/ets/testability/pages/Index.ets | 5 +++++ 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app_build/.gitignore b/app_build/.gitignore index a43bd6fdf3..897e31a843 100644 --- a/app_build/.gitignore +++ b/app_build/.gitignore @@ -1,15 +1,6 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE_KHZG file. debug_out release_out diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets index 6466fb9197..5942443207 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,3 +1,8 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. +*/ import hilog from '@ohos.hilog'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets index 6466fb9197..5942443207 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,3 +1,8 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. +* Use of this source code is governed by a BSD-style license that can be +* found in the LICENSE_KHZG file. +*/ import hilog from '@ohos.hilog'; -- Gitee From 9aaf92b47ee005bdc41ebd741e81cedcba909757 Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Wed, 8 Jan 2025 16:02:56 +0800 Subject: [PATCH 08/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- OAT.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/OAT.xml b/OAT.xml index 417db11ac6..e756cbc128 100644 --- a/OAT.xml +++ b/OAT.xml @@ -124,11 +124,19 @@ path=".*" rule="may" type="copyright"/> + - + -- Gitee From 11be547dddd104947babba60c13e20e2b2881023 Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Thu, 9 Jan 2025 16:12:48 +0800 Subject: [PATCH 09/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- OAT.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OAT.xml b/OAT.xml index e756cbc128..c50aa96c4f 100644 --- a/OAT.xml +++ b/OAT.xml @@ -147,7 +147,7 @@ - + @@ -156,6 +156,7 @@ + -- Gitee From a04da551829d602b912b0ddebc09c226f5574eb0 Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Thu, 16 Jan 2025 18:08:37 +0800 Subject: [PATCH 10/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- app_build/.gitignore | 15 ++++++++++++--- app_build/__init__.py | 15 ++++++++++++--- app_build/build_dill.py | 15 ++++++++++++--- app_build/config.py | 15 ++++++++++++--- app_build/debug.py | 14 +++++++++++--- app_build/env_util.py | 15 ++++++++++++--- app_build/excute_util.py | 15 ++++++++++++--- app_build/file_util.py | 15 ++++++++++++--- app_build/release.py | 15 ++++++++++++--- .../complex_layout/ohos/build-profile.json5 | 15 +++++++++++++++ .../ohos/entry/build-profile.json5 | 14 ++++++++++++++ .../complex_layout/ohos/entry/hvigorfile.ts | 15 ++++++++++++--- .../ohos/entry/oh-package.json5 | 14 ++++++++++++++ .../main/ets/entryability/EntryAbility.ets | 15 ++++++++++++--- .../ohos/entry/src/main/ets/pages/Index.ets | 15 ++++++++++++--- .../ohos/entry/src/main/module.json5 | 15 ++++++++++++++- .../src/ohosTest/ets/test/Ability.test.ets | 15 +++++++++++++++ .../entry/src/ohosTest/ets/test/List.test.ets | 15 +++++++++++++++ .../ohosTest/ets/testability/TestAbility.ets | 14 ++++++++++++++ .../ohosTest/ets/testability/pages/Index.ets | 15 ++++++++++++--- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 ++++++++++++--- .../ohos/entry/src/ohosTest/module.json5 | 15 ++++++++++++++- .../ohos/hvigor/hvigor-config.json5 | 14 ++++++++++++++ .../complex_layout/ohos/hvigorfile.ts | 15 ++++++++++++--- .../complex_layout/ohos/oh-package.json5 | 14 ++++++++++++++ .../macrobenchmarks/ohos/build-profile.json5 | 15 ++++++++++++++- .../ohos/entry/build-profile.json5 | 15 ++++++++++++++- .../macrobenchmarks/ohos/entry/hvigorfile.ts | 15 ++++++++++++--- .../ohos/entry/oh-package.json5 | 15 ++++++++++++++- .../main/ets/entryability/EntryAbility.ets | 15 ++++++++++++--- .../ohos/entry/src/main/ets/pages/Index.ets | 15 ++++++++++++--- .../ohos/entry/src/main/module.json5 | 15 ++++++++++++++- .../src/ohosTest/ets/test/Ability.test.ets | 14 ++++++++++++++ .../entry/src/ohosTest/ets/test/List.test.ets | 14 ++++++++++++++ .../ohosTest/ets/testability/TestAbility.ets | 14 ++++++++++++++ .../ohosTest/ets/testability/pages/Index.ets | 15 ++++++++++++--- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 ++++++++++++--- .../ohos/entry/src/ohosTest/module.json5 | 15 ++++++++++++++- .../ohos/hvigor/hvigor-config.json5 | 15 ++++++++++++++- .../macrobenchmarks/ohos/hvigorfile.ts | 15 ++++++++++++--- .../macrobenchmarks/ohos/oh-package.json5 | 15 ++++++++++++++- .../lib/src/commands/build_hap.dart | 15 ++++++++++++--- .../lib/src/commands/build_har.dart | 15 ++++++++++++--- .../lib/src/commands/build_hsp.dart | 15 ++++++++++++--- .../flutter_tools/lib/src/ohos/build_env.dart | 15 ++++++++++++--- .../lib/src/ohos/hdc_server.dart | 15 ++++++++++++--- .../flutter_tools/lib/src/ohos/hvigor.dart | 15 ++++++++++++--- .../lib/src/ohos/hvigor_utils.dart | 15 ++++++++++++--- .../ohos.tmpl/build-profile.json5.tmpl | 15 ++++++++++++++- .../ohos.tmpl/entry/build-profile.json5.tmpl | 14 ++++++++++++++ .../ohos.tmpl/entry/hvigorfile.ts.tmpl | 15 ++++++++++++--- .../ohos.tmpl/entry/oh-package.json5.tmpl | 15 ++++++++++++--- .../ets/entryability/EntryAbility.ets.tmpl | 14 ++++++++++++++ .../entry/src/main/ets/pages/Index.ets.tmpl | 14 ++++++++++++++ .../ohos.tmpl/entry/src/main/module.json5 | 15 ++++++++++++++- .../src/ohosTest/ets/test/Ability.test.ets | 15 +++++++++++++++ .../entry/src/ohosTest/ets/test/List.test.ets | 15 +++++++++++++++ .../ohosTest/ets/testability/TestAbility.ets | 15 +++++++++++++++ .../ohosTest/ets/testability/pages/Index.ets | 15 ++++++++++++--- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 ++++++++++++--- .../entry/src/ohosTest/module.json5.tmpl | 15 ++++++++++++--- .../ohos.tmpl/hvigor/hvigor-config.json5.tmpl | 14 ++++++++++++++ .../app_shared/ohos.tmpl/hvigorfile.ts.tmpl | 15 ++++++++++++--- .../ohos.tmpl/oh-package.json5.tmpl | 15 ++++++++++++--- .../host_app_common/build-profile.json5.tmpl | 15 +++++++++++++++ .../entry.tmpl/build-profile.json5.tmpl | 14 ++++++++++++++ .../entry.tmpl/hvigorfile.ts.tmpl | 14 ++++++++++++++ .../entry.tmpl/oh-package.json5.tmpl | 14 ++++++++++++++ .../ets/entryability/EntryAbility.ets.tmpl | 14 ++++++++++++++ .../src/main/ets/pages/Index.ets.tmpl | 14 ++++++++++++++ .../entry.tmpl/src/main/module.json5 | 15 ++++++++++++++- .../src/ohosTest/ets/test/Ability.test.ets | 14 ++++++++++++++ .../src/ohosTest/ets/test/List.test.ets | 15 ++++++++++++++- .../ohosTest/ets/testability/TestAbility.ets | 15 ++++++++++++++- .../ohosTest/ets/testability/pages/Index.ets | 15 ++++++++++++--- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 ++++++++++++--- .../entry.tmpl/src/ohosTest/module.json5.tmpl | 14 ++++++++++++++ .../ohos/host_config/build-profile.json5.tmpl | 14 ++++++++++++++ .../ohos/host_config/oh-package.json5.tmpl | 14 ++++++++++++++ .../hvigor/hvigor-config.json5.tmpl | 14 ++++++++++++++ .../ohos/hvigor_plugin/hvigorfile.ts.tmpl | 15 ++++++++++++--- .../build-profile.json5.tmpl | 15 ++++++++++++++- .../flutter_module.tmpl/hvigorfile.ts.tmpl | 15 ++++++++++++--- .../flutter_module.tmpl/index.ets | 15 ++++++++++++--- .../flutter_module.tmpl/oh-package.json5.tmpl | 14 ++++++++++++++ .../flutter_module.tmpl/src/main/module.json5 | 15 ++++++++++++++- .../templates/plugin/ohos.tmpl/index.ets.tmpl | 14 ++++++++++++++ .../general.shard/ohos/hdc_server_test.dart | 14 ++++++++++++++ .../test/general.shard/ohos/hvigor_test.dart | 15 ++++++++++++++- .../general.shard/ohos/hvigor_utils_test.dart | 14 ++++++++++++++ .../ohos/ohos_application_package_test.dart | 15 ++++++++++++++- .../ohos/ohos_device_discovery_test.dart | 15 ++++++++++++++- .../general.shard/ohos/ohos_device_test.dart | 15 ++++++++++++++- .../general.shard/ohos/ohos_doctor_test.dart | 14 ++++++++++++++ .../ohos/ohos_plugins_manager_test.dart | 15 ++++++++++++++- .../general.shard/ohos/ohos_sdk_test.dart | 15 ++++++++++++++- .../ohos/ohos_workflow_test.dart | 15 ++++++++++++++- .../example/ohos/entry/build-profile.json5 | 15 ++++++++++++++- .../example/ohos/entry/hvigorfile.ts | 15 ++++++++++++--- .../main/ets/entryability/EntryAbility.ets | 15 ++++++++++++--- .../ohos/entry/src/main/ets/pages/Index.ets | 15 ++++++++++++--- .../example/ohos/entry/src/main/module.json5 | 15 ++++++++++++++- .../src/ohosTest/ets/test/Ability.test.ets | 14 ++++++++++++++ .../entry/src/ohosTest/ets/test/List.test.ets | 14 ++++++++++++++ .../ohosTest/ets/testability/TestAbility.ets | 14 ++++++++++++++ .../ohosTest/ets/testability/pages/Index.ets | 15 ++++++++++++--- .../ets/testrunner/OpenHarmonyTestRunner.ts | 15 ++++++++++++--- .../ohos/entry/src/ohosTest/module.json5 | 15 ++++++++++++++- .../example/ohos/hvigor/hvigor-config.json5 | 15 ++++++++++++++- .../example/ohos/hvigorfile.ts | 15 ++++++++++++--- packages/integration_test/ohos/Index.ets | 19 ++++++++++++++----- 111 files changed, 1468 insertions(+), 170 deletions(-) diff --git a/app_build/.gitignore b/app_build/.gitignore index 897e31a843..a43bd6fdf3 100644 --- a/app_build/.gitignore +++ b/app_build/.gitignore @@ -1,6 +1,15 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. debug_out release_out diff --git a/app_build/__init__.py b/app_build/__init__.py index 5513928de6..8a0d2b732f 100644 --- a/app_build/__init__.py +++ b/app_build/__init__.py @@ -1,3 +1,12 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. diff --git a/app_build/build_dill.py b/app_build/build_dill.py index 24af312de3..a26e6cfaea 100644 --- a/app_build/build_dill.py +++ b/app_build/build_dill.py @@ -1,6 +1,15 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. #!/usr/bin/python import excute_util diff --git a/app_build/config.py b/app_build/config.py index 2c4a366136..322241ac8b 100644 --- a/app_build/config.py +++ b/app_build/config.py @@ -1,6 +1,15 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. #!/usr/bin/python import sys diff --git a/app_build/debug.py b/app_build/debug.py index d085e3c6af..350ae37213 100644 --- a/app_build/debug.py +++ b/app_build/debug.py @@ -1,6 +1,14 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file.language governing permissions and +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. #!/usr/bin/python diff --git a/app_build/env_util.py b/app_build/env_util.py index 0a62ad92d1..8fbc139d88 100644 --- a/app_build/env_util.py +++ b/app_build/env_util.py @@ -1,6 +1,15 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. #!/usr/bin/python import os diff --git a/app_build/excute_util.py b/app_build/excute_util.py index f2221de74b..6dbd289833 100644 --- a/app_build/excute_util.py +++ b/app_build/excute_util.py @@ -1,6 +1,15 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 subprocess from datetime import datetime diff --git a/app_build/file_util.py b/app_build/file_util.py index d51a82478b..0189665f06 100644 --- a/app_build/file_util.py +++ b/app_build/file_util.py @@ -1,6 +1,15 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. #!/usr/bin/python import shutil diff --git a/app_build/release.py b/app_build/release.py index 6241064c3c..62427c3eee 100644 --- a/app_build/release.py +++ b/app_build/release.py @@ -1,6 +1,15 @@ -# Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE_KHZG file. +# Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. #!/usr/bin/python import config diff --git a/dev/benchmarks/complex_layout/ohos/build-profile.json5 b/dev/benchmarks/complex_layout/ohos/build-profile.json5 index 8938b90e0f..7ceb22efee 100644 --- a/dev/benchmarks/complex_layout/ohos/build-profile.json5 +++ b/dev/benchmarks/complex_layout/ohos/build-profile.json5 @@ -1,3 +1,18 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ + { "app": { "signingConfigs": [], diff --git a/dev/benchmarks/complex_layout/ohos/entry/build-profile.json5 b/dev/benchmarks/complex_layout/ohos/entry/build-profile.json5 index 6de31ee224..633d360fbc 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/build-profile.json5 +++ b/dev/benchmarks/complex_layout/ohos/entry/build-profile.json5 @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "apiType": 'stageMode', diff --git a/dev/benchmarks/complex_layout/ohos/entry/hvigorfile.ts b/dev/benchmarks/complex_layout/ohos/entry/hvigorfile.ts index 8c73fe7ecd..894fc15c6b 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/hvigorfile.ts +++ b/dev/benchmarks/complex_layout/ohos/entry/hvigorfile.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. */ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. diff --git a/dev/benchmarks/complex_layout/ohos/entry/oh-package.json5 b/dev/benchmarks/complex_layout/ohos/entry/oh-package.json5 index 80aa77e3db..dabaee1315 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/oh-package.json5 +++ b/dev/benchmarks/complex_layout/ohos/entry/oh-package.json5 @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "name": "entry", diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/entryability/EntryAbility.ets index f99d5d0a17..8bc48be877 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/pages/Index.ets b/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/pages/Index.ets index 45af41b576..1125f9fdd9 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/pages/Index.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/main/ets/pages/Index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 common from '@ohos.app.ability.common'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/main/module.json5 b/dev/benchmarks/complex_layout/ohos/entry/src/main/module.json5 index 5bd7950ba5..7bbf78b18f 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/main/module.json5 +++ b/dev/benchmarks/complex_layout/ohos/entry/src/main/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { "name": "entry", diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/Ability.test.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/Ability.test.ets index 8abf7f2f44..25d4c71ff3 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,3 +1,18 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/List.test.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/List.test.ets index d766fe249d..f4140030e6 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/List.test.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/test/List.test.ets @@ -1,3 +1,18 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' export default function testsuite() { diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets index 42fcf69c98..4ca645e601 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets index 5942443207..cef0447cd2 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 8b02fe38cf..1def08f2e9 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/module.json5 b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/module.json5 index e29411f46a..fab77ce2e0 100644 --- a/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/module.json5 +++ b/dev/benchmarks/complex_layout/ohos/entry/src/ohosTest/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { diff --git a/dev/benchmarks/complex_layout/ohos/hvigor/hvigor-config.json5 b/dev/benchmarks/complex_layout/ohos/hvigor/hvigor-config.json5 index e7b855ac20..541ba35711 100644 --- a/dev/benchmarks/complex_layout/ohos/hvigor/hvigor-config.json5 +++ b/dev/benchmarks/complex_layout/ohos/hvigor/hvigor-config.json5 @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "modelVersion": "5.0.0", diff --git a/dev/benchmarks/complex_layout/ohos/hvigorfile.ts b/dev/benchmarks/complex_layout/ohos/hvigorfile.ts index dc3689cac5..8f2d2aafe6 100644 --- a/dev/benchmarks/complex_layout/ohos/hvigorfile.ts +++ b/dev/benchmarks/complex_layout/ohos/hvigorfile.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/dev/benchmarks/complex_layout/ohos/oh-package.json5 b/dev/benchmarks/complex_layout/ohos/oh-package.json5 index d0d5dd2e6f..0547594c0d 100644 --- a/dev/benchmarks/complex_layout/ohos/oh-package.json5 +++ b/dev/benchmarks/complex_layout/ohos/oh-package.json5 @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "modelVersion": "5.0.0", diff --git a/dev/benchmarks/macrobenchmarks/ohos/build-profile.json5 b/dev/benchmarks/macrobenchmarks/ohos/build-profile.json5 index e7ef02284e..5fcb3dc466 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/build-profile.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/build-profile.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "app": { diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/build-profile.json5 b/dev/benchmarks/macrobenchmarks/ohos/entry/build-profile.json5 index 11a8dca6f9..633d360fbc 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/build-profile.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/build-profile.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "apiType": 'stageMode', diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/hvigorfile.ts b/dev/benchmarks/macrobenchmarks/ohos/entry/hvigorfile.ts index 8c73fe7ecd..894fc15c6b 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/hvigorfile.ts +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/hvigorfile.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. */ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/oh-package.json5 b/dev/benchmarks/macrobenchmarks/ohos/entry/oh-package.json5 index ecce1057f9..dabaee1315 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/oh-package.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/oh-package.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "name": "entry", diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/entryability/EntryAbility.ets index f99d5d0a17..8bc48be877 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/pages/Index.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/pages/Index.ets index 45af41b576..1125f9fdd9 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/pages/Index.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/ets/pages/Index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 common from '@ohos.app.ability.common'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/module.json5 b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/module.json5 index 5bd7950ba5..7bbf78b18f 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/module.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/main/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { "name": "entry", diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/Ability.test.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/Ability.test.ets index fefeb6ea18..25d4c71ff3 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/List.test.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/List.test.ets index 348ab4ea9e..f4140030e6 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/List.test.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/test/List.test.ets @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets index 42fcf69c98..4ca645e601 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets index 5942443207..cef0447cd2 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 8b02fe38cf..1def08f2e9 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/module.json5 b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/module.json5 index e29411f46a..fab77ce2e0 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/module.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/entry/src/ohosTest/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { diff --git a/dev/benchmarks/macrobenchmarks/ohos/hvigor/hvigor-config.json5 b/dev/benchmarks/macrobenchmarks/ohos/hvigor/hvigor-config.json5 index 0e35b0d60f..541ba35711 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/hvigor/hvigor-config.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/hvigor/hvigor-config.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "modelVersion": "5.0.0", diff --git a/dev/benchmarks/macrobenchmarks/ohos/hvigorfile.ts b/dev/benchmarks/macrobenchmarks/ohos/hvigorfile.ts index dc3689cac5..8f2d2aafe6 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/hvigorfile.ts +++ b/dev/benchmarks/macrobenchmarks/ohos/hvigorfile.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/dev/benchmarks/macrobenchmarks/ohos/oh-package.json5 b/dev/benchmarks/macrobenchmarks/ohos/oh-package.json5 index c341a8f271..c640999ec2 100644 --- a/dev/benchmarks/macrobenchmarks/ohos/oh-package.json5 +++ b/dev/benchmarks/macrobenchmarks/ohos/oh-package.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "modelVersion": "5.0.0", diff --git a/packages/flutter_tools/lib/src/commands/build_hap.dart b/packages/flutter_tools/lib/src/commands/build_hap.dart index 20c3aa3074..4adc519d22 100644 --- a/packages/flutter_tools/lib/src/commands/build_hap.dart +++ b/packages/flutter_tools/lib/src/commands/build_hap.dart @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 '../build_info.dart'; diff --git a/packages/flutter_tools/lib/src/commands/build_har.dart b/packages/flutter_tools/lib/src/commands/build_har.dart index 5e9a90dbba..0edbc0fc80 100644 --- a/packages/flutter_tools/lib/src/commands/build_har.dart +++ b/packages/flutter_tools/lib/src/commands/build_har.dart @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 '../build_info.dart'; diff --git a/packages/flutter_tools/lib/src/commands/build_hsp.dart b/packages/flutter_tools/lib/src/commands/build_hsp.dart index f68f1aeb75..9b8137409e 100644 --- a/packages/flutter_tools/lib/src/commands/build_hsp.dart +++ b/packages/flutter_tools/lib/src/commands/build_hsp.dart @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 '../build_info.dart'; diff --git a/packages/flutter_tools/lib/src/ohos/build_env.dart b/packages/flutter_tools/lib/src/ohos/build_env.dart index b5b07e5af0..e38dc143cd 100644 --- a/packages/flutter_tools/lib/src/ohos/build_env.dart +++ b/packages/flutter_tools/lib/src/ohos/build_env.dart @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. */ diff --git a/packages/flutter_tools/lib/src/ohos/hdc_server.dart b/packages/flutter_tools/lib/src/ohos/hdc_server.dart index 5569907512..5748f09e08 100644 --- a/packages/flutter_tools/lib/src/ohos/hdc_server.dart +++ b/packages/flutter_tools/lib/src/ohos/hdc_server.dart @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 'dart:io'; diff --git a/packages/flutter_tools/lib/src/ohos/hvigor.dart b/packages/flutter_tools/lib/src/ohos/hvigor.dart index e184ea49a9..99e0560836 100644 --- a/packages/flutter_tools/lib/src/ohos/hvigor.dart +++ b/packages/flutter_tools/lib/src/ohos/hvigor.dart @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 'dart:convert'; diff --git a/packages/flutter_tools/lib/src/ohos/hvigor_utils.dart b/packages/flutter_tools/lib/src/ohos/hvigor_utils.dart index af2a670ff0..ea3fa101af 100644 --- a/packages/flutter_tools/lib/src/ohos/hvigor_utils.dart +++ b/packages/flutter_tools/lib/src/ohos/hvigor_utils.dart @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 'dart:convert'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/build-profile.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/build-profile.json5.tmpl index 1d8b56bd87..0d8b167e6c 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/build-profile.json5.tmpl @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "app": { diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/build-profile.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/build-profile.json5.tmpl index 6de31ee224..633d360fbc 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/build-profile.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "apiType": 'stageMode', diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/hvigorfile.ts.tmpl index 8c73fe7ecd..894fc15c6b 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/hvigorfile.ts.tmpl @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. */ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/oh-package.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/oh-package.json5.tmpl index d0e6a68b31..dabaee1315 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/oh-package.json5.tmpl @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. */ { diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/entryability/EntryAbility.ets.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/entryability/EntryAbility.ets.tmpl index f85a65508a..8bc48be877 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/entryability/EntryAbility.ets.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/entryability/EntryAbility.ets.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; import { GeneratedPluginRegistrant } from '../plugins/GeneratedPluginRegistrant'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/pages/Index.ets.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/pages/Index.ets.tmpl index 7bb6543fe7..1125f9fdd9 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/pages/Index.ets.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/ets/pages/Index.ets.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 common from '@ohos.app.ability.common'; import { FlutterPage } from '@ohos/flutter_ohos' diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/module.json5 b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/module.json5 index 5bd7950ba5..7bbf78b18f 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/module.json5 +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/main/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { "name": "entry", diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/Ability.test.ets b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/Ability.test.ets index 8abf7f2f44..25d4c71ff3 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,3 +1,18 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/List.test.ets b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/List.test.ets index d766fe249d..f4140030e6 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/List.test.ets +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/test/List.test.ets @@ -1,3 +1,18 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' export default function testsuite() { diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/TestAbility.ets b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/TestAbility.ets index e3f6e911d3..4ca645e601 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,3 +1,18 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/pages/Index.ets b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/pages/Index.ets index 5942443207..cef0447cd2 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 8b02fe38cf..1def08f2e9 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/module.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/module.json5.tmpl index 7e88ff7ccc..fab77ce2e0 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/module.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/entry/src/ohosTest/module.json5.tmpl @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. */ { diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigor/hvigor-config.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigor/hvigor-config.json5.tmpl index e7b855ac20..541ba35711 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigor/hvigor-config.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigor/hvigor-config.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "modelVersion": "5.0.0", diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigorfile.ts.tmpl index dc3689cac5..8f2d2aafe6 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/hvigorfile.ts.tmpl @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/flutter_tools/templates/app_shared/ohos.tmpl/oh-package.json5.tmpl b/packages/flutter_tools/templates/app_shared/ohos.tmpl/oh-package.json5.tmpl index 8f51f697f8..a5bc0bec4b 100644 --- a/packages/flutter_tools/templates/app_shared/ohos.tmpl/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/app_shared/ohos.tmpl/oh-package.json5.tmpl @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. */ { diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/build-profile.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/build-profile.json5.tmpl index aebb05d26a..75b957106e 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/build-profile.json5.tmpl @@ -1,3 +1,18 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ + { "app": { "signingConfigs": [], diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/build-profile.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/build-profile.json5.tmpl index 6de31ee224..633d360fbc 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/build-profile.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "apiType": 'stageMode', diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/hvigorfile.ts.tmpl index 98b5db417e..894fc15c6b 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/hvigorfile.ts.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. export { hapTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/oh-package.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/oh-package.json5.tmpl index a5bfaf0e62..6f7b62b27e 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/oh-package.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "name": "entry", diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl index 08dc3c6dcb..0f7f6669df 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/entryability/EntryAbility.ets.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; import { GeneratedPluginRegistrant } from '@ohos/flutter_module'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/pages/Index.ets.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/pages/Index.ets.tmpl index 7bb6543fe7..1125f9fdd9 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/pages/Index.ets.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/ets/pages/Index.ets.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 common from '@ohos.app.ability.common'; import { FlutterPage } from '@ohos/flutter_ohos' diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/module.json5 b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/module.json5 index 809307d2e1..156fac615e 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/module.json5 +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/main/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { "name": "entry", diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/Ability.test.ets b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/Ability.test.ets index fefeb6ea18..25d4c71ff3 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/Ability.test.ets +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/Ability.test.ets @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/List.test.ets b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/List.test.ets index 073c11f4d5..f4140030e6 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/List.test.ets +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/test/List.test.ets @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/TestAbility.ets b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/TestAbility.ets index 242b0c6c21..4ca645e601 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/TestAbility.ets +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/TestAbility.ets @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/pages/Index.ets b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/pages/Index.ets index 5942443207..cef0447cd2 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/pages/Index.ets +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testability/pages/Index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 8b02fe38cf..1def08f2e9 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/module.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/module.json5.tmpl index 3b02a75a22..fab77ce2e0 100644 --- a/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/module.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_app_common/entry.tmpl/src/ohosTest/module.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { diff --git a/packages/flutter_tools/templates/module/ohos/host_config/build-profile.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_config/build-profile.json5.tmpl index c129d89c4d..0de1d44b66 100644 --- a/packages/flutter_tools/templates/module/ohos/host_config/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_config/build-profile.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "app": { diff --git a/packages/flutter_tools/templates/module/ohos/host_config/oh-package.json5.tmpl b/packages/flutter_tools/templates/module/ohos/host_config/oh-package.json5.tmpl index 0db77d9a26..38968fc7e4 100644 --- a/packages/flutter_tools/templates/module/ohos/host_config/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/host_config/oh-package.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "modelVersion": "5.0.0", diff --git a/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigor/hvigor-config.json5.tmpl b/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigor/hvigor-config.json5.tmpl index e7b855ac20..541ba35711 100644 --- a/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigor/hvigor-config.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigor/hvigor-config.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "modelVersion": "5.0.0", diff --git a/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigorfile.ts.tmpl index dc3689cac5..8f2d2aafe6 100644 --- a/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/module/ohos/hvigor_plugin/hvigorfile.ts.tmpl @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/build-profile.json5.tmpl b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/build-profile.json5.tmpl index 11a8dca6f9..633d360fbc 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/build-profile.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/build-profile.json5.tmpl @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "apiType": 'stageMode', diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/hvigorfile.ts.tmpl b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/hvigorfile.ts.tmpl index 00b0bc719c..d3aba127d6 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/hvigorfile.ts.tmpl +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/hvigorfile.ts.tmpl @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { harTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/index.ets b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/index.ets index b90535efc0..ee4e374b29 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/index.ets +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { GeneratedPluginRegistrant } from './src/main/ets/plugins/GeneratedPluginRegistrant' \ No newline at end of file diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/oh-package.json5.tmpl b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/oh-package.json5.tmpl index f16bb33f6f..1fa6a4dfea 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/oh-package.json5.tmpl +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/oh-package.json5.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "name": "@ohos/flutter_module", diff --git a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/src/main/module.json5 b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/src/main/module.json5 index 61b1982a96..81d88ba3a3 100644 --- a/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/src/main/module.json5 +++ b/packages/flutter_tools/templates/module/ohos/module_library/flutter_module.tmpl/src/main/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { "name": "flutter_module", diff --git a/packages/flutter_tools/templates/plugin/ohos.tmpl/index.ets.tmpl b/packages/flutter_tools/templates/plugin/ohos.tmpl/index.ets.tmpl index 8c3ee5813e..a4d4c30b47 100644 --- a/packages/flutter_tools/templates/plugin/ohos.tmpl/index.ets.tmpl +++ b/packages/flutter_tools/templates/plugin/ohos.tmpl/index.ets.tmpl @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 {{pluginClass}} from './src/main/ets/components/plugin/{{pluginClass}}'; export default {{pluginClass}}; diff --git a/packages/flutter_tools/test/general.shard/ohos/hdc_server_test.dart b/packages/flutter_tools/test/general.shard/ohos/hdc_server_test.dart index f887685b5b..042aef1030 100644 --- a/packages/flutter_tools/test/general.shard/ohos/hdc_server_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/hdc_server_test.dart @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2024 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 'package:flutter_tools/src/ohos/hdc_server.dart'; import 'package:flutter_tools/src/ohos/ohos_sdk.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/hvigor_test.dart b/packages/flutter_tools/test/general.shard/ohos/hvigor_test.dart index 63ead16ddb..3ac7d9501d 100644 --- a/packages/flutter_tools/test/general.shard/ohos/hvigor_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/hvigor_test.dart @@ -1,4 +1,17 @@ - +/* + * Copyright (C) 2024 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 'dart:async'; import 'dart:convert'; diff --git a/packages/flutter_tools/test/general.shard/ohos/hvigor_utils_test.dart b/packages/flutter_tools/test/general.shard/ohos/hvigor_utils_test.dart index 8e8cd29f12..deb9499ef4 100644 --- a/packages/flutter_tools/test/general.shard/ohos/hvigor_utils_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/hvigor_utils_test.dart @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2024 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 'package:file/file.dart'; import 'package:flutter_tools/src/convert.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_application_package_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_application_package_test.dart index c1379cd345..ce010cb8b2 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_application_package_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_application_package_test.dart @@ -1,4 +1,17 @@ - +/* + * Copyright (C) 2024 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 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart index 0548ea29b5..bbf9f4ca13 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_device_discovery_test.dart @@ -1,4 +1,17 @@ - +/* + * Copyright (C) 2024 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 'package:file/memory.dart'; import 'package:flutter_tools/src/base/logger.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_device_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_device_test.dart index 580c9621da..c0c915b78f 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_device_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_device_test.dart @@ -1,4 +1,17 @@ - +/* + * Copyright (C) 2024 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 'package:flutter_tools/src/application_package.dart'; import 'package:flutter_tools/src/ohos/ohos_device.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_doctor_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_doctor_test.dart index 03564e677d..357363336c 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_doctor_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_doctor_test.dart @@ -1,3 +1,17 @@ +/* + * Copyright (C) 2024 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 'package:file/memory.dart'; import 'package:flutter_tools/src/base/config.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_plugins_manager_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_plugins_manager_test.dart index ce8723adeb..de4ceb5064 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_plugins_manager_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_plugins_manager_test.dart @@ -1,4 +1,17 @@ - +/* + * Copyright (C) 2024 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 'package:file/memory.dart'; import 'package:flutter_tools/src/base/file_system.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart index e65cb789bf..1485d76f9d 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_sdk_test.dart @@ -1,4 +1,17 @@ - +/* + * Copyright (C) 2024 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 'package:file/memory.dart'; import 'package:flutter_tools/src/base/config.dart'; diff --git a/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart b/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart index 22e36f4f9c..e0cff7ef0a 100644 --- a/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart +++ b/packages/flutter_tools/test/general.shard/ohos/ohos_workflow_test.dart @@ -1,4 +1,17 @@ - +/* + * Copyright (C) 2024 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 'package:flutter_tools/src/ohos/ohos_sdk.dart'; import 'package:flutter_tools/src/ohos/ohos_workflow.dart'; diff --git a/packages/integration_test/example/ohos/entry/build-profile.json5 b/packages/integration_test/example/ohos/entry/build-profile.json5 index 11a8dca6f9..633d360fbc 100644 --- a/packages/integration_test/example/ohos/entry/build-profile.json5 +++ b/packages/integration_test/example/ohos/entry/build-profile.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "apiType": 'stageMode', diff --git a/packages/integration_test/example/ohos/entry/hvigorfile.ts b/packages/integration_test/example/ohos/entry/hvigorfile.ts index 8c73fe7ecd..894fc15c6b 100644 --- a/packages/integration_test/example/ohos/entry/hvigorfile.ts +++ b/packages/integration_test/example/ohos/entry/hvigorfile.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. */ // Script for compiling build behavior. It is built in the build plug-in and cannot be modified currently. diff --git a/packages/integration_test/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets b/packages/integration_test/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets index f99d5d0a17..8bc48be877 100644 --- a/packages/integration_test/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets +++ b/packages/integration_test/example/ohos/entry/src/main/ets/entryability/EntryAbility.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { FlutterAbility, FlutterEngine } from '@ohos/flutter_ohos'; diff --git a/packages/integration_test/example/ohos/entry/src/main/ets/pages/Index.ets b/packages/integration_test/example/ohos/entry/src/main/ets/pages/Index.ets index 912710312d..ac2b5dc723 100644 --- a/packages/integration_test/example/ohos/entry/src/main/ets/pages/Index.ets +++ b/packages/integration_test/example/ohos/entry/src/main/ets/pages/Index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 common from '@ohos.app.ability.common'; diff --git a/packages/integration_test/example/ohos/entry/src/main/module.json5 b/packages/integration_test/example/ohos/entry/src/main/module.json5 index 5bd7950ba5..7bbf78b18f 100644 --- a/packages/integration_test/example/ohos/entry/src/main/module.json5 +++ b/packages/integration_test/example/ohos/entry/src/main/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { "name": "entry", diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets index fefeb6ea18..25d4c71ff3 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/List.test.ets b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/List.test.ets index 348ab4ea9e..f4140030e6 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/List.test.ets +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/test/List.test.ets @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 abilityTest from './Ability.test' diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets index 42fcf69c98..4ca645e601 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/TestAbility.ets @@ -1,3 +1,17 @@ +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets index 5942443207..cef0447cd2 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testability/pages/Index.ets @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index 8b02fe38cf..1def08f2e9 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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'; diff --git a/packages/integration_test/example/ohos/entry/src/ohosTest/module.json5 b/packages/integration_test/example/ohos/entry/src/ohosTest/module.json5 index e29411f46a..fab77ce2e0 100644 --- a/packages/integration_test/example/ohos/entry/src/ohosTest/module.json5 +++ b/packages/integration_test/example/ohos/entry/src/ohosTest/module.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "module": { diff --git a/packages/integration_test/example/ohos/hvigor/hvigor-config.json5 b/packages/integration_test/example/ohos/hvigor/hvigor-config.json5 index 0e35b0d60f..541ba35711 100644 --- a/packages/integration_test/example/ohos/hvigor/hvigor-config.json5 +++ b/packages/integration_test/example/ohos/hvigor/hvigor-config.json5 @@ -1,4 +1,17 @@ - +/* +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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. +*/ { "modelVersion": "5.0.0", diff --git a/packages/integration_test/example/ohos/hvigorfile.ts b/packages/integration_test/example/ohos/hvigorfile.ts index dc3689cac5..8f2d2aafe6 100644 --- a/packages/integration_test/example/ohos/hvigorfile.ts +++ b/packages/integration_test/example/ohos/hvigorfile.ts @@ -1,7 +1,16 @@ /* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. +* Copyright (c) 2023 Hunan OpenValley Digital Industry Development 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 { appTasks } from '@ohos/hvigor-ohos-plugin'; diff --git a/packages/integration_test/ohos/Index.ets b/packages/integration_test/ohos/Index.ets index 4bc284a83c..9cb1e4ae7c 100644 --- a/packages/integration_test/ohos/Index.ets +++ b/packages/integration_test/ohos/Index.ets @@ -1,8 +1,17 @@ -/* -* Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. All rights reserved. -* Use of this source code is governed by a BSD-style license that can be -* found in the LICENSE_KHZG file. -*/ +/** + * 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 IntegrationTestPlugin from './src/main/ets/components/integration_test/IntegrationTestPlugin'; export default IntegrationTestPlugin; -- Gitee From f8f357b51195545a3fd53625e0b699b841b954dd Mon Sep 17 00:00:00 2001 From: chenzhensheng79 <15118029047@139.com> Date: Thu, 16 Jan 2025 18:12:31 +0800 Subject: [PATCH 11/11] update license info Signed-off-by: chenzhensheng79 <15118029047@139.com> --- .../integration_test/ohos/src/test/List.test.ets | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/integration_test/ohos/src/test/List.test.ets b/packages/integration_test/ohos/src/test/List.test.ets index af9973d978..4b699aaccc 100644 --- a/packages/integration_test/ohos/src/test/List.test.ets +++ b/packages/integration_test/ohos/src/test/List.test.ets @@ -1,4 +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 localUnitTest from './LocalUnit.test'; export default function testsuite() { -- Gitee