Gradle plugin for my android app LogView
- Download plugin jar file from releases and place it under your app's project directory. For example i created a new folder
plugins
in root of project, and placed the downloadedlogger-1.0.jar
there. - Then in project's
build.gradle
file add the classpath likeclasspath files('plugins/logger-1.0.jar')
independencies
block. - Now open module's
build.gradle
(usually itsapp/build.gradle
) and apply plugin likeapply plugin: com.hax4us.android.AndroidLogPlugin
- Now just run task
sh gradlew injectLogger
, now build your app as usual likesh gradlew assembleDebug
then install it and open Log.d and you will see your logs there.
Never forget to run task cleanLogger
like sh gradlew cleanLogger
before app's release build.