From a3c15756f1f046eb4e4129261ac6f96d962b9f5b Mon Sep 17 00:00:00 2001 From: kongchuiyu Date: Mon, 16 Dec 2024 11:48:09 +0800 Subject: [PATCH] chore: add license header and format code style --- COMMITTERS.md | 11 +++ OAT.xml | 86 +++++++++++++++++++ README.OpenSource | 11 +++ .../src/main/cpp/ComponentDescriptors.h | 5 ++ .../fast_image/src/main/cpp/EventEmitters.cpp | 7 +- .../fast_image/src/main/cpp/EventEmitters.h | 7 +- .../main/cpp/FastImageLoaderTurboModule.cpp | 6 ++ .../src/main/cpp/FastImageLoaderTurboModule.h | 6 ++ .../fast_image/src/main/cpp/FastImageNode.cpp | 6 ++ .../fast_image/src/main/cpp/FastImageNode.h | 6 ++ .../src/main/cpp/FastImagePackage.h | 6 ++ .../src/main/cpp/FastImageSource.cpp | 6 ++ .../fast_image/src/main/cpp/FastImageSource.h | 6 ++ .../cpp/FastImageViewComponentInstance.cpp | 6 ++ .../main/cpp/FastImageViewComponentInstance.h | 6 ++ .../src/main/cpp/FastImageViewJSIBinder.h | 6 ++ harmony/fast_image/src/main/cpp/Props.cpp | 5 ++ harmony/fast_image/src/main/cpp/Props.h | 5 ++ .../fast_image/src/main/cpp/ShadowNodes.cpp | 5 ++ harmony/fast_image/src/main/cpp/ShadowNodes.h | 5 ++ harmony/fast_image/src/main/cpp/States.cpp | 7 +- harmony/fast_image/src/main/cpp/States.h | 6 ++ harmony/fast_image/src/main/cpp/Uri.cpp | 6 ++ harmony/fast_image/src/main/cpp/Uri.h | 6 ++ .../src/main/cpp/colorUtils/Color.cpp | 6 ++ .../src/main/cpp/colorUtils/Color.h | 7 +- .../src/main/cpp/colorUtils/LinearMap.h | 6 ++ .../src/main/cpp/colorUtils/StringUtils.h | 6 ++ .../src/main/cpp/colorUtils/Utils.h | 6 ++ .../main/ets/FastImageLoaderTurboModule.ts | 5 ++ .../FastRemoteImageLoader/RemoteImageCache.ts | 6 ++ .../RemoteImageDiskCache.ts | 6 ++ .../RemoteImageLoader.ts | 6 ++ .../RemoteImageLoaderError.ts | 6 ++ .../RemoteImageSource.ts | 6 ++ .../main/ets/FastRemoteImageLoader/index.ts | 6 ++ harmony/fast_image/src/main/ets/RNCSpecs.ts | 6 ++ harmony/fast_image/src/main/ets/TMSpecs.ts | 6 ++ harmony/fast_image/ts.ts | 16 +--- 39 files changed, 315 insertions(+), 17 deletions(-) create mode 100644 COMMITTERS.md create mode 100644 OAT.xml create mode 100644 README.OpenSource diff --git a/COMMITTERS.md b/COMMITTERS.md new file mode 100644 index 000000000..aef650919 --- /dev/null +++ b/COMMITTERS.md @@ -0,0 +1,11 @@ +## Committers列表 + +### 以下是此项目的committer人员 + +不区分先后顺序 + +- [MaDiXin](https://gitee.com/MaDiXin) +- [xiafeng_xf_admin](https://gitee.com/xiafeng_xf_admin) +- [ChenLixi](https://gitee.com/Louis-C7) +- [LinJiacheng](https://gitee.com/LLLLLLin) +- [ZhengJinshou](https://gitee.com/longziz) \ No newline at end of file diff --git a/OAT.xml b/OAT.xml new file mode 100644 index 000000000..5bbfeca34 --- /dev/null +++ b/OAT.xml @@ -0,0 +1,86 @@ + + + + + + LICENSE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/README.OpenSource b/README.OpenSource new file mode 100644 index 000000000..d85226699 --- /dev/null +++ b/README.OpenSource @@ -0,0 +1,11 @@ +[ + { + "Name": "react-native-fast-image", + "License": "MIT License", + "License File": "https://github.com/DylanVann/react-native-fast-image/blob/main/LICENSE", + "Version Number": "8.6.3", + "Owner" : "xiafeng@huawei.com", + "Upstream URL": "https://github.com/DylanVann/react-native-fast-image", + "Description": "Performant React Native image component." + } +] \ No newline at end of file diff --git a/harmony/fast_image/src/main/cpp/ComponentDescriptors.h b/harmony/fast_image/src/main/cpp/ComponentDescriptors.h index ebb077c11..f11c832aa 100644 --- a/harmony/fast_image/src/main/cpp/ComponentDescriptors.h +++ b/harmony/fast_image/src/main/cpp/ComponentDescriptors.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). diff --git a/harmony/fast_image/src/main/cpp/EventEmitters.cpp b/harmony/fast_image/src/main/cpp/EventEmitters.cpp index 3bde41667..9ac9c7194 100644 --- a/harmony/fast_image/src/main/cpp/EventEmitters.cpp +++ b/harmony/fast_image/src/main/cpp/EventEmitters.cpp @@ -1,4 +1,9 @@ - +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). * diff --git a/harmony/fast_image/src/main/cpp/EventEmitters.h b/harmony/fast_image/src/main/cpp/EventEmitters.h index 713e90eae..db9880622 100644 --- a/harmony/fast_image/src/main/cpp/EventEmitters.h +++ b/harmony/fast_image/src/main/cpp/EventEmitters.h @@ -1,4 +1,9 @@ - +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). * diff --git a/harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.cpp b/harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.cpp index 6c2d06970..f8a48fbfd 100644 --- a/harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.cpp +++ b/harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.cpp @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #include "FastImageLoaderTurboModule.h" #include "RNOH/ArkTSTurboModule.h" #include "RNOH/RNInstanceCAPI.h" diff --git a/harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.h b/harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.h index ebd898577..1159ed0d4 100644 --- a/harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.h +++ b/harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once #include "Props.h" diff --git a/harmony/fast_image/src/main/cpp/FastImageNode.cpp b/harmony/fast_image/src/main/cpp/FastImageNode.cpp index 4fe9878c7..9fc3b4e04 100644 --- a/harmony/fast_image/src/main/cpp/FastImageNode.cpp +++ b/harmony/fast_image/src/main/cpp/FastImageNode.cpp @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #include "FastImageNode.h" #include diff --git a/harmony/fast_image/src/main/cpp/FastImageNode.h b/harmony/fast_image/src/main/cpp/FastImageNode.h index 81cfc52c3..7d339f41b 100644 --- a/harmony/fast_image/src/main/cpp/FastImageNode.h +++ b/harmony/fast_image/src/main/cpp/FastImageNode.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + /** * Used only in C-API based Architecture. */ diff --git a/harmony/fast_image/src/main/cpp/FastImagePackage.h b/harmony/fast_image/src/main/cpp/FastImagePackage.h index e8f815dd8..12eb7f240 100644 --- a/harmony/fast_image/src/main/cpp/FastImagePackage.h +++ b/harmony/fast_image/src/main/cpp/FastImagePackage.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #include "RNOH/Package.h" #include "ComponentDescriptors.h" #include "FastImageViewJSIBinder.h" diff --git a/harmony/fast_image/src/main/cpp/FastImageSource.cpp b/harmony/fast_image/src/main/cpp/FastImageSource.cpp index 885637b50..f6deb94da 100644 --- a/harmony/fast_image/src/main/cpp/FastImageSource.cpp +++ b/harmony/fast_image/src/main/cpp/FastImageSource.cpp @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + // // Created on 2024/6/18. // diff --git a/harmony/fast_image/src/main/cpp/FastImageSource.h b/harmony/fast_image/src/main/cpp/FastImageSource.h index 05767967b..ee41d1702 100644 --- a/harmony/fast_image/src/main/cpp/FastImageSource.h +++ b/harmony/fast_image/src/main/cpp/FastImageSource.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + // // Created on 2024/6/18. // diff --git a/harmony/fast_image/src/main/cpp/FastImageViewComponentInstance.cpp b/harmony/fast_image/src/main/cpp/FastImageViewComponentInstance.cpp index f7fb567c9..8a1dd237c 100644 --- a/harmony/fast_image/src/main/cpp/FastImageViewComponentInstance.cpp +++ b/harmony/fast_image/src/main/cpp/FastImageViewComponentInstance.cpp @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #include "FastImageViewComponentInstance.h" #include "FastImageSource.h" #include "FastImageLoaderTurboModule.h" diff --git a/harmony/fast_image/src/main/cpp/FastImageViewComponentInstance.h b/harmony/fast_image/src/main/cpp/FastImageViewComponentInstance.h index 7ee9f0e41..eca6185de 100644 --- a/harmony/fast_image/src/main/cpp/FastImageViewComponentInstance.h +++ b/harmony/fast_image/src/main/cpp/FastImageViewComponentInstance.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once #include "EventEmitters.h" diff --git a/harmony/fast_image/src/main/cpp/FastImageViewJSIBinder.h b/harmony/fast_image/src/main/cpp/FastImageViewJSIBinder.h index 806ab553e..36fdda9c4 100644 --- a/harmony/fast_image/src/main/cpp/FastImageViewJSIBinder.h +++ b/harmony/fast_image/src/main/cpp/FastImageViewJSIBinder.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once // This file was generated. diff --git a/harmony/fast_image/src/main/cpp/Props.cpp b/harmony/fast_image/src/main/cpp/Props.cpp index f653f144d..b9873253e 100644 --- a/harmony/fast_image/src/main/cpp/Props.cpp +++ b/harmony/fast_image/src/main/cpp/Props.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). diff --git a/harmony/fast_image/src/main/cpp/Props.h b/harmony/fast_image/src/main/cpp/Props.h index a1595eb0b..5702df656 100644 --- a/harmony/fast_image/src/main/cpp/Props.h +++ b/harmony/fast_image/src/main/cpp/Props.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). diff --git a/harmony/fast_image/src/main/cpp/ShadowNodes.cpp b/harmony/fast_image/src/main/cpp/ShadowNodes.cpp index 38999b699..cdb3127bd 100644 --- a/harmony/fast_image/src/main/cpp/ShadowNodes.cpp +++ b/harmony/fast_image/src/main/cpp/ShadowNodes.cpp @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). diff --git a/harmony/fast_image/src/main/cpp/ShadowNodes.h b/harmony/fast_image/src/main/cpp/ShadowNodes.h index 18904b513..33081444a 100644 --- a/harmony/fast_image/src/main/cpp/ShadowNodes.h +++ b/harmony/fast_image/src/main/cpp/ShadowNodes.h @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). diff --git a/harmony/fast_image/src/main/cpp/States.cpp b/harmony/fast_image/src/main/cpp/States.cpp index 62a093d3f..d70775c09 100644 --- a/harmony/fast_image/src/main/cpp/States.cpp +++ b/harmony/fast_image/src/main/cpp/States.cpp @@ -1,4 +1,9 @@ - +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). * diff --git a/harmony/fast_image/src/main/cpp/States.h b/harmony/fast_image/src/main/cpp/States.h index 93c4b4ab8..a21b53523 100644 --- a/harmony/fast_image/src/main/cpp/States.h +++ b/harmony/fast_image/src/main/cpp/States.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + /** * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). * diff --git a/harmony/fast_image/src/main/cpp/Uri.cpp b/harmony/fast_image/src/main/cpp/Uri.cpp index f53ab1fe0..b2de47e2f 100644 --- a/harmony/fast_image/src/main/cpp/Uri.cpp +++ b/harmony/fast_image/src/main/cpp/Uri.cpp @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #include #include #include diff --git a/harmony/fast_image/src/main/cpp/Uri.h b/harmony/fast_image/src/main/cpp/Uri.h index 46510054c..9f3720f32 100644 --- a/harmony/fast_image/src/main/cpp/Uri.h +++ b/harmony/fast_image/src/main/cpp/Uri.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once #define FASTIMAGE_URI_H_ #include diff --git a/harmony/fast_image/src/main/cpp/colorUtils/Color.cpp b/harmony/fast_image/src/main/cpp/colorUtils/Color.cpp index ee4bbccea..6ed8f2792 100644 --- a/harmony/fast_image/src/main/cpp/colorUtils/Color.cpp +++ b/harmony/fast_image/src/main/cpp/colorUtils/Color.cpp @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once #include #include diff --git a/harmony/fast_image/src/main/cpp/colorUtils/Color.h b/harmony/fast_image/src/main/cpp/colorUtils/Color.h index b7ba7e4df..5b0cbe3c8 100644 --- a/harmony/fast_image/src/main/cpp/colorUtils/Color.h +++ b/harmony/fast_image/src/main/cpp/colorUtils/Color.h @@ -1,5 +1,10 @@ // from ArkUI "frameworks/core/components/common/properties/color.h" - +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once #include #include diff --git a/harmony/fast_image/src/main/cpp/colorUtils/LinearMap.h b/harmony/fast_image/src/main/cpp/colorUtils/LinearMap.h index 7b46993f0..5dde13d05 100644 --- a/harmony/fast_image/src/main/cpp/colorUtils/LinearMap.h +++ b/harmony/fast_image/src/main/cpp/colorUtils/LinearMap.h @@ -1,4 +1,10 @@ // from ArkUI "frameworks/base/utils/linear_map.h" +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once #include diff --git a/harmony/fast_image/src/main/cpp/colorUtils/StringUtils.h b/harmony/fast_image/src/main/cpp/colorUtils/StringUtils.h index 6109f086c..b4c6d2e3c 100644 --- a/harmony/fast_image/src/main/cpp/colorUtils/StringUtils.h +++ b/harmony/fast_image/src/main/cpp/colorUtils/StringUtils.h @@ -1,4 +1,10 @@ // from ArkUI "frameworks/base/utils/string_utils.h" +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once #include #include diff --git a/harmony/fast_image/src/main/cpp/colorUtils/Utils.h b/harmony/fast_image/src/main/cpp/colorUtils/Utils.h index 6a1da8f55..ba8ce3ac4 100644 --- a/harmony/fast_image/src/main/cpp/colorUtils/Utils.h +++ b/harmony/fast_image/src/main/cpp/colorUtils/Utils.h @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + #pragma once #include #include diff --git a/harmony/fast_image/src/main/ets/FastImageLoaderTurboModule.ts b/harmony/fast_image/src/main/ets/FastImageLoaderTurboModule.ts index b2aebbb5b..d66a3d075 100644 --- a/harmony/fast_image/src/main/ets/FastImageLoaderTurboModule.ts +++ b/harmony/fast_image/src/main/ets/FastImageLoaderTurboModule.ts @@ -1,3 +1,8 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ import { RemoteImageDiskCache, diff --git a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageCache.ts b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageCache.ts index d3b17ed74..467ddd480 100644 --- a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageCache.ts +++ b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageCache.ts @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + import { RemoteImageSource } from './RemoteImageSource'; export class RemoteImageCache { diff --git a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageDiskCache.ts b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageDiskCache.ts index 56681c9a2..33f38554b 100644 --- a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageDiskCache.ts +++ b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageDiskCache.ts @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + import {RemoteImageCache} from './RemoteImageCache'; import fs from '@ohos.file.fs'; diff --git a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageLoader.ts b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageLoader.ts index 94b61a405..a64df7a80 100644 --- a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageLoader.ts +++ b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageLoader.ts @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + import image from '@ohos.multimedia.image'; import type { RemoteImageMemoryCache } from './RemoteImageCache'; import { RemoteImageLoaderError } from './RemoteImageLoaderError'; diff --git a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageLoaderError.ts b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageLoaderError.ts index 87d599d7b..4b58ef48b 100644 --- a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageLoaderError.ts +++ b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageLoaderError.ts @@ -1,2 +1,8 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + export class RemoteImageLoaderError extends Error { } \ No newline at end of file diff --git a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageSource.ts b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageSource.ts index 3094fa29a..b94486224 100644 --- a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageSource.ts +++ b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/RemoteImageSource.ts @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + import image from '@ohos.multimedia.image' export class RemoteImageSource { diff --git a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/index.ts b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/index.ts index bf01b3f19..529f453c0 100644 --- a/harmony/fast_image/src/main/ets/FastRemoteImageLoader/index.ts +++ b/harmony/fast_image/src/main/ets/FastRemoteImageLoader/index.ts @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + export * from "./RemoteImageLoaderError" export * from "./RemoteImageCache" export * from "./RemoteImageLoader" diff --git a/harmony/fast_image/src/main/ets/RNCSpecs.ts b/harmony/fast_image/src/main/ets/RNCSpecs.ts index cbdd05c07..c52e7f0b5 100644 --- a/harmony/fast_image/src/main/ets/RNCSpecs.ts +++ b/harmony/fast_image/src/main/ets/RNCSpecs.ts @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + // This file was generated. import { Descriptor as ComponentDescriptor, diff --git a/harmony/fast_image/src/main/ets/TMSpecs.ts b/harmony/fast_image/src/main/ets/TMSpecs.ts index c8076b8ad..bdc268c32 100644 --- a/harmony/fast_image/src/main/ets/TMSpecs.ts +++ b/harmony/fast_image/src/main/ets/TMSpecs.ts @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. + */ + // This file was generated. export namespace RNCFastImageView { diff --git a/harmony/fast_image/ts.ts b/harmony/fast_image/ts.ts index 0fcf5611e..3722565e9 100644 --- a/harmony/fast_image/ts.ts +++ b/harmony/fast_image/ts.ts @@ -1,17 +1,7 @@ /* - * Copyright (C) 2023 Huawei Device Co., Ltd. - * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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) 2024 Huawei Device Co., Ltd. All rights reserved + * Use of this source code is governed by a MIT license that can be + * found in the LICENSE file. */ export * from './src/main/ets/RNCFastImageViewTurboModule' export * from "./src/main/ets/FastImagePackage"