ios-jsc icon indicating copy to clipboard operation
ios-jsc copied to clipboard

Expose build configuration of the app in JavaScript

Open ivanbuhov opened this issue 9 years ago • 2 comments

This will allow JavaScript code to check if the app is built for Debug or Release. A possible implementation is to set the value of JavaScript variable in code surrounded by:

#if DEBUG
...
#endif

Releated to: https://github.com/NativeScript/NativeScript/issues/1293

ivanbuhov avatar Jan 05 '16 11:01 ivanbuhov

Maybe this could be of help: https://github.com/NativeScript/ios-runtime/pull/408?

jasssonpet avatar Jan 05 '16 11:01 jasssonpet

Was this feature added to NativeScript release? I tried using it but, it didn't work. Is there any ETA about this feature?

sudhanshu-15 avatar Jan 09 '17 16:01 sudhanshu-15