Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.43 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.43 KB

android-dagger-overrides

An example of configuring Dagger modules to provide test doubles. Check 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 - demonstrates a clean solution using separate modules in Dagger 1
  • dagger2-overrides - demonstrates a hacky solution to override a module in Dagger 2
  • dagger2 - demonstrates a clean solution using separate modules in Dagger 2

License

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 at

    http://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.