Is it possible to use Jetpack Compose within multi...
# compose
j
Is it possible to use Jetpack Compose within multiplatform modules?
Disclaimer: I know this question has been asked multiple times and the Jetpack Compose team has answered it before, but I couldn't find anything recent And of course I know about PeopleInSpace, but in this case the whole set of composable reside in a single Android specific module while I aim to distribute them in multiple multiplatform modules
j
I will check this today or tomorrow
j
Thanks
j
@JCollardBovy yes, it is working, take care to add manually useIR, in KTS using configureEach:
Copy code
tasks.withType<KotlinCompile>().configureEach {
        kotlinOptions {
            jvmTarget = JavaVersion.VERSION_1_8.toString()
            useIR = true
        }
    }
Well, I am not sure, some times it detects the IR and some times not