I'd like to generate something like BuildConfig on...
# javascript
s
I'd like to generate something like BuildConfig on Android I need to generate API_URL variable, for example from a gradle.properties variable, so I can easily swap between dev and prod urls did anyone do anything similar, or can guide me in right direction?
Found this, did not test yet: https://github.com/gmazzo/gradle-buildconfig-plugin edit: plugin not maintained, gradle conflicts
e
even without a plugin, it's easy to hack something together in Gradle
s
@ephemient thanks, I'll try this
honestly I'm amazed how easy it is to generate source code, thank you I used
val environment: String by project
because Properties object doesn't resolve for me for some reason
s