https://github.com/jshvarts/daggerandroidscopessampleapp
Follows https://github.com/vestrel00/android-dagger-butterknife-mvp to build up custom scopes
https://github.com/jshvarts/daggerandroidscopessampleapp
butterknife dagger-2 dagger-android
Last synced: 5 months ago
JSON representation
Follows https://github.com/vestrel00/android-dagger-butterknife-mvp to build up custom scopes
- Host: GitHub
- URL: https://github.com/jshvarts/daggerandroidscopessampleapp
- Owner: jshvarts
- Created: 2017-08-23T01:02:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-07T02:11:27.000Z (about 8 years ago)
- Last Synced: 2025-04-02T09:04:11.779Z (7 months ago)
- Topics: butterknife, dagger-2, dagger-android
- Language: Java
- Homepage:
- Size: 182 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DaggerAndroidScopesSampleApp
[](https://travis-ci.org/jshvarts/DaggerAndroidScopesSampleApp)
Dagger 2.11 setup with **dagger-android** module demonstrating using custom scopes with ButterKnife.
This project is based on the excellent sample project https://github.com/vestrel00/android-dagger-butterknife-mvp
## Branches
1. **master**
Uses regular Activity and Fragment classes with a minSdkVersion of 17.
2. **[replace-Subcomponents-with-ContributesAndroidInjector](https://github.com/jshvarts/DaggerAndroidScopesSampleApp/tree/replace-Subcomponents-with-ContributesAndroidInjector)**
Based on master. Replaces `@Subcomponent`s with `@ContributesAndroidInjector`, new in Dagger 2.11.
3. **[use-support-library](https://github.com/jshvarts/DaggerAndroidScopesSampleApp/tree/use-support-library)**
Based on [replace-Subcomponents-with-ContributesAndroidInjector](https://github.com/jshvarts/DaggerAndroidScopesSampleApp/tree/replace-Subcomponents-with-ContributesAndroidInjector). Uses Android Support library to extend support from API 17 to 14.
4. **[mvp](https://github.com/jshvarts/DaggerAndroidScopesSampleApp/tree/mvp)**
Based on [replace-Subcomponents-with-ContributesAndroidInjector](https://github.com/jshvarts/DaggerAndroidScopesSampleApp/tree/replace-Subcomponents-with-ContributesAndroidInjector). Implements MVP pattern.