All Projects → android10 → Frodo2

android10 / Frodo2

Android Library for Logging RxJava2 Components

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Frodo2

Frodo
Android Library for Logging RxJava Observables and Subscribers.
Stars: ✭ 1,496 (+953.52%)
Mutual labels:  debugger, debugging, debugging-tool, android-development
Gdb Frontend
☕ GDBFrontend is an easy, flexible and extensionable gui debugger.
Stars: ✭ 2,104 (+1381.69%)
Mutual labels:  debugger, debugging, debugging-tool
docker-pudb
Debug Python code within a Docker container remotely from your terminal using pudb
Stars: ✭ 18 (-87.32%)
Mutual labels:  debugger, debugging, debugging-tool
madbomber
Backtrace-on-throw C++ exception logger
Stars: ✭ 17 (-88.03%)
Mutual labels:  debugger, debugging, debugging-tool
TrackJS-Node
TrackJS Error Monitoring agent for NodeJS
Stars: ✭ 26 (-81.69%)
Mutual labels:  debugger, debugging, debugging-tool
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+2554.23%)
Mutual labels:  debugger, debugging, debugging-tool
Bugsnag Node
[DEPRECATED] Please upgrade to our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 48 (-66.2%)
Mutual labels:  debugging, debugging-tool
Android Mvvm Rxjava2 Dagger2
This repository contains a detailed sample application that uses MVVM as its presentation layer pattern. Essential dependencies are Dagger2 with Dagger-android, RxJava2 with RxAndroid, Room, Retrofit and Espresso.
Stars: ✭ 50 (-64.79%)
Mutual labels:  rxjava2, android-development
Kotlin Android Scaffolding
An android project structure using kotlin and most common libraries.
Stars: ✭ 53 (-62.68%)
Mutual labels:  rxjava2, android-development
Android App Architecture Mvvm Databinding
A simple but complete project (in both Java & Kotlin) to demonstrate the Android application architecture with MVVM pattern, a client app for The Movie DB Web API. Dagger2 is used for dependency injection and RxJava is used for RFP (Reactive Functional Programming).
Stars: ✭ 69 (-51.41%)
Mutual labels:  rxjava2, android-development
Bugsnag Laravel
Bugsnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
Stars: ✭ 746 (+425.35%)
Mutual labels:  debugging, debugging-tool
Ios Sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 56 (-60.56%)
Mutual labels:  debugger, debugging-tool
Strongod
StrongOD(anti anti-debug plugin) driver source code.
Stars: ✭ 76 (-46.48%)
Mutual labels:  debugger, debugging-tool
Power trace
Buff exception backtrace with local variables, passed in arguments and instance variables!
Stars: ✭ 48 (-66.2%)
Mutual labels:  debugging, debugging-tool
Vim Padre
Debugger plugin for VIM
Stars: ✭ 42 (-70.42%)
Mutual labels:  debugger, debugging-tool
Bugsnag Android
Bugsnag crash monitoring and reporting tool for Android apps
Stars: ✭ 990 (+597.18%)
Mutual labels:  debugging, debugging-tool
Robin
Robin is a logging library for Bundle data passed between Activities and fragments. It also provides a callback to send screen views of user visited pages to your analytics client
Stars: ✭ 63 (-55.63%)
Mutual labels:  debugging, debugging-tool
Birdseye
Graphical Python debugger which lets you easily view the values of all evaluated expressions
Stars: ✭ 1,373 (+866.9%)
Mutual labels:  debugger, debugging
Httptoolkit Android
Automatic Android interception & debugging with HTTP Toolkit, for Android
Stars: ✭ 107 (-24.65%)
Mutual labels:  debugging, android-development
Rexbug
A thin Elixir wrapper for the redbug Erlang tracing debugger.
Stars: ✭ 126 (-11.27%)
Mutual labels:  debugger, debugging

Frodo 2 Build Status

Hex.pm Platform Platform Platform

Frodo 2 is the second version of Frodo, mainly used to make easier debugging projects where RxJava 2 is used. Just annotated your code and voilá!

  • On Android projects (both Kotlin and Java): It is safe to persist any Frodo 2 annotation in the codebase since the code generator will ONLY work on debug versions of the application where the plugin is applied.

  • On pure Kotlin/Java projects: EXPERIMENTAL, you can keep the annotation in the source code but you have to manually enable/disable the code generation (check Enabling Frodo 2 section).

RxJava 2 building blocks supported:

  • Flowable<T>
  • Observable<T>
  • Single<T>
  • Maybe<T>
  • Completable

Check Main Features Section below for more details.

frodo_hug

Main Features

  • @RxLogFlowable: Annotated functions which return io.reactivex.Flowable<T> will print the following information on the log output:
@RxLogFlowable
Flowable<Integer> numbers() {
  return Flowable.just(1, 2, 3, 4);
}
Frodo2 => [@Flowable :: @InClass -> FlowableSamples :: @Method -> numbers()]
Frodo2 => [@Flowable#numbers -> onSubscribe()]
Frodo2 => [@Flowable#numbers -> onRequest() -> 9223372036854775807]
Frodo2 => [@Flowable#numbers -> onNext() -> 1]
Frodo2 => [@Flowable#numbers -> onNext() -> 2]
Frodo2 => [@Flowable#numbers -> onNext() -> 3]
Frodo2 => [@Flowable#numbers -> onNext() -> 4]
Frodo2 => [@Flowable#numbers -> onComplete()]
Frodo2 => [@Flowable#numbers -> onTerminate()]
Frodo2 => [@Flowable#numbers -> @Emitted -> 4 elements :: @Time -> 1 ms]
Frodo2 => [@Flowable#numbers -> @ObserveOn -> RxNewThreadScheduler-3]
  • @RxLogObservable: Annotated functions which return io.reactivex.Observable<T> will print the following information on the log output:
@RxLogObservable
Observable<String> strings() {
  return Observable.just("Hello", "My", "Name", "Is", "Fernando");
}
Frodo2 => [@Observable :: @InClass -> ObservableSamples :: @Method -> strings()]
Frodo2 => [@Observable#strings -> onSubscribe()]
Frodo2 => [@Observable#strings -> onNext() -> Hello]
Frodo2 => [@Observable#strings -> onNext() -> My]
Frodo2 => [@Observable#strings -> onNext() -> Name]
Frodo2 => [@Observable#strings -> onNext() -> Is]
Frodo2 => [@Observable#strings -> onNext() -> Fernando]
Frodo2 => [@Observable#strings -> onComplete()]
Frodo2 => [@Observable#strings -> onTerminate()]
Frodo2 => [@Observable#strings -> @Emitted -> 5 elements :: @Time -> 9 ms]
Frodo2 => [@Observable#strings -> @ObserveOn -> RxCachedThreadScheduler-1]
  • @RxLogSingle: Annotated functions which return io.reactivex.Single<T> will print the following information on the log output:
@RxLogSingle
Single<String> string() {
  return Single.just("My Value");
}
Frodo2 => [@Single :: @InClass -> SingleSamples :: @Method -> string()]
Frodo2 => [@Single#string -> onSubscribe()]
Frodo2 => [@Single#string -> onSuccess() -> My Value]
Frodo2 => [@Single#string -> @Emitted -> 1 element :: @Time -> 0 ms]
Frodo2 => [@Single#string -> @ObserveOn -> RxCachedThreadScheduler-1]
  • @RxLogMaybe: Annotated functions which return io.reactivex.Maybe<T> will print the following information on the log output:
@RxLogMaybe
Maybe<Integer> number() {
  return Maybe.just(1);
}
Frodo2 => [@Maybe :: @InClass -> MaybeSamples :: @Method -> number()]
Frodo2 => [@Maybe#number -> onSubscribe()]
Frodo2 => [@Maybe#number -> onSuccess() -> 1]
Frodo2 => [@Maybe#number -> @Emitted -> 1 element :: @Time -> 0 ms]
Frodo2 => [@Maybe#number -> @ObserveOn -> RxNewThreadScheduler-1]
  • @RxLogCompletable: Annotated functions which return io.reactivex.Completable will print the following information on the log output:
@RxLogCompletable
Completable doSomething() {
  return Completable.fromAction(new Action() {
    @Override public void run() throws Exception {
      Thread.sleep(1000);
    }
  });
}
Frodo2 => [@Completable :: @InClass -> CompletableSamples :: @Method -> doSomething()]
Frodo2 => [@Completable#doSomething -> onSubscribe()]
Frodo2 => [@Completable#doSomething -> onComplete()]
Frodo2 => [@Completable#doSomething -> @Emitted -> 0 elements :: @Time -> 1003 ms]

Enabling Frodo 2

To enable Frodo, a gradle plugin must be applied in your build.gradle:

buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    classpath "com.fernandocejas.frodo2:frodo2-plugin:$project.version"
  }
}

apply plugin: 'com.fernandocejas.frodo2'

//By default frodo2 is ON, although
//we can enable-disable it with this configuration.
frodo2 {
  enabled = true
}

Experimental

  • Frodo 2 works only on Android, Java and Kotlin* projects using Gradle as Build System.

  • In pure Java/Kotlin projects all the debug information will be display using System.out (NOT the case of Android which displays on the logcat). The idea for future versions is to be able to use different Loggers like Log4J or any other alternative for example.

  • Contributions are more than welcome.

Architecture Overview

It generates and weaves code based on annotations at compile time. This code is injected using Aspect Oriented Programming with AspectJ.

For more details please check these articles where there is a deeper explanation with implementation details:

aspectweaving

Known issues

1 - Limitation: Frodo 1 has the ability to detect @SubscribeOn thread but RxJava 2 does not offer any way to grab this information so only @ObserveOn thread information is displayed at the moment.

2 - On Android: Multi module setup (application + android library) will not log annotated methods/classes from Android Library Module but will do it on Android Application Module. The reason behind this, is that the Android Gradle Plugin will build all Android Libraries as release versions, for instance, Frodo is not able to weave any code on the annotated methods/classes (Remember that only weaves in debug versions). There is a workaround for forcing debug versions of your Android Libraries (just be careful in case this is forgotten and you end up shipping a version of your app with RxJava Logging enabled) by adding this line in your build.gradle file:

android {
  defaultPublishConfig "debug"
}

Local Development

Clone the repo and use the scripts listed below in order to to run/install/execute frodo 2 locally:

  • ./install_frodo2.sh - One time execution command for installing frodo library and dependencies.
  • ./run_frodo2_android.sh - Compiles frodo2 and run the android sample application.
  • ./run_frodo2_java - Compiles frodo2 and run the java sample application.
  • ./gradlew runUnitTests - Execute all unit tests in the project.

Contribution

Here you can download and install the java codestyle. https://github.com/android10/java-code-styles

License

Copyright 2018 Fernando Cejas

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.

http://www.fernandocejas.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].