PinnedNikola DespotoskiHands on Google KSPExperience with KSP; not a guide how to use KSP with Room3 min read·Sep 27, 2021----
Nikola DespotoskiMigrate your composed { } modifiersCompose lint checks used in the project raised warning that composed { } implementation is no longer recommended because of performance…2 min read·Mar 12, 2024----
Nikola DespotoskiCompose CompositionLocalProviderCompositionLocalProvideris useful for sharing objects between composables without passing them as function parameters. Objects are stored…2 min read·May 18, 2022----
Nikola DespotoskiEliminating 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…2 min read·Apr 4, 2022--2--2
Nikola DespotoskiRepeatedly, 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…1 min read·Nov 2, 2020----
Nikola DespotoskiConsume 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…2 min read·Mar 31, 2020----
Nikola DespotoskiCentralized LiveData with Kotlin 1.2The very first crash I got when started Kotlin was, you may guess, UninitializedPropertyAccessException, because somewhere I used lateinit…2 min read·Dec 4, 2017----
Nikola DespotoskiMake 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.2 min read·Nov 29, 2017--3--3
Nikola DespotoskiParameterized ViewModelProvider(s)When I thought I’m the first one to experience hard time injecting parameterized ViewModel into Activity/Fragment, stretched my fingers to…2 min read·Jul 19, 2017--2--2
Nikola DespotoskiTip: Consume Cursor as RxJava2 IterableThis is going to be really short tip how to iterate over Cursor using RxJava. I promise!1 min read·Jan 27, 2017--1--1