-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve code readability and robustness (#320)
Signed-off-by: Louis-C7 <[email protected]>
- Loading branch information
Showing
101 changed files
with
714 additions
and
907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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="copyrightPolicyFilter" desc="Filters for compatibility,license header policies"> | ||
<filteritem type="filepath" name="react-native-harmony-svg/harmony/svg/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/src/main/cpp/generated/.*" desc="Codegen生成文件,不手动修改"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/src/main/ets/generated/.*" desc="Codegen生成文件,不手动修改"/> | ||
<filteritem type="filename" name="LICENSE" desc="版权文件,不添加版权头"/> | ||
<filteritem type="filename" name="hvigorw" desc="工程模板,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filename" name="hvigorw.bat" desc="工程模板,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/elements/Image.tsx" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/fabric/NativeSvgImageModule.ts" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/css/index.tsx" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/elements/Shape.tsx" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/index.tsx" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/.prettierrc.js" desc="项目配置文件,不添加版权头"/> | ||
<filteritem type="filepath" name="tester/android/.*" desc="示例工程,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/harmony/entry/.*" desc="示例工程,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/src/main/cpp/svgImage/.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/hvigorfile.ts" desc="工程模板,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/build-profile.json5" desc="工程模板,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="tester/svgDemoCases/.*" desc="测试用例,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/SVGDemo/.*" desc="测试用例,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/App.tsx" desc="测试用例,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/index.js" desc="测试用例,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/babel.config.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/.prettierrc.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/scripts/.*" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filename" name=".npmrc" desc="项目配置文件,不添加版权头"/> | ||
<filteritem type="filepath" name="tester/.node-version" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/Gemfile" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/.watchmanconfig" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filename" name="*.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/harmony/hvigorfile.ts" desc="配置文件,DevEco Studio自动生成,不手动修改"/> <filteritem type="filepath" name="tester/harmony/build-profile.template.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/metro.config.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
</filefilter> | ||
<filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies"> | ||
<filteritem type="filepath" name="react-native-harmony-svg/harmony/svg/hvigorfile.ts" desc="hvigor构建脚本,DevEco Studio自动生成,不手动修改"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/src/main/cpp/generated/.*" desc="Codegen生成文件,不手动修改"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/src/main/ets/generated/.*" desc="Codegen生成文件,不手动修改"/> | ||
<filteritem type="filename" name="LICENSE" desc="版权文件,不添加版权头"/> | ||
<filteritem type="filename" name="hvigorw" desc="工程模板,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filename" name="hvigorw.bat" desc="工程模板,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/elements/Image.tsx" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/fabric/NativeSvgImageModule.ts" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/css/index.tsx" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/elements/Shape.tsx" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/src/index.tsx" desc="第三方开源软件源码,原本无版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="react-native-harmony-svg/.prettierrc.js" desc="项目配置文件,不添加版权头"/> | ||
<filteritem type="filepath" name="tester/android/.*" desc="示例工程,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/harmony/entry/.*" desc="示例工程,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/src/main/cpp/svgImage/.*" desc="第三方开源软件源码,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/hvigorfile.ts" desc="工程模板,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="tester/harmony/svg/build-profile.json5" desc="工程模板,不修改版权头,以防有修改版权风险"/> | ||
<filteritem type="filepath" name="tester/svgDemoCases/.*" desc="测试用例,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/SVGDemo/.*" desc="测试用例,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/App.tsx" desc="测试用例,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/index.js" desc="测试用例,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/babel.config.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/.prettierrc.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/scripts/.*" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filename" name=".npmrc" desc="项目配置文件,不添加版权头"/> | ||
<filteritem type="filepath" name="tester/.node-version" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/Gemfile" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/.watchmanconfig" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filename" name="*.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/harmony/hvigorfile.ts" desc="配置文件,DevEco Studio自动生成,不手动修改"/> <filteritem type="filepath" name="tester/harmony/build-profile.template.json5" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
<filteritem type="filepath" name="tester/metro.config.js" desc="示例工程配置文件,非业务代码,不添加许可证头"/> | ||
</filefilter> | ||
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for copyright header policies"> | ||
<filteritem type="filepath" name="react-native-harmony-svg/harmony/svg.har" desc="项目打包文件" /> | ||
<filteritem type="filepath" name="tester/.*" desc="示例工程,非业务代码" /> | ||
</filefilter> | ||
</filefilterlist> | ||
</oatconfig> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) [2015-2016] [Horcrux] | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.