MarbledCat Plugin

RxJava method call logging for Android debug builds.

License

License

GroupId

GroupId

com.github.prt2121
ArtifactId

ArtifactId

marbledcat-plugin
Last Version

Last Version

0.4.1
Release Date

Release Date

Type

Type

jar
Description

Description

MarbledCat Plugin
RxJava method call logging for Android debug builds.
Project URL

Project URL

https://github.com/prt2121/MarbledCat/
Source Code Management

Source Code Management

https://github.com/prt2121/MarbledCat.git

Download marbledcat-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.prt2121/marbledcat-plugin/ -->
<dependency>
    <groupId>com.github.prt2121</groupId>
    <artifactId>marbledcat-plugin</artifactId>
    <version>0.4.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.prt2121/marbledcat-plugin/
implementation 'com.github.prt2121:marbledcat-plugin:0.4.1'
// https://jarcasting.com/artifacts/com.github.prt2121/marbledcat-plugin/
implementation ("com.github.prt2121:marbledcat-plugin:0.4.1")
'com.github.prt2121:marbledcat-plugin:jar:0.4.1'
<dependency org="com.github.prt2121" name="marbledcat-plugin" rev="0.4.1">
  <artifact name="marbledcat-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.prt2121', module='marbledcat-plugin', version='0.4.1')
)
libraryDependencies += "com.github.prt2121" % "marbledcat-plugin" % "0.4.1"
[com.github.prt2121/marbledcat-plugin "0.4.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.aspectj : aspectjtools jar 1.8.6
com.android.tools.build : gradle jar 1.3.0
org.aspectj : aspectjrt jar 1.8.6

Project Modules

There are no modules declared in this project.

MarbledCat

####Rx Marble diagram in logcat.

Build Status Maven Central

MarbledCat allows developers to visualize Rx streams in Android logcat by applying Aspect-oriented programming techniques to inject logging code into RxJava method calls.

screenshot

screen record

####Install

  • Add marbledcat-plugin in your build script dependencies:

    buildscript {
      repositories {
        jcenter()
        mavenCentral() // Add mavenCentral
      }
      dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'
        classpath 'com.github.prt2121:marbledcat-plugin:0.4.1' // Add plugin
      }
    }
  • In our app build.gradle, apply the plugin and add marbledcat-annotation dependency:

    apply plugin: 'com.android.application'
    apply plugin: 'com.prt2121.marbledcat' // Apply plugin
    
    dependencies {
      compile fileTree(dir: 'libs', include: ['*.jar'])
      testCompile 'junit:junit:4.12'
      ...
      compile 'com.github.prt2121:marbledcat-annotation:0.4.1' // add marbledcat-annotation dependency
    }
  • In the class that you need to log, add RxLog annotation:

    @RxLog // Add annotation
    public class AwesomeActivity extends AppCompatActivity {

Release page

Limitation

  • The log printed correctly only when one class is annotated.

Thanks/Credits/Inspiration

License

Versions

Version
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0