it is WIP, some features are still missing, but yo...
# squarelibraries
e
it is WIP, some features are still missing, but you can definitely give it a try
d
is there any easy option to use it with gradle in android project? I see that there is gradle plugin wip and I’ve found this issue https://github.com/square/wire/issues/441 with example how to run it in AS, but it seems a little cumbersome
e
We're working on a Gradle plugin that will make it easier to use, for now invoking the compiler through a
JavaExec
task is the only way - see the most upvoted reply on that issue
d
Yes, there was some problems with differents
build.gradle
files for class path dependencies and actual task definition, but I got it working. What I could not get to work is generation of kotlin classes, I could not find any documentation how to use Kotlin generator and also I could not get Retrofit Converter to work. I’ve found repo for it and i’ve used it, but if I use return type as
Message<MyType, MyType.Builder>
it crashes on EOF
e
check the “Usage” section of `WireCompiler`’s KDoc
there should be no differences in using the Retrofit converter vs the stable Wire version