Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move library version to version.txt #223

Open
cmelchior opened this issue May 12, 2021 · 0 comments
Open

Move library version to version.txt #223

cmelchior opened this issue May 12, 2021 · 0 comments

Comments

@cmelchior
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant