{"id":13843719,"url":"https://github.com/wuzuchang/PrivacyCompliancePlugin","last_synced_at":"2025-07-11T19:33:22.332Z","repository":{"id":142045651,"uuid":"606696898","full_name":"wuzuchang/PrivacyCompliancePlugin","owner":"wuzuchang","description":"隐私合规代码扫描Gradle插件","archived":false,"fork":false,"pushed_at":"2023-09-03T03:20:13.000Z","size":369,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-21T15:39:34.502Z","etag":null,"topics":["compliance","gradle-plugin","privacy","privacy-policy","privacy-protection"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wuzuchang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-26T09:36:04.000Z","updated_at":"2024-08-13T07:16:18.000Z","dependencies_parsed_at":"2023-05-20T23:30:28.072Z","dependency_job_id":"41159a6a-fd3b-4364-906d-d9857ade253d","html_url":"https://github.com/wuzuchang/PrivacyCompliancePlugin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/wuzuchang/PrivacyCompliancePlugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuzuchang%2FPrivacyCompliancePlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuzuchang%2FPrivacyCompliancePlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuzuchang%2FPrivacyCompliancePlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuzuchang%2FPrivacyCompliancePlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wuzuchang","download_url":"https://codeload.github.com/wuzuchang/PrivacyCompliancePlugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wuzuchang%2FPrivacyCompliancePlugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264886627,"owners_count":23678545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compliance","gradle-plugin","privacy","privacy-policy","privacy-protection"],"created_at":"2024-08-04T17:02:25.309Z","updated_at":"2025-07-11T19:33:21.947Z","avatar_url":"https://github.com/wuzuchang.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"# PrivacyCompliancePlugin\n## 环境\n\n基于gradle 7.3.+ 开发\n\n## 功能\n\n静态扫描Android项目java代码中隐私合规相关代码，会在构建时打印扫描到的隐私合规风险代码。也可通过配置插入日志，在运行时打印隐私合规风险代码调用栈。\n\n## 使用\n\n在项目跟目录下的`setting.gradle`文件中添加以下代码\n\n```groovy\nmaven { url 'https://jitpack.io' }\n```\n\n在项目跟目录下的`build.gradle`文件中添加以下代码\n\n```groovy\nbuildscript {\n    dependencies {\n        classpath 'com.github.wuzuchang:PrivacyCompliancePlugin:2.0.0'\n    }\n}\n```\n\n在app module下的`build.gradle`中添加以下代码\n\n```groovy\nplugins {\n    id 'com.android.application'\n    // 合规检测插件\n    id 'com.wzc.privacy_compliance'\n}\n//合规检测插件配置项\ncompliance{\n    packageNameList = [\"com.wzc\"]\n    insertLog = true\n    logTag = \"Test\"\n}\n```\n\n配置项参数说明\n\n| 参数            | 类型      | 含义                                              |\n| --------------- |---------| ------------------------------------------------- |\n| packageNameList | List    | 需要检测的包名列表                                |\n| insertLog       | Boolean | 是否在检测到隐私合规代码时插入Log，会在运行时打印 |\n| logTag          | String  | 运行时Log打印的TAG                                |\n\n编译时检测结果\n\n![build1](resource/build1.png)\n\n![build2](resource/build2.png)\n\n运行时检测结果\n\n![running](resource/running.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuzuchang%2FPrivacyCompliancePlugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwuzuchang%2FPrivacyCompliancePlugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwuzuchang%2FPrivacyCompliancePlugin/lists"}