PinnedNikola Despotoski·Oct 10, 2025Generate proguard rules out of apiDump outputWhen delivering libraries or proprietary SDKs, obfuscation is just as mandatory as it is for applications. However, integration on the…
PinnedNikola Despotoski·Sep 27, 2021Hands on Google KSPExperience with KSP; not a guide how to use KSP with Room
Nikola Despotoski·Sep 18, 2024Pass data in the Modifier tree and beyondOne of the reasons why the order of Modifiers is important could be summed by passing data from one modifier node to other nodes right of…
Nikola Despotoski·Mar 12, 2024Migrate your composed { } modifiersCompose lint checks used in the project raised warning that composed { } implementation is no longer recommended because of performance…
Nikola Despotoski·May 18, 2022Compose CompositionLocalProviderCompositionLocalProvideris useful for sharing objects between composables without passing them as function parameters. Objects are stored…
Nikola Despotoski·Apr 4, 2022Eliminating backing property type in Kotlin 1.7At one KotlinConf, I don’t quite recall which year it was, overriding backing properties type (eliminating the backing prop completely) was…A response icon2A response icon2
Nikola Despotoski·Nov 2, 2020Repeatedly, I made few mistakes while using the new `registerForActivityResult` API, resulting in…``` Fatal Exception: java.lang.IllegalStateException: Fragment MyFragment{e964a6} (573498bb-7d87–4d58–9e84–59223f13f14c) id=0x7f0a00b3} is…
Nikola Despotoski·Mar 31, 2020Consume Activity result directly in the ViewModelMost common implementation of Delegation pattern is when the responsibility of the class is delegated to a real object of a concrete…
Nikola Despotoski·Dec 4, 2017Centralized LiveData with Kotlin 1.2The very first crash I got when started Kotlin was, you may guess, UninitializedPropertyAccessException, because somewhere I used lateinit…
Nikola Despotoski·Nov 29, 2017Make use of Kotlin operator overloading for your RecyclerView.Adapter operationsI always liked and found entertaining messing around with operators in C++, back in the days.A response icon3A response icon3