SafeDK
Sign upAdd Your SDK

A fast dependency injector for Android and Java.

The best classes in any application are the ones that do stuff: the BarcodeDecoder, the KoopaPhysicsEngine, and the AudioStreamer. These classes have dependencies; perhaps a BarcodeCameraFinder, DefaultPhysicsEngine, and an HttpStreamer.

To contrast, the worst classes in any application are the ones that take up space without doing much at all: the BarcodeDecoderFactory, the CameraServiceLoader, and the MutableContextWrapper. These classes are the clumsy duct tape that wires the interesting stuff together.

Dagger is a replacement for these FactoryFactory classes. It allows you to focus on the interesting classes. Declare dependencies, specify how to satisfy them, and ship your app.

By building on standard javax.inject annotations (JSR-330), each class is easy to test. You don't need a bunch of boilerplate just to swap the RpcCreditCardService out for a FakeCreditCardService.

Dependency injection isn't just for testing. It also makes it easy to create reusable, interchangeable modules. You can share the same AuthenticationModule across all of your apps. And you can run DevLoggingModule during development and ProdLoggingModule in production to get the right behavior in each situation.

SDK for Android

Fix: Correctly emit generated code for binding parameterized types.

Documentation

Example A

Selected Apps that use this SDK

4zscblt5hestyxqre5v5ptiih hvlnejkdkjopv9ozu1qui7yuuckdqtws1gbjnv2emmji61zbhjqkh

Retrica - Selfie, Sticker, GIF

Amb3gdbdkoxjk1oh 4bm3jjgoztwudqepzsnp5ps2nro49v9sn3 xzdcmrqgmctmslnhi7 zchrqiz2o

Camera360- Selfie Photo Editor

O7env 4rdux1kttdduwojlx0oc5iuvxbua72oy ebpgqwxc53ca8sddjz1q4nnu5agpjhetagbnzpvji

Subway Surfers

Gcpic7qxmlfdwc6gnnftb0yp8pkh86m7penhawfeahd lotc wm5lg5a3fwbfkmivuluqaxilefjhay2

Twitter

Ctfd520ihgxrkmqcejuqe8u12nczvmia9u4x7tguhkxot0zcz3o4pf388l z26kfstkbbrolc69oiwuj

Google Street View

S45qw2skq2q5wybftm6ob0p4szdnbppvmcser8ud2vxbk9mbsuabb7eki oiwbjyetmakpfodqhvm 1w

Google Drive

Dknj6uzeh4xtd7up 10sp8biy6neqyeqrsbduyq2ung1vqmwqj6det3tclbk2wgd pt 5bdqhnqtzhio

Google+

Similar SDKs

MORE

Reviews

Rate Now
0
0
0
0
0
0

Start a new discussion about Dagger

×
0
/1000

More from this Developer

MORE
Login