Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17836] MobileWeb: Update build system to use new windowslib

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-11-13T19:16:19.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0
ComponentsMobileWeb, Tooling
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2014-10-09T22:40:21.000+0000
Updated2017-03-09T01:06:47.000+0000

Description

Integrate the latest https://github.com/appcelerator/windowslib into Mobile Web's build and "ti info".

Comments

  1. Chris Barber 2014-11-13

    Titanium CLI pull request: https://github.com/appcelerator/titanium/pull/166 Titanium SDK pull request: https://github.com/appcelerator/titanium_mobile/pull/6344
  2. Chris Barber 2014-11-13

    To test:

    ti info

    Run ti info and verify the Visual Studio, Windows Phone information, WP emulators/devices, and PowerShell permissions.

    Create an app

    Add the following to the app.js:
       console.log('Testing console.log()');
       console.debug('Testing console.debug()');
       console.info('Testing console.info()');
       console.warn('Testing console.warn()');
       console.error('Testing console.error()');
       Ti.API.log('Testing Ti.API.log()');
       Ti.API.debug('Testing Ti.API.debug()');
       Ti.API.info('Testing Ti.API.info()');
       Ti.API.warn('Testing Ti.API.warn()');
       Ti.API.error('Testing Ti.API.error()');
       

    Mobile Web

       ti build -p mobileweb
       

    Windows Phone Emulator

    Each of these tests should render the log output.
       ti build -p mobileweb -T wp8
       <choose emulator at prompt>
       
       ti build -p mobileweb -T wp8 --device-id 8-0-1
       
    Leave emulator running and build again.
       ti build -p mobileweb -T wp8 --device-id 8-0-1
       
    Manually close the emulator, build command should exit.

    Windows Phone Device

    For these tests, you'll need a Windows Phone 8.0 or 8.1 device. The device will need to be on the same network as the Windows machine you're testing from. Leave phone disconnected.
       ti build -p mobileweb -T wp8
       <choose device>
       
    Should error because device not connected. Connect device, leave device LOCKED.
       ti build -p mobileweb -T wp8
       <choose device>
       
    Should error saying screen is locked. Unlock device.
       ti build -p mobileweb -T wp8
       <choose device>
       
    Should build and display log output.
       ti build -p mobileweb -T wp8 --device-id 0
       
    Perform production build and verify logging is disabled:
       ti build -p mobileweb -T wp8 --device-id 0 --deploy-type production
       
    If you have more than one Windows Phone device, plug both of them in and run a build.
       ti build -p mobileweb -T wp8 --device-id 0
       
    Observe error. You can only have 1 device connected.

    Misc Windows Phone

       ti build -p mobileweb -T wp8 --device-id foo
       <observe error, choose device>
       

    Windows Store Apps

       ti build -p mobileweb -T winstore
       <enter password for new cert>
       
    Should build, install, and run. Build again to skip cert step:
       ti build -p mobileweb -T winstore
       
    Should build, uninstall previous version, install new version, and run.
  3. Christopher Williams 2014-11-13

    https://github.com/appcelerator/windowslib/issues/5
  4. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source