Skip to content

Commit 3423d91

Browse files
authored
chore: add README.OpenSource and OAT.XML and COMMITTERS.md and README.md (#4)
1 parent 93479b2 commit 3423d91

File tree

7 files changed

+114
-77
lines changed

7 files changed

+114
-77
lines changed

Diff for: COMMITTERS.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## Committers列表
2+
3+
### 以下是此项目的committer人员
4+
5+
不区分先后顺序
6+
7+
- [MaDiXin](https://gitee.com/MaDiXin)
8+
- [xiafeng_xf_admin](https://gitee.com/xiafeng_xf_admin)
9+
- [ChenLixi](https://gitee.com/Louis-C7)
10+
- [LinJiacheng](https://gitee.com/LLLLLLin)
11+
- [ZhengJinshou](https://gitee.com/longziz)

Diff for: OAT.xml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<configuration>
3+
<oatconfig>
4+
<licensefile>LICENSE</licensefile>
5+
<policylist>
6+
<policy name="projectPolicy" desc="">
7+
<policyitem type="license" name="MIT" path=".*" desc="license under the MIT"/>
8+
</policy>
9+
<policy name="projectPolicy" desc="">
10+
<policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="Process that runs independently, invoked by the X process."/>
11+
<policyitem type="compatibility" name="Apache-2.0" path=".*" desc="不影响兼容性"/>
12+
<policyitem type="compatibility" name="BSDStyleLicense" path=".*" desc="不影响兼容性" />
13+
<policyitem type="compatibility" name="MIT" path=".*" desc="不影响兼容性" />
14+
<policyitem type="compatibility" name="GPLStyleLicense" path=".*" desc="不影响兼容性" />
15+
</policy>
16+
</policylist>
17+
18+
<filefilterlist>
19+
<filefilter name="defaultFilter" desc="Files not to check">
20+
<filteritem type="filename" name="*.json|*.txt|*.gitignore|*.node-version|*.prettierrc|*.tool-versions|*.watchmanconfig|*.lock|*.podspec|*.pdf|*.har|*.gif|*.npmignore" desc="desc files"/>
21+
<filteritem type="filename" name="LICENSE" desc="版权文件,不添加版权头"/>
22+
<filteritem type="filepath" name="src/.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
23+
<filteritem type="filepath" name="lib/.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
24+
<filteritem type="filepath" name="scripts/.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
25+
<filteritem type="filepath" name="js/*.ts" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
26+
<filteritem type="filepath" name="src/*.js" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
27+
<filteritem type="filepath" name="src/*.ts" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
28+
<filteritem type="filepath" name="*.js" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
29+
<filteritem type="filepath" name="*.ts" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
30+
<filteritem type="filepath" name="index.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
31+
<filteritem type="filepath" name="NetworkInfo.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
32+
<filteritem type="filename" name="*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
33+
<filteritem type="filename" name="*/*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
34+
<filteritem type="filepath" name="types/.*" desc="非业务代码,不添加许可证头"/>
35+
<filteritem type="filepath" name="harmony/rn_network_info/index.ets" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
36+
<filteritem type="filepath" name="harmony/rn_network_info/ts.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
37+
<filteritem type="filepath" name="harmony/rn_network_info/BuildProfile.ets" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
38+
<filteritem type="filepath" name="harmony/rn_network_info/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
39+
<filteritem type="filename" name="harmony/rn_network_info/*.json5" desc="工程项目文件,DevEco Studio自动生成,不手动修改"/>
40+
<filteritem type="filepath" name="harmony/rn_network_info/src/main/cpp/generated/.*" desc="Codegen生成文件,不手动修改"/>
41+
<filteritem type="filepath" name="harmony/rn_network_info/src/main/ets/generated/.*" desc="Codegen生成文件,不手动修改"/>
42+
</filefilter>
43+
44+
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
45+
<filteritem type="filename" name="*.json|*.txt|*.gitignore|*.node-version|*.prettierrc|*.tool-versions|*.watchmanconfig|*.lock|*.podspec|*.pdf|*.har|*.gif|*.npmignore" desc="desc files"/>
46+
<filteritem type="filename" name="LICENSE" desc="版权文件,不添加版权头"/>
47+
<filteritem type="filepath" name="src/.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
48+
<filteritem type="filepath" name="lib/.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
49+
<filteritem type="filepath" name="scripts/.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
50+
<filteritem type="filepath" name="js/*.ts" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
51+
<filteritem type="filepath" name="src/*.js" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
52+
<filteritem type="filepath" name="src/*.ts" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
53+
<filteritem type="filepath" name="*.js" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
54+
<filteritem type="filepath" name="*.ts" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
55+
<filteritem type="filepath" name="index.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
56+
<filteritem type="filepath" name="NetworkInfo.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/>
57+
<filteritem type="filename" name="*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
58+
<filteritem type="filename" name="*/*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
59+
<filteritem type="filepath" name="types/.*" desc="非业务代码,不添加许可证头"/>
60+
<filteritem type="filepath" name="harmony/rn_network_info/index.ets" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
61+
<filteritem type="filepath" name="harmony/rn_network_info/ts.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
62+
<filteritem type="filepath" name="harmony/rn_network_info/BuildProfile.ets" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
63+
<filteritem type="filepath" name="harmony/rn_network_info/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/>
64+
<filteritem type="filename" name="harmony/rn_network_info/*.json5" desc="工程项目文件,DevEco Studio自动生成,不手动修改"/>
65+
<filteritem type="filepath" name="harmony/rn_network_info/src/main/cpp/generated/.*" desc="Codegen生成文件,不手动修改"/>
66+
<filteritem type="filepath" name="harmony/rn_network_info/src/main/ets/generated/.*" desc="Codegen生成文件,不手动修改"/>
67+
</filefilter>
68+
69+
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for copyright header policies">
70+
</filefilter>
71+
</filefilterlist>
72+
</oatconfig>
73+
</configuration>

Diff for: README.OpenSource

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[
2+
{
3+
"Name": "react-native-network-info",
4+
"License": "MIT License",
5+
"License File": "https://github.com/pusherman/react-native-network-info/blob/master/LICENSE",
6+
"Version Number": "5.2.1",
7+
"Owner" : "[email protected]",
8+
"Upstream URL": "https://github.com/pusherman/react-native-network-info",
9+
"Description": " Get local network information"
10+
}
11+
]

Diff for: README.md

+7-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
# react-native-network-info
1+
# @react-native-oh-tpl/react-native-network-info
22

3-
本项目基于 [react-native-network-info](https://github.com/pusherman/react-native-network-info)
3+
This project is based on [react-native-network-info](https://github.com/pusherman/react-native-network-info)
44

5-
## 文档地址 / Documentation URL
5+
## Documentation
66

7-
[中文 / Chinese](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-network-info.md)
7+
- [中文](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-network-info.md)
88

9-
## Codegen
9+
- [English](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-network-info.md)
1010

11-
该库已接入 codegen,具体请查阅文档。
11+
## License
1212

13-
The library has been integrated with codegen. Please refer to the documentation for details.
14-
15-
## 请悉知 / Acknowledgements
16-
17-
本项目基于 [The MIT License (MIT)](https://github.com/pusherman/react-native-network-info/blob/master/LICENSE) ,请自由地享受和参与开源。
13+
This library is licensed under [The MIT License (MIT)](https://github.com/pusherman/react-native-network-info/blob/master/LICENSE)

Diff for: harmony/rn_network_info/src/main/ets/Logger.ts

+4-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
1-
/**
2-
* MIT License
3-
*
4-
* Copyright (C) 2024 Huawei Device Co., Ltd.
5-
*
6-
* Permission is hereby granted, free of charge, to any person obtaining a copy
7-
* of this software and associated documentation files (the "Software"), to deal
8-
* in the Software without restriction, including without limitation the rights
9-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
* copies of the Software, and to permit persons to whom the Software is
11-
* furnished to do so, subject to the following conditions:
12-
*
13-
* The above copyright notice and this permission notice shall be included in all
14-
* copies or substantial portions of the Software.
15-
*
16-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
* SOFTWARE.
1+
/*
2+
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
3+
* Use of this source code is governed by a MIT license that can be
4+
* found in the LICENSE file.
235
*/
246

257
import hilog from '@ohos.hilog';

Diff for: harmony/rn_network_info/src/main/ets/RNNetworkInfoPackage.ts

+4-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
1-
/**
2-
* MIT License
3-
*
4-
* Copyright (C) 2024 Huawei Device Co., Ltd.
5-
*
6-
* Permission is hereby granted, free of charge, to any person obtaining a copy
7-
* of this software and associated documentation files (the "Software"), to deal
8-
* in the Software without restriction, including without limitation the rights
9-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
* copies of the Software, and to permit persons to whom the Software is
11-
* furnished to do so, subject to the following conditions:
12-
*
13-
* The above copyright notice and this permission notice shall be included in all
14-
* copies or substantial portions of the Software.
15-
*
16-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
* SOFTWARE.
1+
/*
2+
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
3+
* Use of this source code is governed by a MIT license that can be
4+
* found in the LICENSE file.
235
*/
246

257
import type { TurboModule, TurboModuleContext } from '@rnoh/react-native-openharmony/ts';

Diff for: harmony/rn_network_info/src/main/ets/RNNetworkInfoTurboModule.ts

+4-22
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
1-
/**
2-
* MIT License
3-
*
4-
* Copyright (C) 2024 Huawei Device Co., Ltd.
5-
*
6-
* Permission is hereby granted, free of charge, to any person obtaining a copy
7-
* of this software and associated documentation files (the "Software"), to deal
8-
* in the Software without restriction, including without limitation the rights
9-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
* copies of the Software, and to permit persons to whom the Software is
11-
* furnished to do so, subject to the following conditions:
12-
*
13-
* The above copyright notice and this permission notice shall be included in all
14-
* copies or substantial portions of the Software.
15-
*
16-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
* SOFTWARE.
1+
/*
2+
* Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
3+
* Use of this source code is governed by a MIT license that can be
4+
* found in the LICENSE file.
235
*/
246

257
import { TurboModule } from '@rnoh/react-native-openharmony/ts';

0 commit comments

Comments
 (0)