Allan Wang
07/18/2018, 4:22 AMfun Context.color(@ColorInt color: Int) = ContextCompat.getColor(this, color)
, came at a cost of a method count. I made a library similar to ktx back when I first started with Kotlin, and I had always thought that it would come at no cost to a developer because inlined functions were fully inlined. I guess if proguard strips away the unused methods that works too, but now I’m more conscientious about what I add since inline didn’t behave as I originally thought.benleggiero
07/18/2018, 5:27 PMAllan Wang
07/18/2018, 9:41 PMbenleggiero
07/18/2018, 11:22 PM