-
-
Notifications
You must be signed in to change notification settings - Fork 197
Description
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes
Tell us about the problem
I have a solution with config.debug.json and config.release.json. Running 'tns build android --release' copies config.debug.json -> config.json. I expected it to copy config.release.json -> config.json
Which platform(s) does your issue occur on?
Only able to test on Android, but I'd imagine it occurs on both.
Please provide the following version numbers that your issue occurs with:
-
CLI: (run
tns --versionto fetch it)
3.1.1 -
Cross-platform modules: (check the 'version' attribute in the
node_modules/tns-core-modules/package.jsonfile in your project)
next (3.2.0-2017-06-28-7092) -
Runtime(s): (look for the
"tns-android"and"tns-ios"properties in the
package.jsonfile of your project)
"tns-ios": {
"version": "3.0.1"
},
"tns-android": {
"version": "3.1.1"
} -
Plugin(s): (look for the version number in the
package.jsonfile of your
project)
See https://github.com/rowandh/sample-Groceries/blob/debug-release-bug/package.json
Please tell us how to recreate the issue in as much detail as possible.
- Clone https://github.com/rowandh/sample-Groceries/tree/debug-release-bug
- Run 'tns build android --release --key-store-path debug.keystore --key-store-password nativescript --key-store-alias debug --key-store-alias-password nativescript'
- Unzip the compiled apk. Open assets/app/config.json and verify that it says config: "debug"
My own compiled apk is in the 'apk' folder.
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
See https://github.com/rowandh/sample-Groceries/tree/debug-release-bug