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
streetsofboston
07/23/2020, 12:34 PM
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
Sebastien Leclerc Lavallee
07/24/2020, 1:37 AM
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
Michal Harakal
07/27/2020, 5:41 AM
I don’t use js yet, but can confirm BuildKonfig that works pretty well for me (android,ios)