https://github.com/eritpchy/log-mapping-processor-android-gradle-plugin
Obfuscate and transform log constant code like Proguard
https://github.com/eritpchy/log-mapping-processor-android-gradle-plugin
gradle-plugin log-mapping-processor
Last synced: 9 months ago
JSON representation
Obfuscate and transform log constant code like Proguard
- Host: GitHub
- URL: https://github.com/eritpchy/log-mapping-processor-android-gradle-plugin
- Owner: eritpchy
- Created: 2020-04-17T06:07:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T11:27:53.000Z (over 5 years ago)
- Last Synced: 2025-01-20T22:52:51.237Z (11 months ago)
- Topics: gradle-plugin, log-mapping-processor
- Language: Groovy
- Size: 54.7 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Log Mapping Processor Android Gradle plugin
[  ](https://bintray.com/xscript/maven/log-mapping-android-gradle-plugin)
A gradle plugin to run log code transformation using [Log Mapping Processor](https://github.com/eritpchy/log-mapping-processor) on a project built with Gradle.

## Basic usage
To use log-mapping-android-gradle-plugin, you need to add the plugin classes to the build script's classpath. To do this, you use a `buildscript` block. The following example shows how you might do this when the JAR containing the plugin has been published to a local repository:
```groovy
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'net.xdow:log-mapping-android-gradle-plugin:1.0.7'
}
}
apply plugin: 'net.xdow.logmapping'
```
Consequently, when `gradle build` is run on your project, the source code is first rewritten by `Log Mapping Processor` before compilation.
## Configuration
```groovy
logmapping {
debug false
keywords "net.xdow.Log.debug",
"net.xdow.Log.error"
enableBuildType "debug", "release"
jobs Runtime.getRuntime().availableProcessors()
}
```
## Compiling
To compile Log Mapping Processor Android Gradle plugin, you need a Java Development Kit 1.8 (JDK8)
```shell script
git clone https://github.com/eritpchy/log-mapping-processor-android-gradle-plugin
cd log-mapping-processor-android-gradle-plugin
./gradlew jar
```
## References
- [Log Mapping Processor](https://github.com/eritpchy/log-mapping-processor)
- [Log Mapping Reverse](https://github.com/eritpchy/log-mapping-reverse)
- [JavaParser](https://github.com/javaparser/javaparser)