Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B buck
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • buck
  • Issues
  • #857
Closed
Open
Issue created Aug 23, 2016 by Administrator@rootContributor0 of 3 checklist items completed0/3 checklist items

Add Kotlin Android support

Created by: dsyang

Vanilla kotlin library support was added in https://github.com/facebook/buck/pull/810. the next big step would be to add android support.

From @bkase's comment on https://github.com/facebook/buck/pull/810#issuecomment-238069818 it looks like the problem is we need the equivalent of android_library() for kotlin. I think that could be pretty straight-forward.

We would need create a new AndroidKotlinLibraryDescription that behaves almost exactly like AndroidLibraryDescription excepts it compiles with kotlinc instead of javac.

A quick look through the source code suggests we'd need to do the following:

  • Refactor AndroidLibrary to take in a BaseCompileToJarStepFactory (it currently defaults to javac)
  • Copy AndroidLibraryDescription into a AndroidKotlinLibraryDescription. Basically doing the same thing except passing in KotlincToJarStepFactory to the AndroidLibrary
  • Refactor the common stuff out of the two android library descriptions.

I'm not sure when I'll have time to tackle this yet. If someone else wants to take a shot go for it!

Assignee
Assign to
Time tracking