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
- Host: GitHub
- URL: https://github.com/florent37/github
- Owner: florent37
- License: apache-2.0
- Created: 2015-07-31T21:36:59.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-04T13:15:08.000Z (about 8 years ago)
- Last Synced: 2025-04-20T18:38:28.429Z (9 months ago)
- Language: Java
- Homepage:
- Size: 2.2 MB
- Stars: 31
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Github
This Github android sample application can give you a quick summary of your github repos.


#[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
```