Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19127] Windows: Ti.Platform.createUUID() should not have curly brackets

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-07-01T16:00:20.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterFokke Zandbergen
AssigneeChristopher Williams
Created2015-07-01T10:01:56.000+0000
Updated2015-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.

Comments

  1. Christopher Williams 2015-07-01

    https://github.com/appcelerator/titanium_mobile_windows/pull/344
  2. Lokesh Choudhary 2015-07-02

    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

JSON Source