msink / kotlin-libui

Kotlin/Native interop to libui: a portable GUI library
MIT License
650 stars 50 forks source link

Switch to kotlin-multiplatform plugin #7

Closed andreas-mausch closed 5 years ago

andreas-mausch commented 5 years ago

Hi, this is awesome!

Is there an easy way to add kotlin-libui as a dependency when I create a new project, or does kotlin-libui have to be in the parent gradle project?

msink commented 5 years ago

When this project will be converted from deprecated 'konan' plugin to 'kotlin-multiplatform' -- it can be published to maven, and used as regular dependency. But now I do not have much free time for this, sorry.

If someone can do that conversion - PRs are velcome.

For now - it can be used as parent project, like in samples.

andreas-mausch commented 5 years ago

Hey, I've seen you pushed some commits regarding the multiplatform plugin. We were working on it in parallel.

We gonna merge what we have now, but maybe please give a hint next time you are working on it so we don't do the same work twice.

We have some additional clean-up like a single build.gradle for all samples, hope you like it. :)

msink commented 5 years ago

Well, then please check my work - I'm sure it needs cleanup, it was mostly copy-paste from various sources.

About samples - not sure, I intentionally tried to keep them isolated so one can use it as template for new repository.

msink commented 5 years ago

Also - I didn't want to go too far from official samples - all this stuff is very experimental, there are dragons. Sometimes if it works in gradle does not mean it works in IDEA or CLion. In my approach - with single preset - code completion works in CLion, with multiple presets - I cannot make it work.

msink commented 5 years ago

I picked and merged obvious cleanup parts, rest should wait a while, at least for next Kotlin version.

andreas-mausch commented 5 years ago

See #14. @msink feel free to close the issue.