From 421f1a1f646a14a15a9b6ddd6139e2886a5d3ebb Mon Sep 17 00:00:00 2001 From: wangshi Date: Thu, 17 Oct 2024 09:18:08 +0800 Subject: [PATCH] fix codecheck Signed-off-by: wangshi --- examples/akitutorials/AppScope/app.json5 | 14 +++ examples/akitutorials/build-profile.json5 | 14 +++ examples/akitutorials/code-linter.json5 | 14 +++ .../akitutorials/entry/build-profile.json5 | 14 +++ examples/akitutorials/entry/hvigorfile.ts | 14 +++ examples/akitutorials/entry/oh-package.json5 | 15 +++ .../entry/src/main/cpp/napi_init.cpp | 94 +++++++------------ .../src/main/cpp/types/libentry/Index.d.ts | 15 +++ .../main/cpp/types/libentry/oh-package.json5 | 14 +++ .../main/ets/entryability/EntryAbility.ets | 14 +++ .../entrybackupability/EntryBackupAbility.ets | 14 +++ .../entry/src/main/ets/pages/Index.ets | 14 +++ .../akitutorials/entry/src/main/module.json5 | 14 +++ .../entry/src/mock/Libentry.mock.ets | 14 +++ .../entry/src/mock/mock-config.json5 | 14 +++ .../src/ohosTest/ets/test/Ability.test.ets | 14 +++ .../entry/src/ohosTest/ets/test/List.test.ets | 15 +++ .../entry/src/ohosTest/module.json5 | 14 +++ .../akitutorials/entry/src/test/List.test.ets | 14 +++ .../entry/src/test/LocalUnit.test.ets | 14 +++ .../akitutorials/hvigor/hvigor-config.json5 | 14 +++ examples/akitutorials/hvigorfile.ts | 14 +++ examples/akitutorials/oh-package.json5 | 14 +++ 23 files changed, 343 insertions(+), 62 deletions(-) diff --git a/examples/akitutorials/AppScope/app.json5 b/examples/akitutorials/AppScope/app.json5 index 4cafa2cc..11b0faf8 100644 --- a/examples/akitutorials/AppScope/app.json5 +++ b/examples/akitutorials/AppScope/app.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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": { "bundleName": "com.example.akitutorials", diff --git a/examples/akitutorials/build-profile.json5 b/examples/akitutorials/build-profile.json5 index 9df4fecb..1621ef03 100644 --- a/examples/akitutorials/build-profile.json5 +++ b/examples/akitutorials/build-profile.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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/examples/akitutorials/code-linter.json5 b/examples/akitutorials/code-linter.json5 index 77b31b51..459fcce5 100644 --- a/examples/akitutorials/code-linter.json5 +++ b/examples/akitutorials/code-linter.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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. + */ { "files": [ "**/*.ets" diff --git a/examples/akitutorials/entry/build-profile.json5 b/examples/akitutorials/entry/build-profile.json5 index d41a7f4d..6cc8c59b 100644 --- a/examples/akitutorials/entry/build-profile.json5 +++ b/examples/akitutorials/entry/build-profile.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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", "buildOption": { diff --git a/examples/akitutorials/entry/hvigorfile.ts b/examples/akitutorials/entry/hvigorfile.ts index c6edcd90..4e606615 100644 --- a/examples/akitutorials/entry/hvigorfile.ts +++ b/examples/akitutorials/entry/hvigorfile.ts @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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 { hapTasks } from '@ohos/hvigor-ohos-plugin'; export default { diff --git a/examples/akitutorials/entry/oh-package.json5 b/examples/akitutorials/entry/oh-package.json5 index 54cb0662..342dcaf0 100644 --- a/examples/akitutorials/entry/oh-package.json5 +++ b/examples/akitutorials/entry/oh-package.json5 @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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", "version": "1.0.0", diff --git a/examples/akitutorials/entry/src/main/cpp/napi_init.cpp b/examples/akitutorials/entry/src/main/cpp/napi_init.cpp index 505a83e6..6cdae5ba 100644 --- a/examples/akitutorials/entry/src/main/cpp/napi_init.cpp +++ b/examples/akitutorials/entry/src/main/cpp/napi_init.cpp @@ -1,56 +1,17 @@ -// #include "napi/native_api.h" -// -// static napi_value Add(napi_env env, napi_callback_info info) -// { -// size_t argc = 2; -// napi_value args[2] = {nullptr}; -// -// napi_get_cb_info(env, info, &argc, args , nullptr, nullptr); -// -// napi_valuetype valuetype0; -// napi_typeof(env, args[0], &valuetype0); -// -// napi_valuetype valuetype1; -// napi_typeof(env, args[1], &valuetype1); -// -// double value0; -// napi_get_value_double(env, args[0], &value0); -// -// double value1; -// napi_get_value_double(env, args[1], &value1); -// -// napi_value sum; -// napi_create_double(env, value0 + value1, &sum); -// -// return sum; -// -// } -// -// EXTERN_C_START -// static napi_value Init(napi_env env, napi_value exports) -// { -// napi_property_descriptor desc[] = { -// { "add", nullptr, Add, nullptr, nullptr, nullptr, napi_default, nullptr } -// }; -// napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc); -// return exports; -// } -// EXTERN_C_END -// -// static napi_module demoModule = { -// .nm_version = 1, -// .nm_flags = 0, -// .nm_filename = nullptr, -// .nm_register_func = Init, -// .nm_modname = "entry", -// .nm_priv = ((void*)0), -// .reserved = { 0 }, -// }; -// -// extern "C" __attribute__((constructor)) void RegisterEntryModule(void) -// { -// napi_module_register(&demoModule); -// } +/* + * Copyright (c) 2024 Shenzhen Kaihong 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. + */ #include #include "aki/jsbind.h" @@ -58,11 +19,13 @@ #include "napi/native_api.h" // Function -std::string SayHello(std::string msg) { +std::string SayHello(std::string msg) +{ return msg + " too."; } -std::string AsyncSayHello(std::string msg) { +std::string AsyncSayHello(std::string msg) +{ // Do something; return msg + " too."; } @@ -70,31 +33,37 @@ std::string AsyncSayHello(std::string msg) { // Class class TestObject { public: - TestObject() { + TestObject() + { value_ = -1; result = -1; }; - explicit TestObject(double test) { + explicit TestObject(double test) + { value_ = test; } ~TestObject() = default; - static double MultiplyObject(TestObject obj1, TestObject obj2) { + static double MultiplyObject(TestObject obj1, TestObject obj2) + { return obj1.value_ * obj2.value_; } - double Multiply(double mult) { + double Multiply(double mult) + { value_ *= mult; return value_; } - double GetValue() const { + double GetValue() const + { return value_; } - void SetValue(double value) { + void SetValue(double value) + { value_ = value; } double result; @@ -126,7 +95,8 @@ JSBIND_ENUM(TypeFlags) { JSBIND_ENUM_VALUE(STRING); } -TypeFlags Passing(TypeFlags flag) { +TypeFlags Passing(TypeFlags flag) +{ return flag; } diff --git a/examples/akitutorials/entry/src/main/cpp/types/libentry/Index.d.ts b/examples/akitutorials/entry/src/main/cpp/types/libentry/Index.d.ts index 2e7dea0a..1736cdfe 100644 --- a/examples/akitutorials/entry/src/main/cpp/types/libentry/Index.d.ts +++ b/examples/akitutorials/entry/src/main/cpp/types/libentry/Index.d.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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 const SayHello: (a: string) => string; export const AsyncSayHello: (a: string) => Promise; export const Passing: (flag: TypeFlags) => TypeFlags; diff --git a/examples/akitutorials/entry/src/main/cpp/types/libentry/oh-package.json5 b/examples/akitutorials/entry/src/main/cpp/types/libentry/oh-package.json5 index ea410725..cfbbb689 100644 --- a/examples/akitutorials/entry/src/main/cpp/types/libentry/oh-package.json5 +++ b/examples/akitutorials/entry/src/main/cpp/types/libentry/oh-package.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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": "libentry.so", "types": "./Index.d.ts", diff --git a/examples/akitutorials/entry/src/main/ets/entryability/EntryAbility.ets b/examples/akitutorials/entry/src/main/ets/entryability/EntryAbility.ets index d96a7e26..c804fd1c 100644 --- a/examples/akitutorials/entry/src/main/ets/entryability/EntryAbility.ets +++ b/examples/akitutorials/entry/src/main/ets/entryability/EntryAbility.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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 { AbilityConstant, UIAbility, Want } from '@kit.AbilityKit'; import { hilog } from '@kit.PerformanceAnalysisKit'; import { window } from '@kit.ArkUI'; diff --git a/examples/akitutorials/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets b/examples/akitutorials/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets index dc55c03d..72cd8cda 100644 --- a/examples/akitutorials/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets +++ b/examples/akitutorials/entry/src/main/ets/entrybackupability/EntryBackupAbility.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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 '@kit.PerformanceAnalysisKit'; import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit'; diff --git a/examples/akitutorials/entry/src/main/ets/pages/Index.ets b/examples/akitutorials/entry/src/main/ets/pages/Index.ets index a23ea890..ce23ea8e 100644 --- a/examples/akitutorials/entry/src/main/ets/pages/Index.ets +++ b/examples/akitutorials/entry/src/main/ets/pages/Index.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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 '@kit.PerformanceAnalysisKit'; import testNapi from 'libentry.so'; diff --git a/examples/akitutorials/entry/src/main/module.json5 b/examples/akitutorials/entry/src/main/module.json5 index 2cd3a6c6..f69c8070 100644 --- a/examples/akitutorials/entry/src/main/module.json5 +++ b/examples/akitutorials/entry/src/main/module.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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/examples/akitutorials/entry/src/mock/Libentry.mock.ets b/examples/akitutorials/entry/src/mock/Libentry.mock.ets index c2171716..e3ef5abd 100644 --- a/examples/akitutorials/entry/src/mock/Libentry.mock.ets +++ b/examples/akitutorials/entry/src/mock/Libentry.mock.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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. + */ const NativeMock: Record = { 'add': (a: number, b: number) => { return a + b; diff --git a/examples/akitutorials/entry/src/mock/mock-config.json5 b/examples/akitutorials/entry/src/mock/mock-config.json5 index 6540976c..2bd9cd2e 100644 --- a/examples/akitutorials/entry/src/mock/mock-config.json5 +++ b/examples/akitutorials/entry/src/mock/mock-config.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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. + */ { "libentry.so": { "source": "src/mock/Libentry.mock.ets" diff --git a/examples/akitutorials/entry/src/ohosTest/ets/test/Ability.test.ets b/examples/akitutorials/entry/src/ohosTest/ets/test/Ability.test.ets index 85c78f67..5a485995 100644 --- a/examples/akitutorials/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/examples/akitutorials/entry/src/ohosTest/ets/test/Ability.test.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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 '@kit.PerformanceAnalysisKit'; import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; diff --git a/examples/akitutorials/entry/src/ohosTest/ets/test/List.test.ets b/examples/akitutorials/entry/src/ohosTest/ets/test/List.test.ets index 794c7dc4..cd611eb7 100644 --- a/examples/akitutorials/entry/src/ohosTest/ets/test/List.test.ets +++ b/examples/akitutorials/entry/src/ohosTest/ets/test/List.test.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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/examples/akitutorials/entry/src/ohosTest/module.json5 b/examples/akitutorials/entry/src/ohosTest/module.json5 index 69026872..b98bdb02 100644 --- a/examples/akitutorials/entry/src/ohosTest/module.json5 +++ b/examples/akitutorials/entry/src/ohosTest/module.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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_test", diff --git a/examples/akitutorials/entry/src/test/List.test.ets b/examples/akitutorials/entry/src/test/List.test.ets index bb5b5c37..b4be2951 100644 --- a/examples/akitutorials/entry/src/test/List.test.ets +++ b/examples/akitutorials/entry/src/test/List.test.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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 localUnitTest from './LocalUnit.test'; export default function testsuite() { diff --git a/examples/akitutorials/entry/src/test/LocalUnit.test.ets b/examples/akitutorials/entry/src/test/LocalUnit.test.ets index 165fc161..3bc9aea2 100644 --- a/examples/akitutorials/entry/src/test/LocalUnit.test.ets +++ b/examples/akitutorials/entry/src/test/LocalUnit.test.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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 { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; export default function localUnitTest() { diff --git a/examples/akitutorials/hvigor/hvigor-config.json5 b/examples/akitutorials/hvigor/hvigor-config.json5 index 06b27836..8f84afc3 100644 --- a/examples/akitutorials/hvigor/hvigor-config.json5 +++ b/examples/akitutorials/hvigor/hvigor-config.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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", "dependencies": { diff --git a/examples/akitutorials/hvigorfile.ts b/examples/akitutorials/hvigorfile.ts index f3cb9f1a..d70eca32 100644 --- a/examples/akitutorials/hvigorfile.ts +++ b/examples/akitutorials/hvigorfile.ts @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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'; export default { diff --git a/examples/akitutorials/oh-package.json5 b/examples/akitutorials/oh-package.json5 index bb12751b..a215c6a0 100644 --- a/examples/akitutorials/oh-package.json5 +++ b/examples/akitutorials/oh-package.json5 @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2024 Shenzhen Kaihong 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", "description": "Please describe the basic information.",