rakshakhegde / Daggerandroidinjector
Dagger Sample Project on how to use the new dagger-android module for Dagger v2.11
Programming Languages
java 68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Daggerandroidinjector
CoinverseCoinverse Open App is the first audiocast app for cryptocurrency news. 🚀
Stars: ✭ 133 (-31.79%)
Mutual labels: sample, dagger
MaterialisticA material-design Hacker News Android reader
Stars: ✭ 2,163 (+1009.23%)
Mutual labels: dagger
RandomdataRandom data generator
Stars: ✭ 157 (-19.49%)
Mutual labels: sample
UnitymathreferenceMath reference for games and more. All visualized in Unity3D.
Stars: ✭ 166 (-14.87%)
Mutual labels: sample
ApplicationproviderRetrieve the android application and the current activity from anywhere
Stars: ✭ 162 (-16.92%)
Mutual labels: dagger
ReactnativeuniversalA demonstration of sharing javascript react-native code between mobile, desktop and web environments
Stars: ✭ 178 (-8.72%)
Mutual labels: sample
FluttergamesFlutter app for purchasing and renting games.
Stars: ✭ 182 (-6.67%)
Mutual labels: sample
Cpp Awesome PackAwesome Sample Pack of C/C++ Codes
Stars: ✭ 162 (-16.92%)
Mutual labels: sample
NewgankCool Android client for gankio (Java).
Stars: ✭ 179 (-8.21%)
Mutual labels: dagger
PointasnlPointASNL: Robust Point Clouds Processing using Nonlocal Neural Networks with Adaptive Sampling (CVPR 2020)
Stars: ✭ 159 (-18.46%)
Mutual labels: sample
Nodejs Docs SamplesNode.js samples for Google Cloud Platform products.
Stars: ✭ 2,309 (+1084.1%)
Mutual labels: sample
WorkoutwotchRepository for my video series on building an iOS app in .NET.
Stars: ✭ 156 (-20%)
Mutual labels: sample
Clean Architecture SwiftuiSwiftUI sample app using Clean Architecture. Examples of working with CoreData persistence, networking, dependency injection, unit testing, and more.
Stars: ✭ 2,925 (+1400%)
Mutual labels: sample
Cognitive Face WindowsWindows SDK for the Microsoft Face API, part of Cognitive Services
Stars: ✭ 175 (-10.26%)
Mutual labels: sample
Play Scala Websocket ExampleExample Play Scala application showing WebSocket use with Akka actors
Stars: ✭ 194 (-0.51%)
Mutual labels: sample
Cognitive Face IosiOS SDK for the Microsoft Face API, part of Cognitive Services
Stars: ✭ 191 (-2.05%)
Mutual labels: sample
Dagger Android Injector
Update: Latest Dagger 2.11 has provided some helper classes. Check out App.java for the updated simplified usage.
Reddit discussion
Sample project to demonstrate how to use the new dagger-android module in latest Dagger v2.11. Along with Proguard rules. Also shows MVVM pattern and Unit Test setup with Mockito on the side.
Show some ❤️
Motivation
Right now you maybe getting the Application instance from Activity and injecting ("hydrating") instances based off of that. But the latest version of dagger basically decouples your Activity from knowing who your Injector
is.
So this sample project was built because I myself spent a bit of time getting dagger-android module setup at my company Instavans. There are things like getting all the correct library versions to work together. So here is a working starting point on how to use Dagger's @ContributesAndroidInjector
which you can build upon.
(click on the images to go to the source)
License
Copyright 2017 Rakshak R.Hegde
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.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at
[email protected].