Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wuzuchang/PrivacyCompliancePlugin
隐私合规代码扫描Gradle插件
https://github.com/wuzuchang/PrivacyCompliancePlugin
compliance gradle-plugin privacy privacy-policy privacy-protection
Last synced: 3 months ago
JSON representation
隐私合规代码扫描Gradle插件
- Host: GitHub
- URL: https://github.com/wuzuchang/PrivacyCompliancePlugin
- Owner: wuzuchang
- Created: 2023-02-26T09:36:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-03T03:20:13.000Z (about 1 year ago)
- Last Synced: 2024-05-20T12:35:34.652Z (6 months ago)
- Topics: compliance, gradle-plugin, privacy, privacy-policy, privacy-protection
- Language: Kotlin
- Homepage:
- Size: 360 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - wuzuchang/PrivacyCompliancePlugin - 隐私合规代码扫描Gradle插件 (Kotlin)
README
# PrivacyCompliancePlugin
## 环境基于gradle 7.3.+ 开发
## 功能
静态扫描Android项目java代码中隐私合规相关代码,会在构建时打印扫描到的隐私合规风险代码。也可通过配置插入日志,在运行时打印隐私合规风险代码调用栈。
## 使用
在项目跟目录下的`setting.gradle`文件中添加以下代码
```groovy
maven { url 'https://jitpack.io' }
```在项目跟目录下的`build.gradle`文件中添加以下代码
```groovy
buildscript {
dependencies {
classpath 'com.github.wuzuchang:PrivacyCompliancePlugin:2.0.0'
}
}
```在app module下的`build.gradle`中添加以下代码
```groovy
plugins {
id 'com.android.application'
// 合规检测插件
id 'com.wzc.privacy_compliance'
}
//合规检测插件配置项
compliance{
packageNameList = ["com.wzc"]
insertLog = true
logTag = "Test"
}
```配置项参数说明
| 参数 | 类型 | 含义 |
| --------------- |---------| ------------------------------------------------- |
| packageNameList | List | 需要检测的包名列表 |
| insertLog | Boolean | 是否在检测到隐私合规代码时插入Log,会在运行时打印 |
| logTag | String | 运行时Log打印的TAG |编译时检测结果
![build1](resource/build1.png)
![build2](resource/build2.png)
运行时检测结果
![running](resource/running.png)