Categories dagger-2

8 posts

Auto Added by WPeMatico

Fragment Espresso Testing With Dagger’s Android Injector

A few months ago I have written about how to test Activity that uses Dagger’s AndroidInjector in an Espresso test. The solution worked well for an Activities but if you’re using Fragments, this might add additional complexity, as always, and we need to refine the solution in order to test […]

Modern Android development with Kotlin Part 4

It is really hard to find one project that covers all the things that are new in Android Development, so I decided to write one. 0. Android Studio 3 Part 11. Kotlin language Part 12. Build Variants Part 13. ConstraintLayout Part 14. Data binding library Part 15. MVVM architecture + repository […]

The New Dagger 2 Android Injector

Dagger 2 Android Injector How to use the new Dagger 2 Android Injector? This article is all about implementing the new Dagger 2 Android Injector in an Android application. In case, you are not familiar with Dagger 2, refer the below article. Introduction to Dagger 2, Using Dependency Injection in Android […]

Dagger 2 for Android Beginners — Dagger 2 part II

This story is the fifth part of the series, Dagger 2 for Android Beginners. If you did not read the previous one, you can start from below. Dagger 2 for Android Beginners — Introduction Series Pitstops Dagger 2 for Android Beginners — Introduction Dagger 2 for Android Beginners — DI part I Dagger 2 for Android […]

Activity Espresso Test With Dagger’s Android Injector

The Dagger team did a great job with , using AndroidInjector we saw how we can test the code with minimal overhead code that written once for all Activity test. Happy testing https://medium.com/media/87c27c6bd6c8dea21c9726d9564b27d6/href Activity Espresso Test With Dagger’s Android Injector was originally published in ProAndroidDev on Medium, where people are continuing […]

Dagger 2 for Android Beginners — Introduction

Dagger is a fully static, compile-time dependency injection framework for both Java and Android. It is an adaptation of an earlier version created by Square and now maintained by Google. (source) Who should read? If you’re a budding Android developer, who started with Android directly and learning Java parallely — this is for you. […]