From be0346d682d3468d937fc90d7595250e529879f9 Mon Sep 17 00:00:00 2001 From: zhumingxian Date: Mon, 6 Jun 2022 21:08:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85license=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhumingxian --- .../src/main/ets/MainAbility/pages/index.ets | 15 +++++++++++++++ .../src/main/ets/MainAbility/pages/second.ets | 15 +++++++++++++++ .../src/main/ets/MainAbility/pages/index.ets | 14 ++++++++++++++ .../entry/src/main/ets/pages/index.ets | 2 +- .../src/main/ets/MainAbility/model/ArsData.ets | 15 +++++++++++++++ .../src/main/ets/MainAbility/model/GoodsData.ets | 15 +++++++++++++++ .../ets/MainAbility/model/GoodsDataModels.ets | 15 +++++++++++++++ .../entry/src/main/ets/MainAbility/model/Menu.ets | 15 +++++++++++++++ .../src/main/ets/MainAbility/pages/HomePage.ets | 15 +++++++++++++++ .../src/main/ets/MainAbility/pages/MyPage.ets | 15 +++++++++++++++ .../ets/MainAbility/pages/ShoppingCartPage.ets | 15 +++++++++++++++ .../main/ets/MainAbility/pages/ShoppingDetail.ets | 15 +++++++++++++++ .../src/main/ets/MainAbility/pages/index.ets | 15 +++++++++++++++ .../src/main/ets/MainAbility/pages/index.ets | 14 ++++++++++++++ .../src/main/ets/Application/AbilityStage.ts | 15 +++++++++++++++ .../entry/src/main/ets/MainAbility/MainAbility.ts | 15 +++++++++++++++ .../entry/src/main/ets/model/media/AudioPlay.ets | 3 ++- .../src/main/ets/model/media/been/SongInfo.ets | 15 +++++++++++++++ .../entry/src/main/ets/pages/index.ets | 15 +++++++++++++++ .../entry/src/main/ets/util/DataTypeUtils.ets | 15 +++++++++++++++ .../entry/src/main/cpp/hello.cpp | 2 -- .../src/main/ets/MainAbility/pages/index.ets | 15 +++++++++++++++ .../src/main/ets/MainAbility/pages/there.ets | 15 +++++++++++++++ 23 files changed, 301 insertions(+), 4 deletions(-) diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets index ebb4d20b..30da4250 100644 --- a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets +++ b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import router from '@system.router'; import featureAbility from '@ohos.ability.featureAbility'; import app from '@system.app' diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets index 75d38ac9..dedbc6a4 100644 --- a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets +++ b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + @Entry @Component struct Second { diff --git a/ETSUI/CustomDialogEts/entry/src/main/ets/MainAbility/pages/index.ets b/ETSUI/CustomDialogEts/entry/src/main/ets/MainAbility/pages/index.ets index 6ddcab06..f2c98693 100644 --- a/ETSUI/CustomDialogEts/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ETSUI/CustomDialogEts/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ @CustomDialog struct CustomDialogExample { controller: CustomDialogController diff --git a/ETSUI/PixelUnitsDemo/entry/src/main/ets/pages/index.ets b/ETSUI/PixelUnitsDemo/entry/src/main/ets/pages/index.ets index 7c99f0ac..dd07a7aa 100644 --- a/ETSUI/PixelUnitsDemo/entry/src/main/ets/pages/index.ets +++ b/ETSUI/PixelUnitsDemo/entry/src/main/ets/pages/index.ets @@ -23,7 +23,7 @@ struct Index { Row() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceEvenly }) { - TextButton({ content: '像素介绍' ,onclick: () => { + TextButton({ content: '像素介绍', onclick: () => { router.push({url: "pages/pixelUnitsPage",}) }}) TextButton({ content: '像素转换', onclick: () => { diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/ArsData.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/ArsData.ets index 96b1b924..620b8f59 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/ArsData.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/ArsData.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + let NextId = 0; export class ArsData { id: string; diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsData.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsData.ets index 0ce700b7..617c29b6 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsData.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsData.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + let NextId = 0; export class GoodsData { id: string; diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsDataModels.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsDataModels.ets index 7ac016b0..7dcd422a 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsDataModels.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/GoodsDataModels.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import {GoodsData,IconImage} from './GoodsData' import {Menu1, ImageItem} from './Menu' import {ArsData} from './ArsData' diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/Menu.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/Menu.ets index 1eebdd5f..7b0d4f6a 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/Menu.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/model/Menu.ets @@ -1,4 +1,19 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + let NextId = 0; export class Menu1 { id: string; diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/HomePage.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/HomePage.ets index d0307934..18fdc207 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/HomePage.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/HomePage.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { GoodsData, IconImage } from '../model/GoodsData' import { initializeOnStartup, getIconPath, getIconPathSelect } from '../model/GoodsDataModels' import { ShoppingCart } from './ShoppingCartPage' diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/MyPage.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/MyPage.ets index 8c8085f1..a2de032b 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/MyPage.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/MyPage.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import {getMenu, getTrans, getMore} from '../model/GoodsDataModels' import {Menu1, ImageItem} from '../model/Menu' diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingCartPage.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingCartPage.ets index 13989a99..22f1a242 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingCartPage.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingCartPage.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import {GoodsData} from '../model/GoodsData' import {initializeOnStartup} from '../model/GoodsDataModels' import prompt from '@system.prompt'; diff --git a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingDetail.ets b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingDetail.ets index 1b383e77..98861298 100644 --- a/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingDetail.ets +++ b/ETSUI/ShoppingEts/entry/src/main/ets/MainAbility/pages/ShoppingDetail.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import router from '@system.router'; import {ArsData} from '../model/ArsData' import {getArs, getDetailImages} from '../model/GoodsDataModels' diff --git a/ETSUI/SliderApplicationEts/entry/src/main/ets/MainAbility/pages/index.ets b/ETSUI/SliderApplicationEts/entry/src/main/ets/MainAbility/pages/index.ets index 69f2af57..ef6a9ddc 100644 --- a/ETSUI/SliderApplicationEts/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ETSUI/SliderApplicationEts/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + @Entry @Component struct Index { diff --git a/ETSUI/TransitionAnimtaionEts/entry/src/main/ets/MainAbility/pages/index.ets b/ETSUI/TransitionAnimtaionEts/entry/src/main/ets/MainAbility/pages/index.ets index 6a850151..1c7623b5 100644 --- a/ETSUI/TransitionAnimtaionEts/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ETSUI/TransitionAnimtaionEts/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,3 +1,17 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ import router from '@system.router' diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/Application/AbilityStage.ts b/Media/Audio_OH_ETS/entry/src/main/ets/Application/AbilityStage.ts index 32dfe93c..2f96918c 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/Application/AbilityStage.ts +++ b/Media/Audio_OH_ETS/entry/src/main/ets/Application/AbilityStage.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import AbilityStage from "@ohos.application.AbilityStage" export default class MyAbilityStage extends AbilityStage { diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/MainAbility/MainAbility.ts b/Media/Audio_OH_ETS/entry/src/main/ets/MainAbility/MainAbility.ts index 2fcd5238..76b3753e 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/Media/Audio_OH_ETS/entry/src/main/ets/MainAbility/MainAbility.ts @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import Ability from '@ohos.application.Ability' export default class MainAbility extends Ability { diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/model/media/AudioPlay.ets b/Media/Audio_OH_ETS/entry/src/main/ets/model/media/AudioPlay.ets index cc6df654..0d8b108e 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/model/media/AudioPlay.ets +++ b/Media/Audio_OH_ETS/entry/src/main/ets/model/media/AudioPlay.ets @@ -1,4 +1,4 @@ -import prompt from '@system.prompt'; /* +/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,6 +13,7 @@ import prompt from '@system.prompt'; /* * limitations under the License. */ +import prompt from '@system.prompt'; import media from '@ohos.multimedia.media'; import Song from '../media/been/SongInfo' diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/model/media/been/SongInfo.ets b/Media/Audio_OH_ETS/entry/src/main/ets/model/media/been/SongInfo.ets index 15c62c8f..f8ca9318 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/model/media/been/SongInfo.ets +++ b/Media/Audio_OH_ETS/entry/src/main/ets/model/media/been/SongInfo.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export default class SongInfo { private name: string private fileUri: string diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/pages/index.ets b/Media/Audio_OH_ETS/entry/src/main/ets/pages/index.ets index 1781da10..f27e673f 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/pages/index.ets +++ b/Media/Audio_OH_ETS/entry/src/main/ets/pages/index.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import prompt from '@system.prompt'; import SysPermissionUtils from '../util/SysPermissionUtils' import DateTimeUtils from '../util/DateTimeUtils' diff --git a/Media/Audio_OH_ETS/entry/src/main/ets/util/DataTypeUtils.ets b/Media/Audio_OH_ETS/entry/src/main/ets/util/DataTypeUtils.ets index 4ce0468a..1f712adc 100644 --- a/Media/Audio_OH_ETS/entry/src/main/ets/util/DataTypeUtils.ets +++ b/Media/Audio_OH_ETS/entry/src/main/ets/util/DataTypeUtils.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* *数据类型工具类 */ diff --git a/NativeAPI/NativeTemplateDemo/entry/src/main/cpp/hello.cpp b/NativeAPI/NativeTemplateDemo/entry/src/main/cpp/hello.cpp index 0d5c8d33..62040c2b 100644 --- a/NativeAPI/NativeTemplateDemo/entry/src/main/cpp/hello.cpp +++ b/NativeAPI/NativeTemplateDemo/entry/src/main/cpp/hello.cpp @@ -42,8 +42,6 @@ static napi_value hyPotC(napi_env env, napi_callback_info info) return sum; } - - EXTERN_C_START static napi_value Init(napi_env env, napi_value exports) { diff --git a/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/index.ets b/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/index.ets index 064b4a8d..a707d8c5 100644 --- a/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/index.ets +++ b/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/index.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import router from "@system.router"; import {contact} from "@ohos/vcard"; import {VCardBuilder} from "@ohos/vcard"; diff --git a/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/there.ets b/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/there.ets index fc468ef5..e5aefe94 100644 --- a/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/there.ets +++ b/ThirdPartyComponents/VCardDemo/entry/src/main/ets/MainAbility/pages/there.ets @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // @ts-nocheck import router from '@system.router'; -- Gitee