[TIMOB-19127] Windows: Ti.Platform.createUUID() should not have curly brackets
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-01T16:00:20.000+0000 |
Affected Version/s | Release 4.1.0 |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Christopher Williams |
Created | 2015-07-01T10:01:56.000+0000 |
Updated | 2015-07-02T18:25:27.000+0000 |
Description
The following code:
var win = Ti.UI.createWindow();
console.error(Ti.Platform.createUUID());
win.open();
Will have the following type of output on:
* iOS: *D614A644-4B66-41DB-9874-7A4BC9913FC2*
* Android: *08c67469-3b8c-48ec-8fde-499ec520407a*
* Windows: *\{5ec8919e-5681-49af-8ee4-da2522a47194\}*
The difference in lower and upper case is trivial, but the curly brackets on Windows will break stuff. In fact, the Analytics on Windows is already working around it:
https://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/TitaniumKit/src/analytics.js#L32
The type of output should be identical on all platforms.
https://github.com/appcelerator/titanium_mobile_windows/pull/344
Verified the fix. Closing. Environment: Appc Studio: 4.1.0.201506261427 Ti SDK: 4.1.0.v20150702030940 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-4 Windows emulator : 8.1