Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13847] CLI: Add name and version support for hooks

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-05-16T07:07:57.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 07, 2014 Sprint 07 Tooling, Release 3.3.0
ComponentsCLI
Labelsqe-closed-3.3.0, qe-testadded, titanium-cli
ReporterChris Barber
AssigneeChris Barber
Created2013-05-13T23:22:58.000+0000
Updated2014-07-31T21:45:32.000+0000

Description

We should add support for hooks to export a name and version so that it would be easy to detect duplicate hooks and report which hooks are installed.

Attachments

FileDateSize
plugins.zip2014-04-08T19:09:13.000+00007859

Comments

  1. Tony Lukasavage 2013-11-24

    I'm all for this one, particularly to prevent hooks from launching more than once during a single build.
  2. Ingo Muschenetz 2014-03-12

    This isn't critical for 3.2.3. If it happens, we can pull it back in.
  3. Chris Barber 2014-04-07

    Titanium CLI master pull request: https://github.com/appcelerator/titanium/pull/126 Titanium SDK master pull request: https://github.com/appcelerator/titanium_mobile/pull/5587
  4. Chris Barber 2014-04-07

    To test: 1) Download attached plugins.zip file and extract to a project dir 2) Enable plugin in tiapp.xml 3) Run "ti" 4) Run "ti plugin" 5) Build an app for any platform
  5. Olga Romero 2014-05-05

    Titanium Command-Line Interface, CLI version 3.3.0-dev, Titanium SDK version 3.3.0.v20140502133323 Followed [~cbarber] test steps. Ran the command
       ti plugin
       
    Actial result:
       shibby
         Version    = unknown
         Location   = /Users/oromero/Documents/Appcelerator_Workspace3/chris/plugins/shibby
         Commands   = No commands found
         Hooks      = bad
                   conflict1 (v1.0)
                   conflict2 (v2.0)
                   incompat [requires CLI version 3.2.0 or newer]
                   works
        
       
    Built an app for iOS platform - worked.
  6. Paras Mishra 2014-05-16

    Tested as mentioned by [~cbarber] Included the plugins provided and executed ti plugin Result:
       Project CLI Plugins
       shibby
         Version    = unknown
         Location   = /Users/paras.mishra/Documents/Appcelerator_Studio_Workspace2/defau
       ltapp/plugins/shibby
         Commands   = No commands found
         Hooks      = bad
                      conflict1 (v1.0)
                      conflict2 (v2.0)
                      incompat [requires CLI version 3.2.0 or newer]
                      works
       
    Successfully build the app for iOS simulator Verified as fixed: SDK: 3.3.0.v20140515151935 CLI version : 3.3.0-dev OS : MAC OSX 10.9.2 Alloy: 1.4.0-Alpha ACS: 1.0.14 npm:1.3.2 LiveView: 1.0.4 Appcelerator Studio, build: 3.3.0.201405121247 titanium-code-processor: 1.1.1 XCode : 5.1.1
  7. Paras Mishra 2014-05-16

    accidental reopen instead of Closing, sorry folks.

JSON Source