Skip to content

Commit 36d0f6d

Browse files
committed
english readme
1 parent 564a68d commit 36d0f6d

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# DEX控制流混淆插件版 · BlackObfuscator-ASPlugin
22

3+
**[English Version](README_EN.md)**
4+
35
![](https://img.shields.io/badge/language-java-brightgreen.svg)
46

57
本项目为 [BlackObfuscator](https://github.com/CodingGay/BlackObfuscator) 的Android Studio插件版,支持打包自动化混淆。功能及介绍方面请查看 [BlackObfuscator](https://github.com/CodingGay/BlackObfuscator) 源项目

README_EN.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# DexFile Control Flow Flattening · BlackObfuscator-ASPlugin
2+
3+
![](https://img.shields.io/badge/language-java-brightgreen.svg)
4+
5+
This project is an Android Studio plugin version of [BlackObfuscator](https://github.com/CodingGay/BlackObfuscator), it supports obfuscating code automatically. More information about this project are in [BlackObfuscator](https://github.com/CodingGay/BlackObfuscator).
6+
7+
## Matters Need Attention
8+
9+
- Please check the information of [BlackObfuscator](https://github.com/CodingGay/BlackObfuscator).
10+
- If you got errors in building, please provide the the gradle version of classpath for me.
11+
12+
## Usage
13+
14+
#### Step 1. Configure your build.gradle (in top level directory)
15+
```gradle
16+
repositories {
17+
...
18+
maven { url 'https://jitpack.io' }
19+
}
20+
dependencies {
21+
...
22+
classpath "com.github.CodingGay:BlackObfuscator-ASPlugin:3.2"
23+
}
24+
```
25+
#### Step 2. Apply the plugin in your app module
26+
```gradle
27+
...
28+
apply plugin: 'com.android.application'
29+
// Add
30+
apply plugin: 'top.niunaijun.blackobfuscator'
31+
```
32+
or you can do it like this
33+
```gradle
34+
plugins {
35+
id 'com.android.application'
36+
// Add
37+
id 'top.niunaijun.blackobfuscator'
38+
}
39+
```
40+
#### Step 3. Add configuration in your build.gradle (Module: app)
41+
```gradle
42+
android {
43+
...
44+
45+
defaultConfig {
46+
...
47+
}
48+
}
49+
50+
// Configuration
51+
BlackObfuscator {
52+
// Enabled state
53+
enabled true
54+
// Obfuscation depth
55+
depth 2
56+
// The classes which need to be obfuscated
57+
obfClass = ["top.niunaijun", "com.abc"]
58+
// It will not obfuscate the classes that in blackClass
59+
blackClass = ["top.niunaijun.black"]
60+
}
61+
62+
dependencies {
63+
...
64+
}
65+
```
66+
#### Step 4. Clean your project, it will obfuscate code automatically while you are building project
67+
68+
69+
### License
70+
71+
> ```
72+
> Copyright 2021 Milk
73+
>
74+
> Licensed under the Apache License, Version 2.0 (the "License");
75+
> you may not use this file except in compliance with the License.
76+
> You may obtain a copy of the License at
77+
>
78+
> http://www.apache.org/licenses/LICENSE-2.0
79+
>
80+
> Unless required by applicable law or agreed to in writing, software
81+
> distributed under the License is distributed on an "AS IS" BASIS,
82+
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
83+
> See the License for the specific language governing permissions and
84+
> limitations under the License.
85+
> ```

0 commit comments

Comments
 (0)