Skip to content
A fast, incremental, concurrent framework to develop compile plugin for android project to manipulate bytecode
Java
Branch: master
Clone or download
Qunn Chen
Latest commit 6abc17d Nov 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper asm6 Aug 26, 2018
hunter-debug-example publish: hunter-debug-plugin:0.9.7 Nov 11, 2019
hunter-debug-library publish hunter-debug-library:0.9.6 && hunter-debug-plugin:0.9.6 Jul 7, 2019
hunter-debug-plugin
hunter-linelog-example feature: support Log.println Nov 12, 2019
hunter-linelog-library feature: support Log.println Nov 12, 2019
hunter-linelog-plugin feature: support Log.println Nov 12, 2019
hunter-okhttp-example bugfix: fail to weave okhttp in windows Apr 13, 2019
hunter-okhttp-library-compat modify artifact Jan 3, 2019
hunter-okhttp-library 发布脚本 Oct 11, 2018
hunter-okhttp-plugin bugfix: fail to weave okhttp in windows Apr 13, 2019
hunter-timing-example
hunter-timing-library hunter-timing-library 0.9.4 Jan 15, 2019
hunter-timing-plugin protect for duplcated-class and mkdirs fail Jan 6, 2019
hunter-transform bugfix: seperate of jar entry is alway / even in windows Mar 9, 2019
.gitignore hunter-timing-library:0.9.1 Jan 14, 2019
CHANGELOG.md update README Nov 19, 2018
README.md
README_ch.md Update README_ch.md Aug 2, 2019
README_hunter_debug.md publish: hunter-debug-plugin:0.9.7 Nov 11, 2019
README_hunter_debug_ch.md publish: hunter-debug-plugin:0.9.7 Nov 11, 2019
README_hunter_logline.md
README_hunter_logline_ch.md feature: support Log.println Nov 12, 2019
README_hunter_okhttp.md update readme Apr 13, 2019
README_hunter_okhttp_ch.md
README_hunter_timing.md bugfix: seperate of jar entry is alway / even in windows Mar 9, 2019
README_hunter_timing_ch.md
TODO.md update TODO Jan 12, 2019
build.gradle
gradle.properties update example build.gradle Apr 11, 2019
gradlew Ready for writing gradle plugin Feb 25, 2017
gradlew.bat
settings.gradle

README.md

Hunter

中文

Hunter is a framework to develop android gradle plugin based on ASM and Gradle Transform API. It provides a set of useful, scalable plugins for android developers. You can use Hunter to develop more plugins to monitor your app, enhance 3rd-dependency, enhance android framework. Plugins based on Hunter support incremental and concurrent compile, so you don't need to afraid of extra build time.

Some useful plugins based on Hunter

  • OkHttp-Plugin: Hack Okhttp to set a global Interceptor/Eventlistener/Dns for all your OkhttpClients, even clients in 3rd-party library.
  • Timing-Plugin: you can time all your ui-thread methods, and dump the block traces with costed-time of every step, you also can consume the block detail in your way.
  • Debug-Plugin: you can simply add a annotation to a certain method, and the method will print all parameters and costed time, return value. It has many advantages over JakeWharton's hugo
  • LogLine-Plugin: you can add a line number into every lines of your logcat

TODO

More developing plugins can be found in TODO, MeanWhile, your idea is welcome

Developer API

If you want to use hunter to develop a gradle plugin to modify bytecode, please readWiki

License

Copyright 2018 Quinn Chen

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.
You can’t perform that action at this time.