Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18079] CLI: Refactor build commands for greater code reuse

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-01-09T19:38:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.0.0
ComponentsAndroid, CLI, iOS, MobileWeb, Tooling
Labelsn/a
ReporterChris Barber
AssigneeChristopher Williams
Created2014-11-24T17:10:21.000+0000
Updated2017-03-16T22:42:23.000+0000

Description

Each platform's build command extends a Builder base class. We need to move common functions into the Builder so that we can reuse code across the build commands.

Comments

  1. Chris Barber 2014-11-24

    Master pull request: https://github.com/appcelerator/titanium_mobile/pull/6383 To test, 1) run "ti info" 2) build an Android, iOS, and Mobile Web app (simulator/emulator builds are fine)
  2. Christopher Williams 2014-11-25

    Merged.
  3. Tim Poulsen 2015-01-09

    If a module is missing, the code starting at https://github.com/appcelerator/titanium_mobile/blame/master/node_modules/titanium-sdk/lib/builder.js#L184 is called. The references to logger and \_\_ are invalid though so the script throws an error. It should be this.logger and the \_\_ lib needs to be included in the module.
       [WARN]  Could not find a valid Titanium module id=ti.map version=latest platform=windows deploy-type=development
       C:\Users\Tim\AppData\Roaming\npm\node_modules\titanium\node_modules\longjohn\dist\longjohn.js:185
               throw e;
                     ^
       ReferenceError: logger is not defined
           at WindowsBuilder.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\3.6.0.v20150108110929\node_modules\titanium-sdk\lib\builder.j
           at detect.callback (C:\ProgramData\Titanium\mobilesdk\win32\3.6.0.v20150108110929\node_modules\node-appc\lib\timodule.js:386:52)
           at C:\ProgramData\Titanium\mobilesdk\win32\3.6.0.v20150108110929\node_modules\node-appc\lib\timodule.js:170:51
           at C:\ProgramData\Titanium\mobilesdk\win32\3.6.0.v20150108110929\node_modules\node-appc\node_modules\async\lib\async.js:592:17
           at done
       (C:\ProgramData\Titanium\mobilesdk\win32\3.6.0.v20150108110929\node_modules\node-appc\node_modules\async\lib\async.js:135:19
       
  4. Christopher Williams 2015-01-09

    https://github.com/appcelerator/titanium_mobile/pull/6557
  5. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source