Thread
#build-tools
    g

    greenrobot

    5 years ago
    We would like to understand extension functions a bit better. How does the compiler know they are available? We have a class transformer in place as part of our Gradle plugin, and after that step extensions functions raise compiler errors when used from another module. (Context: https://github.com/greenrobot/ObjectBox/issues/134)
    yole

    yole

    5 years ago
    make sure you’re not corrupting Kotlin’s
    @Metadata
    annotations
    g

    greenrobot

    5 years ago
    That's the only source for the Kotlin compiler? The actual classes with extension functions should not be transformed, but just copied on a file level. So @Metadatashould be untouched. Can you think of another reason?
    yole

    yole

    5 years ago
    there are also
    .kotlin_module
    files, they should also be preserved
    g

    greenrobot

    5 years ago
    ah OK, will check