https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
j

Jon Bailey

10/31/2023, 10:57 AM
I'm just trying out Kotlin 1.9.20 with the new default hierarchy template. there is now code completion for the source sets for the default hierarchy (https://kotlinlang.org/docs/whatsnew-eap.html#enjoy-improved-tooling-support) But there isn't for android test source sets (androidUnitTest, androidInstrumentedTest), just wondering why this was missed? The documentation for the template says that source sets are created for *Test just like *Main.
n

Nico Richard

10/31/2023, 5:30 PM
I'm coming up against the same issue myself.
For me I think what I needed to do was to continue using the
getting
syntax for this one
Copy code
val androidInstrumentedTest by getting { /*** dependencies, etc ... ***/ }
and for me I also needed to move my source directory
mv src/androidTest src/androidInstrumentedTest
j

Jon Bailey

10/31/2023, 5:45 PM
Yeah I've just kept using the getting syntax for now, would be nice if it was included though as the docs say it is.
btw if you've moving to the new Android source set layout from androidTest then I think you want androidUnitTest instead of androidInstrumentedTest
n

Nico Richard

10/31/2023, 6:35 PM
I'll try that 👍, I got my iOS working but I have
Unresolved reference: Test
now for android
3 Views