Attila Domokos
11/26/2019, 5:30 PMLens
code generation in my little learning project. The docs seem to be outdated. This is the commit that attempts it: https://github.com/adomokos/kotlin-sandbox/commit/0ac6eca63e7fffc83db113fd87ba3972807a22a2
What am I missing?Jannis
11/26/2019, 5:42 PMcompanion object
on those classes for codegen to work afaik. Also I don't think the generated-sources part is still relevantJannis
11/26/2019, 5:43 PM@optics data class LaptopL(val price: Double, val motherBoardL: MotherBoardL) { companion object }
should work. There are some other restrictions as to how the classes used in the fields should look, but I haven't used optics enough to list those correctly. Maybe @simon.vergauwen knows moresimon.vergauwen
11/26/2019, 5:53 PMAttila Domokos
11/26/2019, 5:53 PMsimon.vergauwen
11/26/2019, 5:54 PMgenerated-kotlin-sources.gradle
Attila Domokos
11/26/2019, 5:54 PMsimon.vergauwen
11/26/2019, 5:54 PMsourceDirs
but I think you also need to add them to testDirs
or something like thatAttila Domokos
11/26/2019, 5:54 PMsimon.vergauwen
11/26/2019, 6:00 PMkaptTest project(':arrow-meta')
simon.vergauwen
11/26/2019, 6:01 PMsimon.vergauwen
11/26/2019, 6:01 PMAttila Domokos
11/26/2019, 6:03 PMAttila Domokos
11/26/2019, 6:56 PMAttila Domokos
11/26/2019, 6:57 PMsimon.vergauwen
11/26/2019, 7:01 PMsimon.vergauwen
11/26/2019, 7:02 PMAttila Domokos
11/26/2019, 7:04 PM@optics
via kapt
was the most complex task I've bumped into.simon.vergauwen
11/26/2019, 7:05 PMAttila Domokos
11/26/2019, 7:05 PMsimon.vergauwen
11/26/2019, 7:06 PMsimon.vergauwen
11/26/2019, 7:07 PMraulraja
11/26/2019, 7:58 PMraulraja
11/26/2019, 7:58 PMraulraja
11/26/2019, 7:58 PM