panda912 / Muddy

Muddy is an Android Plugin for simple encryption of string constants in android project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Muddy is an Android Plugin for simple encryption of string constants in android project.

Usage

Quick Start

  1. Add a dependency in build.gradle in root project as following:
dependencies {
  classpath 'com.panda912.muddy:plugin:1.0.0'
  ...
}
  1. Apply plugin in application module of build.gradle:
apply plugin: 'muddy'
muddy {
  key = 2018 // your custom key
}
  1. Clean and rebuild your project, expand app_module/build/intermediates/transforms/muddy/ directory and check the generated classes:
public class MainActivity extends AppCompatActivity {
  private static final String TAG = Crypto.decode("ϝϱϹϾϑϳϤϹϦϹϤϩ");
  ...
  ...
}

Advanced Usage

If you want muddy to work on the whole project except some specified packages or classes, you can use excludes like this:

apply plugin: 'muddy'
muddy {
  key = 2018 // your custom key
  excludes = ["com.panda912.muddy.data", "com.panda912.muddy.MainActivity"] // packages or classes, must be start with package name
}

Otherwise, if you want muddy only work on some specified packages or classes, you can use includes.

Muddy default does not work for the third party library, but if you want it work on some specified libraries, you can use includeLibs.

About

Muddy is an Android Plugin for simple encryption of string constants in android project.


Languages

Language:Java 100.0%