Here's a random dream: Android resources ids (`R.s...
# android
l
Here's a random dream: Android resources ids (
R.sometype.stuff
) generated as inline classes.
🙏 1
t
And multiplatform strings.xml!
l
Well, multiplatform
strings.kt
, no?
😁 1
m
Same for Visibility or LayoutParams which could be inline classes
l
@Melvin Biamont
LayoutParams
couldn't be inline classes, they have more than one field. Regarding visibility, it'd require inline enums (which R8 already do), but it's often easier to just use
isVisible
and alike extensions from AndroidX core KTX.
a
l
@alex009 You're working on it?
a
yes. we already have MR (multiplatform resources) expect/actual where we should add manually new keys when add strings to resources, and plan to implement gradle plugin for generation from some strings.xml multiplatform resources & MR class
🚀 1
l
I'd be interested to see it! Feel free to share even if not fully polished.