https://kotlinlang.org logo
#gradle
Title
# gradle
a

Adrian Witaszak

03/14/2023, 3:03 PM
Hi. Is it possible to add multiple sourceSets for android and ios? Currently, i've got android and ios which are used by native apps, and react bridge in separate module. I wonder if I can add android("reactNative") and ios("reactNative") sourceSets to KMM module and keep react native-related stuff in there, like, for example, the React Native bridge?
a

Adam S

03/14/2023, 3:30 PM
Do you want to set up multiple targets, or multiple source sets? Maybe this helps: https://kotlinlang.org/docs/multiplatform-set-up-targets.html#distinguish-several-targets-for-one-platform
a

Adrian Witaszak

03/14/2023, 3:31 PM
souceSets. targets will stay the same, android and ios.
6 Views