Git Product home page Git Product logo

yash786agg / dagger2kotlin Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9.96 MB

Dagger2Kotlin app shows up implementation Dagger2, Retrofit2, MVVM architecture, kotlin co-routine along and a non-data binding adapter with dagger2.

License: Apache License 2.0

Kotlin 79.97% Java 20.03%
android android-app android-architecture android-application kotlin kotlin-android databinding-android databindingadapter databinding dagger2

dagger2kotlin's Introduction

Dagger2Kotlin

Dagger2

A fast dependency injector for Android.

Dagger is a compile-time framework for dependency injection. It uses no reflection or runtime bytecode generation, does all its analysis at compile-time, and generates plain Java source code.

Dagger is actively maintained by the same team that works on [Guava]. Snapshot releases are auto-deployed to Sonatype's central Maven repository on every clean build with the version HEAD-SNAPSHOT. The current version builds upon previous work done at [Square][square].

Demo

Dagger2Kotlin

Dagger2 Installation

Android Gradle

// Add Dagger dependencies
dependencies {
  compile 'com.google.dagger:dagger:2.x'
  annotationProcessor 'com.google.dagger:dagger-compiler:2.x'
}

Kotlin Coroutine

Kotlin 1.1 introduced coroutines, a new way of writing asynchronous, non-blocking code (and much more).Coroutines not only open the doors to asynchronous programming, but also provide a wealth of other possibilities such as concurrency, actors, etc

Coroutine Installation

dependencies {
    ...
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.1"
}

Prerequisites

  • Android Studio 3.0
  • Android Device with USB Debugging Enabled

Built With

Thanks for reading this repo. Be sure to click β˜… below to recommend this repo if you found it helpful. It means a lot to me.

For more about programming, follow me on Medium

Also, Let’s become friends on Linkedin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.