GithubHelp home page GithubHelp logo

Kotlin support about blade HOT 4 CLOSED

rciurkot avatar rciurkot commented on May 18, 2024
Kotlin support

from blade.

Comments (4)

rciurkot avatar rciurkot commented on May 18, 2024 1

Fortunately that line of code (selecting kapt or apt) was enough :)

I use it in mixed java/kotlin project with about 75% codebase in java. Blade is generating its classes for both java and kotlin code.

from blade.

FrantisekGazo avatar FrantisekGazo commented on May 18, 2024

Hi,
no, this library does not support Kotlin classes. I'm planning to look at it. But I don't have time for it currently.

I don't use Kotlin, so it wasn't that important when I started this library.

If there is somebody who knows how to support kapt or about some open-source library that also supports kapt (from which I can inspire) - please leave a comment. thanks

from blade.

rciurkot avatar rciurkot commented on May 18, 2024

It turns out that Blade and Kotlin can play well together :) You just have to enable generating stubs in kapt.
Put this in your build.gradle and everything should work fine.

kapt {
    generateStubs = true
}

Sometimes build is failing (InstantRun + kotlin incremental builds) but then simple clean-build action will make it work again.

Thanks @FrantisekGazo for such an awesome library :)

from blade.

FrantisekGazo avatar FrantisekGazo commented on May 18, 2024

@rciurkot that's great news. Thanks for sharing this solution :)

Blade is using kapt or apt based on found plugin - as you can see here: https://github.com/FrantisekGazo/Blade/blob/master/plugin/src/main/groovy/eu/f3rog/blade/plugin/BladePlugin.groovy. That is code I added when I started the library, but I was expecting that I will have to do something more.

@rciurkot did you try it with pure kotlin app or mixed java/kotlin?

from blade.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.