Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add support for K2 compiler. #371

Open
lubo-pisk opened this issue Jan 11, 2024 · 0 comments
Open

Feature request: Add support for K2 compiler. #371

lubo-pisk opened this issue Jan 11, 2024 · 0 comments

Comments

@lubo-pisk
Copy link

lubo-pisk commented Jan 11, 2024

I have following configuration:

K2 Compiler
Kotlin 2.0.0-Beta1
Kotlin KSP 2.0.0-Beta1-1.0.15
Showkase 1.0.2

and attribute with annotation:

@ShowkaseTypography(group = "My Styleguide")
val headline1Medium = TextStyle(
   fontFamily = Roboto,
   fontSize = 24.sp,
   lineHeight = 35.sp,
   fontWeight = FontWeight.W500,
)

Generated class:

package cz.lubo.pisk.style.res.theme

import com.airbnb.android.showkase.models.ShowkaseBrowserTypography

public val body1BoldMyStyleguideBody1Bold: ShowkaseBrowserTypography = 
ShowkaseBrowserTypography(
   typographyGroup = "My Styleguide",
   typographyName = "Body1Bold",
   typographyKDoc = "",
   textStyle = body1Bold
)

Build with error:

e: file:///Users/pisk/AndroidStudioProjects/ExampleProject/shared/styleRes/build/
generated/ksp/android/androidDebug/kotlin/cz/lubo/pisk/style/res/theme/
body1BoldAlzaStyleguideBody1Bold.kt:11:21 Unresolved reference 'body1Bold'.
@lubo-pisk lubo-pisk changed the title Feature request: Add support for K2. Feature request: Add support for K2 compiler. Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant