Code Monkey home page Code Monkey logo

Comments (9)

hsyed avatar hsyed commented on September 27, 2024 1

#117 done.

from rules_kotlin.

Paul-McNeice avatar Paul-McNeice commented on September 27, 2024

+1

I have a large Android project with 30+ modules which contain mixed Java and Kotlin source. At the moment we build with Gradle but the option to adopt Bazel would be great :)

from rules_kotlin.

hsyed avatar hsyed commented on September 27, 2024

Android should work you will need to write some macros for your project. Basically you build a kotlin jar useing the rules here and you then glue / wrap them into the android rules. In the grand scheme of things writing these macros is a small amount of work in setting up a mono repo with bazel.

I would love to work on this to provide “official” android support but I need support from Google (@davidstanke) on this one as it is a significant amount of time and we don’t use android internally. Google is best placed to design the structure of these rules / macros for the long term.

Integration tests would be required and depending on how the rules are designed some changes might be needed in the android rules in bazel core.

from rules_kotlin.

davidstanke avatar davidstanke commented on September 27, 2024

Hey hey! I've actually moved to a slightly different role at Google, so IDK if I can do anything "official" here. :) + @jin for thoughts!

from rules_kotlin.

Paul-McNeice avatar Paul-McNeice commented on September 27, 2024

@hsyed thanks for your reply - I'll have to do some reading into writing Bazel macros to achieve this, I'm not particularly familiar with Bazel to begin with so we'll see how well that goes :)

We're using kapt as well which I gather is another complication!

from rules_kotlin.

hsyed avatar hsyed commented on September 27, 2024

@Pmcneice kapt is supported and far more consistent than the plugins in Gradle which can stop working randomly between releases and or how the gradle daemon started up. It works reliably and works in mixed mode compiles as well.

See the example app and the tests.

from rules_kotlin.

jin avatar jin commented on September 27, 2024

@davidstanke thanks for the ping! Let me sync up with the maintainers of https://github.com/bazelbuild/rules_android and see what the plans are for Kotlin Android rules.

from rules_kotlin.

jin avatar jin commented on September 27, 2024

The rules_android and Bazel maintainers are fully invested into migrating the native Android rules out of the Bazel source tree and into their Skylark implementations, and unfortunately we don't have the free cycles to work on kt_android_library. The good news is that once we have the Android rules in Skylark, extending them would be a lot simpler than it is currently.

from rules_kotlin.

Paul-McNeice avatar Paul-McNeice commented on September 27, 2024

I've been following this closely - I'm excited :) Thanks for all the hard work.

from rules_kotlin.

Related Issues (20)

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.