Thread
#compose
    Kareem Waleed

    Kareem Waleed

    1 year ago
    I have a method with the signature :
    fun map(name: String): @Composable ()->Unit
    . I need to generate this function using
    KotlinPoet
    but I can’t add
    @Composable
    to the return type, any clues how to do it ?
    j

    jw

    1 year ago
    #squarelibraries
    Tldr: call annotated on LambdaTypeName
    Kareem Waleed

    Kareem Waleed

    1 year ago
    What version of the library should I use to find the method you mentioned ?
    j

    jw

    1 year ago
    The latest. Is there any reason to not use the latest?
    Kareem Waleed

    Kareem Waleed

    1 year ago
    Trying to use the version from the docs
    1.9.0
    giving me an error. Can’t find the package
    com.squareup.kotlinpoet
    Cannot use it in Java/Kotlin module starting from version 1.7 and above
    j

    jw

    1 year ago
    File a bug?
    Kareem Waleed

    Kareem Waleed

    1 year ago
    Yea sure, thank you 😄