[ALOY-956] Jake: remove hardcoded SDK version
|Affected Version/s||Alloy 1.4.0|
|Fix Version/s||Alloy 1.5.0|
|Components||Samples & Templates|
DescriptionThe 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
- 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.
- Federico Casali 2014-05-01
- 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.
- Tim Poulsen 2014-06-11
Functional test is to use the
jake app:runcommand 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
sdkargument); the app should be built with the version you specified. * - Use
ti sdk selectto set an SDK version preference, then run jake without the
sdkargument; 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.
- Tim Poulsen 2014-06-16 Apps are not built using the specified SDK as intended or expected. Reopening.
- 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 selectby 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
sdkargument to jake.
- Federico Casali 2014-08-19
Verified working as expected.
Test case added to TCMS in the Alloy Core Test suite.
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 126.96.36.199408121314 CLI 3.4.0-dev Alloy 1.5.0-dev Xcode6-beta5