https://kotlinlang.org logo
#compose
Title
# compose
b

bobko

02/24/2020, 1:32 PM
I wonder why calling Composable function from regular one doesn't yield any compiler error? (I'm using 1.3.61 Kotlin and latest dev05 compose lib)
k

Klaas Kabini

02/24/2020, 5:39 PM
That does not sound right. Do you have these enabled in your build.gradle
Copy code
composeOptions {
        kotlinCompilerExtensionVersion = "0.1.0-dev05"
    }

    buildFeatures {
        compose = true
    }
b

bobko

02/24/2020, 7:18 PM
Thanks! No I don't have such options enabled in my gradle script (surprisingly everything works without these flags). I've failed to add these options to my script because I use Gradle Kotlin DSL. But your example in Groovy. If you know how to convert your code to Kotlin DSL I would much appreciate.
k

Klaas Kabini

02/24/2020, 7:36 PM
This is in kotlin dsl not groovy. if it was in groovy it would be
Copy code
buildFeatures{
  compose true
}
l

Leland Richardson [G]

02/24/2020, 9:02 PM
note that in the next release things will fail much earlier if you’re not using our compiler plugin
surprisingly everything works without these flags
Simple code might have worked, but there is definitely code that would not work properly without those flags
2 Views