google / automotive-design-compose

Automotive Design for Compose is an extension to Jetpack Compose that allows every screen, component, and overlay of your Android App to be defined in Figma, and lets you see the latest changes to your Figma design in your app, immediately!
https://google.github.io/automotive-design-compose/
Apache License 2.0
101 stars 14 forks source link

[Draft / Not Compiling] Enable Kotlin Symbol Processor 2 Preview #1008

Open timothyfroehlich opened 4 weeks ago

timothyfroehlich commented 4 weeks ago

Changes for KSP2 described here: https://android-developers.googleblog.com/2023/12/ksp2-preview-kotlin-k2-standalone.html

timothyfroehlich commented 4 weeks ago

@rylin8 I gave it a shot with the latest KSP2 Preview, but no luck. Getting errors like this:


> Task :validation-app:kspDebugKotlin FAILED
e: [ksp] Invalid parameter type @Composable [@Composable] Function1<ComponentReplacementContext, Unit> property "replaceNode"
e: [ksp] Invalid parameter type Bitmap?? property "imgOne"
e: [ksp] Invalid parameter type Bitmap?? property "imgTwo"
e: [ksp] Invalid @Design parameter type com.google.devtools.ksp.impl.symbol.kotlin.KSCallableReferenceImpl@29cf0987
e: [ksp] Invalid @Design parameter type @Composable com.google.devtools.ksp.impl.symbol.kotlin.KSCallableReferenceImpl@3444ba41