当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
5 Star 3 Fork 12

OpenHarmony-SIG/flutter_image_gallery_saver
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
OAT.xml 7.81 KB
一键复制 编辑 原始数据 按行查看 历史
cj-and 提交于 2024-12-24 11:29 +08:00 . 修改OAT文件
<?xml version="1.0" encoding="UTF-8"?>
<!--
MIT License
Copyright (C) 2024 Huawei Device Co., Ltd.
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.
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.
All configurations in this file will be merged to OAT-Default.xml, if you have any questions or concerns, please create issue in OpenHarmony/tools_oat and @jalenchen or chenyaxun.
licensefile:
1.If the project don't have "LICENSE" in root dir, please define all the license files in this project in , OAT will check license files according to this rule.
policylist:
1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here.
2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
3. policyitem type:
"compatibility" is used to check license compatibility in the specified path;
"license" is used to check source license header in the specified path;
"copyright" is used to check source copyright header in the specified path;
"import" is used to check source dependency in the specified path, such as import ... ,include ...
"filetype" is used to check file type in the specified path, supported file types: archive, binary
"filename" is used to check whether the specified file exists in the specified path(projectroot means the root dir of the project), supported file names: LICENSE, README, README.OpenSource
4. policyitem name: This field is used for define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license.
5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be exclude while process this policyitem.
6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means any one in this group passed, the result will be passed.
7. policyitem filefilter: Used to bind filefilter which define filter rules.
7. policyitem desc: Used to describe the reason of this policy item, committers will check this while merging the code.
8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
Note:If the text contains special characters, please escape them according to the following rules:
" == &quot;
& == &amp;
' == &apos;
< == &lt;
> == &gt;
-->
<configuration>
<oatconfig>
<licensefile></licensefile>
<policylist>
<policy name="projectPolicy" desc="">
<policyitem type="license" name="MIT" path=".*" group="defaultGroup" filefilter="defaultPolicyFilter" desc="当前项目兼容此协议" />
<policyitem type="compatibility" name="MIT" path=".*" desc="不影响兼容性"/>
<policyitem type="compatibility" name="Apache-2.0" path=".*" desc="不影响兼容性"/>
</policy>
</policylist>
<filefilterlist>
<filefilter name="defaultFilter" desc="Files not to check">
<filteritem type="filename" name="*.iml|*.json|*.txt|*.yaml|*.yml" desc="desc files"/>
<filteritem type="filename" name="*.png|*.ico|*.jpg|*.webp|*.ttf|*.enc|*.mp3" desc="app resource files"/>
<filteritem type="filepath" name="ohos/hvigorfile.ts" desc="项目工程默认文件,不需要添加版权头"/>
<filteritem type="filepath" name="ohos/BuildProfile.ets" desc="项目工程默认文件,不需要添加版权头"/>
<filteritem type="filename" name="*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
<filteritem type="filepath" name="*.json5" desc="hvigor配置文件,DevEco Studio自动生成,不手动修改"/>
<filteritem type="filename" name="LICENSE" desc="LICENSE说明,不需要添加版权头"/>
<filteritem type="filename" name="*.metadata" desc="配置文件,原本就无版权头,不做侵入式修改"/>
<filteritem type="filename" name="*.so|*.har|*.dat" desc="engine二进制文件,不影响兼容性"/>
<filteritem type="filepath" name="example/android/*" desc="开源库代码(或原库代码文件),原本就无协议头,不做侵入式修改"/>
<filteritem type="filepath" name="example/ios/*" desc="开源库代码(或原库代码文件),原本就无协议头,不做侵入式修改"/>
<filteritem type="filepath" name="example/lib/*" desc="开源库代码(或原库代码文件),原本就无协议头,不做侵入式修改"/>
<filteritem type="filepath" name="example/test/*" desc="开源库代码(或原库代码文件),原本就无协议头,不做侵入式修改"/>
<filteritem type="filepath" name="test/*" desc="开源库代码(或原库代码文件),原本就无协议头,不做侵入式修改"/>
<filteritem type="filepath" name="ios/*" desc="原库代码文件,原本就无协议头,不做侵入式修改"/>
<filteritem type="filepath" name="android/*" desc="原库代码文件,原本就无协议头,不做侵入式修改"/>
<filteritem type="filepath" name="lib/*" desc="开源库代码(或原库代码文件),原本就无协议头,不做侵入式修改"/>
</filefilter>
<filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
</filefilter>
<filefilter name="licenseFileNamePolicyFilter" desc="Filters for LICENSE file policies">
</filefilter>
<filefilter name="readmeFileNamePolicyFilter" desc="Filters for README file policies">
</filefilter>
<filefilter name="readmeOpenSourcefileNamePolicyFilter" desc="Filters for README.OpenSource file policies">
</filefilter>
<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
<filteritem type="filename" name="*.iml|*.json|*.txt" desc="desc files"/>
<filteritem type='filepath' name="ohos/AppScope/resources/base/media/app_icon.png" desc='图片'/>
<filteritem type='filepath' name="example/ohos/entry/src/main/resources/base/media/icon.png" desc='图片'/>
</filefilter>
</filefilterlist>
</oatconfig>
</configuration>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/flutter_image_gallery_saver.git
git@gitee.com:openharmony-sig/flutter_image_gallery_saver.git
openharmony-sig
flutter_image_gallery_saver
flutter_image_gallery_saver
master

搜索帮助