Skip to content

Zsteven44/RxProj

Repository files navigation

Libraries Utilized

Retrofit (Retrofit-RxJava2Adapter)
    - Created ImgurService interface, with gallery search endpoint that takes path
    and query arguments.  Header annotation is attached to the call.
    - ServiceGenerator creates Retrofit.Builder object that sets base url, converterfactory,
    calladapterFactory, and OkHttp3 client.
    - API requests return Observable response via service interface using the retrofit-rx adapter.
    - ServiceGenerator instantiates ImgurService, which proceeds to make calls with
    Observable<ImgurGalleryList> return type.

RxJava2 (RxAndroid and RxBinding)
    - Created Observable from network calls via retrofit-rxjava adapter.
    - Subscribed to ImgurService observable with DisposableSingleObserver that adds the
    response body via onNext(), asynchronously, observers are subscribed on separate
    IO thread with callbacks executed on MainThread provided via RxAndroid library.
    - ImgurFragment search button observable is subscribed to for onClick events via
    RxBinding library.
    - Observables are added to CompositeDisposable object for easy garbage cleanup
    when fragment is destroyed.

LiveData
    - Sync ViewModel fields to Room table values.
    - Links views to ViewModel fields for updating data.

ViewModel
    - Retrieves data from repository to be observed by the view.

Gson (Retrofit-GsonConverter)
    - GsonConverter added to Retrofit client to map response body JSON to typed
    object models.

Timber
    - Timber DebugTree planted in Application class when starting in Debug mode.
    - Application log statements are made using Timber static object.

OkHttp3 (OkHttp3LoggingInterceptor)
    - LoggingIntercepter added to OkHttp3 client which is then added to Retrofit
    client.  Logs all data from resulting network requests and responses.

Butterknife
    - Binds layout views to their respective Activities, Fragments and Viewholders,
    for cleaner code.

Glide
    - Handles image bitmap rendering asynchronously.


Support Libraries
Dagger
LeakCanary
Stetho

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy