An open API service indexing awesome lists of open source software.

https://github.com/florent37/github

Sample project using Dagger2, RxJAva, RetroLambda and Carpaccio
https://github.com/florent37/github

Last synced: 8 months ago
JSON representation

Sample project using Dagger2, RxJAva, RetroLambda and Carpaccio

Awesome Lists containing this project

README

          

# Github


Android app on Google Play

This Github android sample application can give you a quick summary of your github repos.

![Alt sample](https://raw.githubusercontent.com/florent37/Github/master/screens/stats_small.png)
![Alt sample](https://raw.githubusercontent.com/florent37/Github/master/screens/events_small.png)

#[Dagger2](google.github.io/dagger/)

```java
@Singleton
@Component(modules = {GithubModule.class, ContextModule.class})
public interface GithubComponent {

GithubAPI githubApi();
RepoManager repoManager();
UserManager userManager();

void inject(MainActivity mainActivity);
void inject(ListRepoFragment listRepoFragment);
void inject(ListEventFragment listEventFragment);
}
```

#[RxAndroid](https://github.com/ReactiveX/RxAndroid) & [RetroLambda](https://github.com/evant/gradle-retrolambda)

Using the github API with Retrofit

```java
githubAPI.userEvents(userManager.getUser().getLogin())
.observeOn(AndroidSchedulers.mainThread())
.onErrorReturn(null)
.subscribe(events -> {
if (events != null) carpaccio.mapList("event", events);
});
```

#[Carpaccio](https://github.com/florent37/Carpaccio)

```xml


```