It is a smart Kotlin Dependency Injection Library.

Its features are:

Terminology:


z

Android frameworks and libraries (or just libraries in general), are a set of implementations of behavior that are written in programming languages and have a well-defined interface.

These libraries generally include documentation, configuration data, message templates, help data, pre-written code and subroutines, values, classes, to name a few.

One of…


This UI topic deserves its own callout because Jetpack Compose IS THE FUTURE UI TOOLKIT FOR ANDROID. It’s pretty huge, folks. And it’s been out there to play around with for a while. …


Retrofit is type-safe HTTP client that allows you to define your REST API as an interface. You can manipulate the API requests’ body, headers, query parameters and much more via annotations, which makes everything clean and simple. Retrofit also allows synchronous and asynchronous API calls execution.

interface ApiService {

@GET(“movie/{id}”)


As Android developers, a lot of our time is spent staring at Gradle builds. While the best remedy to speed up your builds is to invest in a powerful machine, you can also save time by using shortcuts efficiently.

There are plenty of shortcuts available in the IDE — I’ll…


Gradle is an easily customizable build system that supports building by a convention model. Gradle is written in Java, but the build language is Groovy DSL (domain spec language). Gradle not only supports multi-project builds, but it also supports dependencies like Ivy and Maven. Gradle also can support building non-Java projects.

The entire process of improving your build speed is as follows:

When developing…


10 Ways to Improve Your Android App’s Performance

Activity Leaks :

Our first friend in things that we need to fix is Activity leaks, and let’s see how they happen. Activity leaks, or memory leaks in general, are extremely dangerous. Why do they happen? If we hold the reference in…


Top 34 Techniques to Get First 100,000 Downloads For Your App

As per the recent statistics, there are more than 1.4 million apps on Apple’s App Store. For the Google Play store, the number is 1.5 million. The competition in the app market is fierce. …


I have already built a whatsApp like messenger ,

I have idea about it. First you need to choose a protocol for messaging, the one Facebook, whatsApp, Google or me uses is XMPP and a Server which was already implemented using that protocol like EJabberd are Erlang based,OpenFire, Tigase (Both are JAVA based).Out of all the above servers Ejabberd…


What is Dependency Injection? Dependency Injection is a design pattern, or you can say a concept of Object Oriented Programming, where we don’t create an object of another class inside a class using the new keyword (for Java). Instead, we supply the needed object from outside.

SourceCode

https://github.com/rajextreme9476/MyApplication

Project Structure

Set it up in build.gradle file:

//these two lines for dagger
compile 'com.google.dagger:dagger:2.13'
annotationProcessor 'com.google.dagger:dagger-compiler:2.13'
//Retrofit
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'

Output

Raviraj Desai

Android/Hybrid Developer at Indigo Consulting Mumbai, Maharashtra, India

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store