{"id":20713559,"url":"https://github.com/codinggay/blackobfuscator-asplugin","last_synced_at":"2025-04-05T11:08:56.183Z","repository":{"id":42490261,"uuid":"439285136","full_name":"CodingGay/BlackObfuscator-ASPlugin","owner":"CodingGay","description":"This project is an Android Studio plugin version of BlackObfuscator, it supports obfuscating code automatically. More information about this project are in BlackObfuscator.","archived":false,"fork":false,"pushed_at":"2023-10-15T10:37:17.000Z","size":382,"stargazers_count":441,"open_issues_count":18,"forks_count":127,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-29T10:06:50.758Z","etag":null,"topics":["android","androidstudio","androidstudio-plugin","blackobfuscator","dex","gradle-plugin","java","kotlin","obfuscation","obfuscator"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodingGay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-17T09:52:58.000Z","updated_at":"2025-03-26T14:14:24.000Z","dependencies_parsed_at":"2024-12-22T06:15:20.417Z","dependency_job_id":null,"html_url":"https://github.com/CodingGay/BlackObfuscator-ASPlugin","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingGay%2FBlackObfuscator-ASPlugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingGay%2FBlackObfuscator-ASPlugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingGay%2FBlackObfuscator-ASPlugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodingGay%2FBlackObfuscator-ASPlugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodingGay","download_url":"https://codeload.github.com/CodingGay/BlackObfuscator-ASPlugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"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":["android","androidstudio","androidstudio-plugin","blackobfuscator","dex","gradle-plugin","java","kotlin","obfuscation","obfuscator"],"created_at":"2024-11-17T02:26:00.126Z","updated_at":"2025-04-05T11:08:56.157Z","avatar_url":"https://github.com/CodingGay.png","language":"Java","readme":"# DEX控制流混淆插件版 · BlackObfuscator-ASPlugin\n\n**[English Version](README_EN.md)**\n\n![](https://img.shields.io/badge/language-java-brightgreen.svg)\n\n本项目为 [BlackObfuscator](https://github.com/CodingGay/BlackObfuscator) 的Android Studio插件版，支持打包自动化混淆。功能及介绍方面请查看 [BlackObfuscator](https://github.com/CodingGay/BlackObfuscator) 源项目\n\n## 注意事项\n- 首要注意：[BlackObfuscator](https://github.com/CodingGay/BlackObfuscator) 内的注意事项\n- 若打包报错或者无效请提供 ```./gradlew tasks --all``` 信息\n\n## 使用方式\n\n### 准备\n\n#### Step 1. 根目录Gradle文件加入\n```gradle\nrepositories {\n    ...\n    // 加入仓库\n    maven { url 'https://jitpack.io' }\n}\ndependencies {\n    ...\n    classpath \"com.github.CodingGay:BlackObfuscator-ASPlugin:3.9\"\n}\n```\n#### Step 2. app模块加入plugin\n```gradle\n...\napply plugin: 'com.android.application'\n// 加入\napply plugin: 'top.niunaijun.blackobfuscator'\n```\n或者你的是这样的\n```gradle\nplugins {\n    id 'com.android.application'\n    // 加入\n    id 'top.niunaijun.blackobfuscator'\n}\n```\n#### Step 3. 添加混淆配置\n```gradle\nandroid {\n    ...\n\n    defaultConfig {\n       ...\n    }\n}\n\n// 加入混淆配置\nBlackObfuscator {\n    // 是否启用\n    enabled true\n    // 混淆深度\n    depth 2\n    // 需要混淆的包或者类(匹配前面一段)\n    obfClass = [\"top.niunaijun\", \"com.abc\"]\n    // blackClass中的包或者类不会进行混淆(匹配前面一段)\n    blackClass = [\"top.niunaijun.black\"]\n}\n\ndependencies {\n    ...\n}\n```\n#### Step 4. Clean一次项目，打包即可自动混淆\n\n\n### License\n\n\u003e ```\n\u003e Copyright 2021 Milk\n\u003e\n\u003e Licensed under the Apache License, Version 2.0 (the \"License\");\n\u003e you may not use this file except in compliance with the License.\n\u003e You may obtain a copy of the License at\n\u003e\n\u003e    http://www.apache.org/licenses/LICENSE-2.0\n\u003e\n\u003e Unless required by applicable law or agreed to in writing, software\n\u003e distributed under the License is distributed on an \"AS IS\" BASIS,\n\u003e WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\u003e See the License for the specific language governing permissions and\n\u003e limitations under the License.\n\u003e ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodinggay%2Fblackobfuscator-asplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodinggay%2Fblackobfuscator-asplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodinggay%2Fblackobfuscator-asplugin/lists"}