Titanium JIRA Archive
Alloy (ALOY)

[ALOY-956] Jake: remove hardcoded SDK version

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-06-16T19:57:59.000+0000
Affected Version/sAlloy 1.4.0
Fix Version/sAlloy 1.5.0
ComponentsSamples & Templates
Labelsqe-manualtest
ReporterTim Poulsen
AssigneeTim Poulsen
Created2014-02-11T16:08:03.000+0000
Updated2014-09-17T16:29:55.000+0000

Description

The SDK version is hardcoded into the app.jake file as well as the HarnessTemplate. For jakelib/app.jake, simply removing ~line 78 is recommended: '--sdk', '3.2.0.GA' Probably need to do some string replacement in test/projects/HarnessTemplate/tiapp.xml

Comments

  1. Tim Poulsen 2014-04-23

    While at it, we should remove the targetSdkVersion tag from the tiapp.xml. It causes problems and by default the tooling builds with the newest Android tooling available, which kicks off the 4.x emulator.
  2. Federico Casali 2014-05-01

  3. Tim Poulsen 2014-05-08

    I removed the Android labels from this ticket. There are a couple of hard-coded versions in the jake files and harness template that need to be changed. Only the targetSdkVersion is Android-specific. The others apply to all platforms.
  4. Tim Poulsen 2014-06-11

    PR: https://github.com/appcelerator/alloy/pull/441 Merged. Functional test is to use the jake app:run command with its various options as described in the https://github.com/appcelerator/alloy/blob/master/jakelib/readme.md file. Specifically, you should: * - Launch an app with an SDK version of your choice (with the sdk argument); the app should be built with the version you specified. * - Use ti sdk select to set an SDK version preference, then run jake without the sdk argument; the app should be built with the version you specified. In each case, jake should launch the app using the command-line arguments you pass.
  5. Tim Poulsen 2014-06-16

    Apps are not built using the specified SDK as intended or expected. Reopening.
  6. Tim Poulsen 2014-06-16

    New PR https://github.com/appcelerator/alloy/pull/450 merged. Updated code obtains the SDK version you've selected with ti sdk select by querying the CLI and uses it if you don't have an <sdk-version> tag in the tiapp.xml (which is now the state of the HarnessTemplate app) or specify a version with the sdk argument to jake.
  7. Federico Casali 2014-08-19

    Verified working as expected. Test case added to TCMS in the Alloy Core Test suite. Note: HarnessTemplate does not include an tag in tiapp.xml, therefore no specific SDK is being imported in the Harness project tiapp.xml. However, when building, also Studio automatically uses the SDK being specified in 'ti sdk' when using jake to import the app. TiSDK 3.4.0.v20140813022514 Appcelerator Studio 3.3.1.201408121314 CLI 3.4.0-dev Alloy 1.5.0-dev Xcode6-beta5

JSON Source