Adit Lal
  • Home
  • About

Android

A collection of 9 posts

The Compose Styles API: Building 8 Labs to Master Declarative Styling
Android

The Compose Styles API: Building 8 Labs to Master Declarative Styling

Hands-on exploration of compose-foundation 1.11.0-alpha06's experimental Styles API. 8 interactive labs covering interaction states, transforms, and more.

  • Adit Lal
    Adit Lal
13 min read
Hunting the Play Store Heisenbug: R8, ART Verify Mode, and Firebase Init Races
Android

Hunting the Play Store Heisenbug: R8, ART Verify Mode, and Firebase Init Races

App crashes with "FirebaseApp is not initialized" only in Play Store Pre-Launch Reports? Fresh installs run in ART's interpreted mode, turning a 1ms race into 100ms+. A deep dive into verify mode, R8 Full Mode, and the latch fix.

  • Adit Lal
    Adit Lal
13 min read
Ad-hoc polymorphism in JSON with Kotlin
Json

Ad-hoc polymorphism in JSON with Kotlin

This post describes a way of using the GSON and Mosi library with Kotlin data classes with Polymorphic JSON data with null-safety and default values.

  • Adit Lal
    Adit Lal
5 min read
Kotlin DSL - let's express code in "mini-language" - Part 5 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 5 of 5

In this post, we take a look at building our test cases by using a simpler language-like DSL. I wanted a “simple” low overhead way of setting up, expressing and testing many combinations of inputs and outputs.The goal is simple , create DSL for expressing the tests clearly and to

  • Adit Lal
    Adit Lal
4 min read
Kotlin DSL - let's express code in "mini-language" - Part 4 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 4 of 5

In this post, we take a look at building a simpler API to work with Broadcast receiver, which will automatically unregister itself when the Activity pauses, and register again when it resumes. Broadcast Receiver To build this , we first create a class which observes  lifecycle events class Broadcas

  • Adit Lal
    Adit Lal
3 min read
Kotlin DSL - let's express code in "mini-language" - Part 3 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 3 of 5

In this post , we take a look at some of the use cases of DSLs in Android.

  • Adit Lal
    Adit Lal
4 min read
Kotlin DSL - let's express code in "mini-language" - Part 2 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 2 of 5

Part 2 of series on how to work with Kotlin DSLs

  • Adit Lal
    Adit Lal
6 min read
Kotlin DSL - let's express code in "mini-language"  - Part 1 of 5
Dsl

Kotlin DSL - let's express code in "mini-language" - Part 1 of 5

In this series , we will take a look at what DSLs are and how to build our custom Kotlin DSLs and apply them to multiple use cases for Android. What is DSLThe concept of DSL or domain-specific language is pretty simple. A domain specific language is a construct that allows

  • Adit Lal
    Adit Lal
2 min read
Kotlin — Quick Shared Element transition trick
Android

Kotlin — Quick Shared Element transition trick

Shared Element Transition : Having a view that moves from one activity to another in a smooth motion. Let’s say you have more than one view to do a shared element transition in your app, how do you do it in Kotlin ? We would like to transition multiple views like

  • Adit Lal
    Adit Lal
2 min read
Adit Lal © 2026
Latest Posts Facebook Twitter Ghost