Skip to content

Convert script to Kotlin and merge into StreetComplete? #58

Open

Description

@westnordost

I recently reworked the whole build scripts of StreetComplete. Before, there was a mix of python, groovy and "JUnit" scripts, each of them had to be executed manually.

Now, all build scripts, and I mean also scripts that collect data and generate metadata are all written in Kotlin and are all here:
https://github.com/westnordost/StreetComplete/tree/master/buildSrc

Why am I telling you this? Because now this is an oppurtunity to have your crops parser run as part of the build process in StreetComplete too, or to be more precise, as part of the scripts that update the country_metadata (which might move to a separate repository one day). You'd just need to rewrite the parser as a kotlin task. What do you think?

Activity

  1. rugk commented on Oct 12, 2020

    @rugk
    Owner

    Thanks for the nice, yeah, technically it's a great idea.

    Also, if I had to rewrite this, I certainly would not choose bash scripts again, they are hardly suitable for that task. (As the filtering etc. was more complex than I initially thought.)
    I would possibly use Python next time.

    But yeah, likely you can also properly do it in Kotlin, though I have no experience in that.

    Anyway, I totally agree rewriting this would be a very good idea. That said, I likely won't have much time for this (I assume quite big task) in the next time, so I'll mark this with "help wanted".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions