Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1582] Ti.Platform.osname reports windows

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-09-21T23:14:11.000+0000
Affected Version/sAlloy 1.9.14, Alloy 1.10.4
Fix Version/sCLI Release 6.3.0
ComponentsRuntime
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2017-09-21T13:03:00.000+0000
Updated2017-10-11T23:05:09.000+0000

Description

Description

When using Ti.Platform.osname on Windows with Alloy, it incorrectly reports windows. The correct value is windowsstore or windowsphone

Steps to reproduce

Add console.log(Ti.Platform.osname); to index.js of an alloy app

Build for Windows

Actual

windows is logged

Expected

windowsstore for ws-local target, windowsphone for wp-emulator target

Comments

  1. Ewan Harris 2017-09-21

    Master pr: https://github.com/appcelerator/alloy/pull/851
  2. Abir Mukherjee 2017-10-11

    Validated the fix with this environment: Node Version: 6.10.3 NPM Version: 3.10.10 Windows OS: 10.0.15063.0 Windows Phone: 10.0.15063.0 Appc CLI: 6.3.0-master.14 Appc CLI NPM: 4.2.9 Titanium SDK version:6.2.2

JSON Source