[TIMOB-27849] Ti.version returns long version format when transpiled, short when not
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2020-04-23T15:20:36.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 9.0.2 |
| Components | n/a |
| Labels | n/a |
| Reporter | Joshua Quick |
| Assignee | Christopher Williams |
| Created | 2020-04-15T18:27:19.000+0000 |
| Updated | 2020-04-23T15:20:36.000+0000 |
Description
If you execute an app with:
console.log(Ti.version);
If there app is being transpiled, it'll return a version like 9.1.0.v20200409133428 while if not transpiled, it'll return a version like 9.1.0
As found/seen by Josh here: https://github.com/appcelerator/titanium-mobile-mocha-suite/pull/241
master: https://github.com/appcelerator/titanium_mobile/pull/11634
Fix merged to master, backport PR for 9_0_X (9.0.2. target) is up at: https://github.com/appcelerator/titanium_mobile/pull/11635
FR Passed
*Closing ticket.* Fix verified in SDK version 9.1.0.v20200423073533. and 9.0.2.v20200420194516 Test and other information can be found at: Master: https://github.com/appcelerator/titanium_mobile/pull/11634 9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11635