[meta-task] Kotlin outstanding issues
See original GitHub issueThis issue is to keep track of remaining issues and where applicable work-arounds when using Litho with Kotlin.
Issues
- Cannot use Kotlin
object
s for specs. - Annotated methods inside specs require
@JvmStatic
. -
@PropDefault
doesn’t work. -
@PropDefault
requires@JvmField
annotation.
Other Gotchas
kapt
is a pig. There seem to be a bunch of invalidation bugs that force you to clean your cache and rebuild.NonExistentClass
shows up in random places. Again, this appears to be akapt
bug and the best workaround for now appears to be./gradlew clean
.
Future work
We should consider generating Kotlin code to fully leverage the new language features like data classes, allow for Anko-like DSLs and get rid of builders.
Issue Analytics
- State:
- Created 6 years ago
- Comments:20 (15 by maintainers)
Top Results From Across the Web
Issues · WalletConnect/kotlin-walletconnect-lib - GitHub
library to use WalletConnect with Kotlin or Java. Contribute to WalletConnect/kotlin-walletconnect-lib development by creating an account on GitHub.
Read more >11.0.0 - GitHub
Change Log All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/) and ......
Read more >Make Kotlin Gradle plugin compatible with the Gradle ...
Make Kotlin Gradle plugin compatible with the Gradle configuration cache ... Relates to 4 issues (0 unresolved) ... Parent for 2 issues (0...
Read more >app:compileDebugKotlin even though I have no errors in my ...
I keep getting the same error today across different apps I am working on: Execution failed for task ':app:compileDebugKotlin'. I definitely had ...
Read more >Can someone point me in the right direction | Gradle - Kotlinlang
Still dealing with symbol resolution issues in the build. ... error: unresolved reference: classpath classpath(kotlin("gradle-plugin", version = "1.3.21")) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll update the comment. As long as we don’t use it in production internally, I think it’s best to keep the note there to set the right expectations.
@passy I think it can be closed and also remove the
IMPORTANT
notice from this doc: https://github.com/facebook/litho/blob/master/docs/_docs/getting-started/gradle-kt.md