https://github.com/egorand/android-dagger-overrides
An example of configuring Dagger modules to provide test doubles, covers both Dagger 1 and Dagger 2.
https://github.com/egorand/android-dagger-overrides
android android-dagger dagger dependency-injection
Last synced: about 2 months ago
JSON representation
An example of configuring Dagger modules to provide test doubles, covers both Dagger 1 and Dagger 2.
- Host: GitHub
- URL: https://github.com/egorand/android-dagger-overrides
- Owner: Egorand
- License: apache-2.0
- Created: 2016-06-29T15:22:49.000Z (almost 9 years ago)
- Default Branch: dagger1-overrides
- Last Pushed: 2016-06-29T16:04:36.000Z (almost 9 years ago)
- Last Synced: 2025-03-25T07:51:13.515Z (2 months ago)
- Topics: android, android-dagger, dagger, dependency-injection
- Language: Java
- Size: 112 KB
- Stars: 11
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# android-dagger-overrides
An example of configuring Dagger modules to provide test doubles.
Check [Providing test doubles with Dagger 1 and Dagger 2](http://blog.egorand.me/providing-test-doubles-with-dagger-1-and-dagger-2/).This repo contains the following branches:
- dagger1-overrides - demonstrates the creation of a test module using the overrides parameter in Dagger 1
- [dagger1](https://github.com/Egorand/android-dagger-overrides/tree/dagger1) -
demonstrates a clean solution using separate modules in Dagger 1
- [dagger2-overrides](https://github.com/Egorand/android-dagger-overrides/tree/dagger2-overrides) -
demonstrates a hacky solution to override a module in Dagger 2
- [dagger2](https://github.com/Egorand/android-dagger-overrides/tree/dagger2) -
demonstrates a clean solution using separate modules in Dagger 2License
-------Copyright 2016 Egor Andreevici
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 athttp://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.