Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions COMMITTERS.md
Original file line number Diff line number Diff line change
@@ -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)
86 changes: 86 additions & 0 deletions OAT.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- 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.

This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.

-->

<configuration>
<oatconfig>
<licensefile>LICENSE</licensefile>
<policylist>
<policy name="projectPolicy" desc="">
<policyitem type="license" name="MIT" path=".*" desc="license under the MIT"/>
</policy>
<policy name="projectPolicy" desc="">
<policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="Process that runs independently, invoked by the X process."/>
<policyitem type="compatibility" name="Apache-2.0" path=".*" desc="不影响兼容性"/>
<policyitem type="compatibility" name="BSDStyleLicense" path=".*" desc="不影响兼容性" />
<policyitem type="compatibility" name="MIT" path=".*" desc="不影响兼容性" />
<policyitem type="compatibility" name="GPLStyleLicense" path=".*" desc="不影响兼容性" />
</policy>
</policylist>
<filefilterlist>
<filefilter name="defaultFilter" desc="Files not to check">

</filefilter>
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
<filteritem type="filepath" name=".github/.*" desc="git库配置文件,非业务代码,不添加许可证头"/>
<filteritem type="filepath" name=".yarn/.*" desc="依赖生成文件,非业务代码,不添加许可证头"/>
<filteritem type="filepath" name="docs/.*" desc="指导文档文件,非业务代码,不添加许可证头"/>
<filteritem type="filepath" name="harmony/fast_image/.gitignore" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
<filteritem type="filepath" name="harmony/fast_image/build-profile.json5" desc="工程模板,不修改版权头,以防有修改版权风险"/>
<filteritem type="filepath" name="harmony/fast_image/src/main/module.json5" desc="配置文件,DevEco Studio自动生成,不手动修改"/>
<filteritem type="filepath" name="harmony/fast_image/LICENSE" desc="版权文件,不添加版权头"/>
<filteritem type="filepath" name="harmony/fast_image/NOTICE" desc="版权文件,不添加版权头"/>
<filteritem type="filepath" name="harmony/fast_image/OAT.xml" desc="版权扫描文件,不添加版权头"/>

<filteritem type="filepath" name="harmony/fast_image/README.OpenSource" desc="版权扫描文件,不添加版权头"/>
<filteritem type="filepath" name="log/.*" desc="日志生成文件,不添加版权头"/>


<filteritem type="filename" name=".gitignore" desc="示例工程配置文件,不添加版权头"/>
<filteritem type="filename" name="LICENSE" desc="版权文件,不添加版权头"/>
<filteritem type="filename" name="metro.config.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
<filteritem type="filename" name="package.json" desc="示例工程配置文件,不添加版权头"/>
<filteritem type="filename" name="README.md" desc="示例工程配置文件,不添加版权头"/>
<filteritem type="filename" name="README.OpenSource" desc="示例工程配置文件,不添加版权头"/>
<filteritem type="filename" name="tsconfig.build.json" desc="示例工程配置文件,不添加版权头"/>
<filteritem type="filename" name="tsconfig.json" desc="示例工程配置文件,不添加版权头"/>


<filteritem type="filename" name=".prettierignore" desc="示例工程配置文件,不添加版权头"/>
<filteritem type="filename" name="babel.config.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
<filteritem type="filepath" name="harmony/fast_image/src/main/module.json5" desc="配置文件,DevEco Studio自动生成,不手动修改"/>
<filteritem type="filepath" name="harmony/fast_image/build-profile.json5" desc="工程模板,不修改版权头,以防有修改版权风险"/>
<filteritem type="filepath" name="harmony/fast_image/hvigorfile.ts" desc="配置文件,DevEco Studio自动生成,不手动修改"/>
<filteritem type="filepath" name="harmony/fast_image/oh-package.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
</filefilter>
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for copyright header policies">
<filteritem type="filepath" name="harmony/fast_image.har" desc="项目打包文件" />
<filteritem type="filepath" name="docs/assets/.*" desc="指导文档文件,非业务代码,不添加许可证头"/>
</filefilter>

<filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
<filteritem type="filename" name=".prettierignore" desc="示例工程配置文件,不添加版权头"/>
<filteritem type="filename" name="babel.config.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
<filteritem type="filepath" name="harmony/fast_image/src/main/module.json5" desc="配置文件,DevEco Studio自动生成,不手动修改"/>
<filteritem type="filepath" name="harmony/fast_image/build-profile.json5" desc="工程模板,不修改版权头,以防有修改版权风险"/>
<filteritem type="filepath" name="harmony/fast_image/hvigorfile.ts" desc="配置文件,DevEco Studio自动生成,不手动修改"/>
<filteritem type="filepath" name="harmony/fast_image/oh-package.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/>
</filefilter>
</filefilterlist>
</oatconfig>
</configuration>
11 changes: 11 additions & 0 deletions README.OpenSource
Original file line number Diff line number Diff line change
@@ -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."
}
]
5 changes: 5 additions & 0 deletions harmony/fast_image/src/main/cpp/ComponentDescriptors.h
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
7 changes: 6 additions & 1 deletion harmony/fast_image/src/main/cpp/EventEmitters.cpp
Original file line number Diff line number Diff line change
@@ -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).
*
Expand Down
7 changes: 6 additions & 1 deletion harmony/fast_image/src/main/cpp/EventEmitters.h
Original file line number Diff line number Diff line change
@@ -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).
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/FastImageLoaderTurboModule.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/FastImageNode.cpp
Original file line number Diff line number Diff line change
@@ -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 <string_view>
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/FastImageNode.h
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/FastImagePackage.h
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/FastImageSource.cpp
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/FastImageSource.h
Original file line number Diff line number Diff line change
@@ -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.
//
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/FastImageViewJSIBinder.h
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
5 changes: 5 additions & 0 deletions harmony/fast_image/src/main/cpp/Props.cpp
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
5 changes: 5 additions & 0 deletions harmony/fast_image/src/main/cpp/Props.h
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
5 changes: 5 additions & 0 deletions harmony/fast_image/src/main/cpp/ShadowNodes.cpp
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
5 changes: 5 additions & 0 deletions harmony/fast_image/src/main/cpp/ShadowNodes.h
Original file line number Diff line number Diff line change
@@ -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).
Expand Down
7 changes: 6 additions & 1 deletion harmony/fast_image/src/main/cpp/States.cpp
Original file line number Diff line number Diff line change
@@ -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).
*
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/States.h
Original file line number Diff line number Diff line change
@@ -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).
*
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/Uri.cpp
Original file line number Diff line number Diff line change
@@ -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 <Uri.h>
#include <algorithm>
#include <cctype>
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/Uri.h
Original file line number Diff line number Diff line change
@@ -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 <string>
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/colorUtils/Color.cpp
Original file line number Diff line number Diff line change
@@ -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 <cstdint>
#include <regex>
Expand Down
7 changes: 6 additions & 1 deletion harmony/fast_image/src/main/cpp/colorUtils/Color.h
Original file line number Diff line number Diff line change
@@ -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 <cstdint>
#include <string>
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/colorUtils/LinearMap.h
Original file line number Diff line number Diff line change
@@ -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 <algorithm>
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/colorUtils/StringUtils.h
Original file line number Diff line number Diff line change
@@ -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 <locale>
#include <sstream>
Expand Down
6 changes: 6 additions & 0 deletions harmony/fast_image/src/main/cpp/colorUtils/Utils.h
Original file line number Diff line number Diff line change
@@ -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 <chrono>
#include <cmath>
Expand Down
5 changes: 5 additions & 0 deletions harmony/fast_image/src/main/ets/FastImageLoaderTurboModule.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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<T> {
Expand Down
Loading