I can only see examples with this approach used in gradle files, what I need to do is take the version of a library and send it to the backend.
Anuta Vlad Sv
02/07/2023, 9:29 AM
Actually I can have something like this buildConfigField "String", "COMPOSE_VERSION", "\"${libs.versions.androidxCompose.get()}\"" and in kotlin file I can use BuildConfig.COMPOSE_VERSION
Thanks for the suggestion!
m
mbonnin
02/07/2023, 2:39 PM
Beware this will give you the declared version of the compose runtime. If any other library needs a more recent version, what you declare is not always what will end up being used at runtime