[ALOY-956] Jake: remove hardcoded SDK version
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-16T19:57:59.000+0000 |
Affected Version/s | Alloy 1.4.0 |
Fix Version/s | Alloy 1.5.0 |
Components | Samples & Templates |
Labels | qe-manualtest |
Reporter | Tim Poulsen |
Assignee | Tim Poulsen |
Created | 2014-02-11T16:08:03.000+0000 |
Updated | 2014-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
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.
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.
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 thesdk
argument); the app should be built with the version you specified. * - Useti sdk select
to set an SDK version preference, then run jake without thesdk
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.Apps are not built using the specified SDK as intended or expected. Reopening.
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 thesdk
argument to jake.Verified working as expected. Test case added to TCMS in the Alloy Core Test suite. Note: HarnessTemplate does not include an