Skip to content
Projects

CodingGay/BlackObfuscator-ASPlugin

View on GitHub

About

This project is an Android Studio plugin version of BlackObfuscator, it supports obfuscating code automatically. More information about this project are in BlackObfuscator.

Developer Tools

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

DexFile Control Flow Flattening · BlackObfuscator-ASPlugin

This project is an Android Studio plugin version of BlackObfuscator, it supports obfuscating code automatically. More information about this project are in BlackObfuscator.

Matters Need Attention

  • Please check the information of BlackObfuscator.
  • If you got errors in building, please provide the the ./gradlew tasks --all output for me.

Usage

Step 1. Configure your build.gradle (in top level directory)

repositories {
    ...
    maven { url 'https://jitpack.io' }
}
dependencies {
    ...
    classpath "com.github.CodingGay:BlackObfuscator-ASPlugin:3.9"
}

Step 2. Apply the plugin in your app module

...
apply plugin: 'com.android.application'
// Add
apply plugin: 'top.niunaijun.blackobfuscator'

or you can do it like this

plugins {
    id 'com.android.application'
    // Add
    id 'top.niunaijun.blackobfuscator'
}

Step 3. Add configuration in your build.gradle (Module: app)

android {
    ...

    defaultConfig {
       ...
    }
}

// Configuration
BlackObfuscator {
    // Enabled state
    enabled true
    // Obfuscation depth
    depth 2
    // The classes which need to be obfuscated
    obfClass = ["top.niunaijun", "com.abc"]
    // It will not obfuscate the classes that in blackClass
    blackClass = ["top.niunaijun.black"]
}

dependencies {
    ...
}

Step 4. Clean your project, it will obfuscate code automatically while you are building project

License

Copyright 2021 Milk

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Explore related projects

Loading…