TIL that you can seemingly use named Android srcSe...
# multiplatform
c
TIL that you can seemingly use named Android srcSets as you would in an android app. but in kmp. Maybe well known at this point. but i didn't realize it was that easy. aka. you can do this: androidMain androidMainDebug (src set for debug builds) androidMainRelease (src set for release builds) Edit: On that note... can i create src sets for different buildVariants? like free and paid?
d
Yes, full flavour dimension functionality elides nicely with KMP, I've used it extensively.
The Android source-set name suffixes from the Android plugin get inserted into the resulting KMP source-set name with pattern:
androidFlavor(s)VariantMain
Examples if I have dimensions for color and taste:
androidRedSweetReleaseMain
androidGreenUmamiDebugMain
etc etc.
c
What about debug and release? Do those stay as androidMainDebug or androidDebugMain?
p
@Colton Idle what does TIL stand for?
p
TIL 🙂 Thanks
today i learned 3