-
-
Notifications
You must be signed in to change notification settings - Fork 140
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 8.2.3
- Cross-platform modules: 8.2.5
- Android Runtime: 8.2.4
- Plugin(s): none
Describe the bug
__runtimeVersion
equals 0.0.0.0 in release builds only. It has the expected value in debug builds.
The problem is present since 8.2.3. It works as expected with @nativescript/android
8.2.2
To Reproduce
I made a sample project so it will be easier to reproduce the bug. It is basically a fresh Vue project created with ns create
, I only replaced the message shown on home screen by __runtimeVersion
.
git clone https://github.com/sebj54/ns-debug-runtime-version.git
cd ns-debug-runtime-version
ns run android --release
If you want to see it working with @nativescript/android
8.2.2
git checkout 8.2.2
ns clean
ns run android --release
You can also see that it works fine on debug builds with ns debug android
.
Expected behavior
__runtimeVersion
should equal 8.2.4 and not 0.0.0.0
Sample project
https://github.com/sebj54/ns-debug-runtime-version
Additional context
Feel free to reach me if something is unclear or if you want me to test anything locally, I'll be glad to help.