Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-166

Move library version to version.txt

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      In Realm Java we define the library version in a simple text file in the root called version.txt. This makes a lot of things easier as a lot of build logic depend on having that available.

      In Kotlin we are defining it in buildSrc/src/main/kotlin/Config.kt. This makes accessing and editing it slightly annoying.

      We should consider moving the constant to a simple file instead, but it turns out to be non-trivial as the Config.kt file is being prebuilt before anything else, and not part of the build script to boot. This makes accessing the environment a bit difficult.

      It could probably be accomplished by either auto-generating a .kt file with the information or otherwise manipulate the Config.kt file before it is being built.

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: