Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17545] CLI: Choosing the latest version of a module does not pick the latest compatible one

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-09-19T03:25:27.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.4.0, Release 3.5.0
ComponentsCLI
LabelssupportTeam
ReporterDavide Cassenti
AssigneeChris Barber
Created2014-08-25T16:18:39.000+0000
Updated2015-04-21T00:04:25.000+0000

Description

Description

When adding a module to a project, the list of available versions shows only the ones compatible with the chosen SDK. For example, ti.cloudpush 3.3.0 will not show up if the SDK chosen is 3.2.3. The issue is when chosing the [latest] option: in that case, the system is using the latest version, and the build fails because ti.cloudpush 3.3.0 is not compatible with SDK 3.2.3

Comments

  1. Ingo Muschenetz 2014-08-25

    The suggestion to fix this is the following: * cloudpush 3.3.0 has a minimum version of Titanium SDK 3.3.0 * cloudpush 3.2.1 has a minimum version of Titanium SDK 3.2.0 When picking 3.2.3 SDK, and choosing "latest", we need to find the module that still has a compatible SDK match. In this case, 3.3.0 cloudpush requires 3.3.0 SDK, so we pick an earlier module, in this case 3.2.1
  2. Lokesh Choudhary 2014-08-27

    Duplicate of TIMOB-17048
  3. Ingo Muschenetz 2014-09-06

    This was not a duplicate any more. This still needs to be addressed.
  4. Chris Barber 2014-09-16

    Master: https://github.com/appcelerator/titanium_mobile/pull/6107 3_4_X: https://github.com/appcelerator/titanium_mobile/pull/6108 To test, create an app, enable the ti.map module and put this in the tiapp.xml:
       <modules>
           <module>ti.map</module>
       </modules>
       
    Now, build it for iOS: ti build -p ios --build-only Say you have 2.0.1 and 2.0.2 installed, then it will pick 2.0.2. If you go to the 2.0.2 folder, edit the manifest and change the minsdk to "3.6.0.GA", then it will pick 2.0.1 instead of erroring out.
  5. Ewan Harris 2014-09-19

    Verified fix on: Mac OSX 10.9.4 Appcelerator Studio, build:3.4.0.201409161950 Titanium SDK build: 33.4.0.v20140918202513 Titanium CLI, build: 3.4.0-rc4 Alloy: 1.5.0-rc2 Xcode6.0.1 Added the ti.map module and when I built originally the included ti.map module was 2.0.3, changed the minsdk to 3.6.0.GA and then the rebuilt, this time the included t.map was 2.0.2 and there were no errors. Closing ticket

JSON Source