Is is possible to get some build version number or...
# multiplatform
f
Is is possible to get some build version number or so from the gradle build file within the js or common part, like BuildConfig in Android?
s
On the android-side of the shared code (eg
androidMain
), the buildconfig is generated but never put in the compile-path or class-path. This means you have to inject it from your Android
app
and your Swift
ios
into your shared common code, or from your
js
module.
s
There is BuildKonfig that is pretty much like BuildConfig but for multiplatform projects. https://github.com/yshrsmz/BuildKonfig Values are available in the common code
m
I don’t use js yet, but can confirm BuildKonfig that works pretty well for me (android,ios)