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

Sample for Kotlin/JS? #9

Closed
joerg-rade opened this issue Aug 2, 2019 · 1 comment
Closed

Sample for Kotlin/JS? #9

joerg-rade opened this issue Aug 2, 2019 · 1 comment

Comments

@joerg-rade
Copy link

Hi Richard,
I would like to use schema-gen for a Kotlin/JS project.
Do you know of any projects/samples?

Thanks in advance
-j

@reaster
Copy link
Owner

reaster commented Aug 4, 2019

Kotlin support is about 85% baked and I don't anticipate doing any more work on it because I'm all in on Flutter/Dart these days. So depending on your schema and the style of code you want, it may or may not work. The primary Kotlin example is here:

https://github.com/reaster/schema-gen-examples/blob/master/kotlin-gpx/src/main/kotlin-gen/Gpx.kt
https://github.com/reaster/schema-gen-examples/blob/master/kotlin-gpx/src/test/kotlin/GpxTest.kt

The Gradle plugin is currently not working so you'll want to use KotlinGenMain to generate your code:

https://github.com/reaster/schema-gen/blob/master/src/main/groovy/com/javagen/schema/kotlin/KotlinGenMain.groovy

@reaster reaster closed this as completed Aug 4, 2019
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

2 participants