I am trying to use figma relay with multiplatform....
# multiplatform
f
I am trying to use figma relay with multiplatform. Currently, the generation of the compose functions does not work. Is it supposed to work? Probably, I am missing something in the build files.
i
Did you add this to your root build.gradle?
Copy code
id 'com.google.relay' version '0.3.07'
k
Does it work with Multiplatform? I didn’t think it did but I didn’t get too far
f
@Imre Kaszab Yes, it is in the build gradle of the shared code module. To me, it looks like that there is no build task generated for the shared module because it is not a
kotlin("android")
module, but a
kotlin("multiplatform")
module. I have also added there in the android configuration the compose settings. Without luck.
Copy code
android {
....
    buildFeatures {
        compose = true
    }
    composeOptions {
        kotlinCompilerExtensionVersion = "1.4.6"
    }
}
i
When I tried Relay with a simple android project before and it worked well. I’ve just struggled to configure first because I forgot to add the plugin to the project 😫 @Kevin S has right. I thought that it could work in the
shared
module. Even though you have the gradle tasks of Relay there, it does not generate the compose code. I hope it will work with that in the near future.
117 Views