Combining the two newest libraries from Jetpack to provide dependencies to Initializers

(source: https://www.pexels.com/photo/rocket-launch-space-discovery-23783/)

Step 1: Hilt dependencies

  1. In your project’s root build.gradle file:


(source: https://tinyurl.com/y4fdp3bz)
  1. It suggests to use Initializer classes inside your Dagger setup.


Single expression function.


Animations. I mean animations.

© Walt Disney Productions — Walt Rights Reserved (source: https://pinterest.com/pin/274719646002001433/)


TLDR:

This does not give the full picture, so I suggest you keep on reading…

1. Keeping arguments in one line will make the change less visible:


The elephant in the room.

(source: https://www.artrust.ch/banksy-barely-legal-among-irreverent-prints-and-painted-elephant/?lang=en)

1. Do not use Reflection to violate limitations set by other developers.


here’s why it’s a game changer for Annotation Processing.

Annotation processors cannot modify exisiting code.


A story of a one-hour side project that took half of the night.

Story background.


(source: https://www.pexels.com/photo/abstract-art-background-blue-430207/)


Layout comments

(source: https://www.pexels.com/photo/building-concrete-construction-job-site-7931/)

Tip:

If some part of your layout xml is not clear right off the bat (e.g. the existence of seemingly unnecessary View or weird parameter), mark your intentions with a comment (in this xml).

Explanation:

Bartek Lipinski

senior android engineer @reddit | former android tech lead @getthefabulous | recovering feature creep 💉 | https://github.com/blipinsk

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