Perhaps more of a gradle question, but thought others here would have seen the same thing: I am doing a Kotlin shared lib/framework across Android and iOS as laid out in the MULTIPLATFORM doc. All is good so far. One little thing that bugs is that in Android Studio I see the whole ios section. How can I adjust my settings.gradle to not include the ios when gradle is run from within AS?
And it still works for the iOS build for you? I am building the common for both Android and iOS. I will try it, but have my doubts. 🙂
a
AnaR
07/05/2018, 4:39 PM
It was similar to the part 3, where it says: Alternatively you can add the multiplatform library subprojects right into the Android Studio one instead of creating a composite build. To do this you need to declare them along with their directories in androidApp/settings.gradle:
AnaR
07/05/2018, 4:40 PM
The iOS build works too. I actually started with the iOS first, since was less sure of that one. So, that was built using an appcode template. Then, created the android project and included just the common and android in it directly.
t
tylerwilson
07/05/2018, 5:09 PM
okay, i guess i was doing the former - i use an includeBuild in my app that points to the common section which contains the android, common and ios like in their sample. thank you!