[TIMOB-18834] iOS: Provide mechanism to use the JavaScriptCore framework
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-04-16T20:15:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | iOS |
Labels | jscore-migration |
Reporter | Vishal Duggal |
Assignee | Vishal Duggal |
Created | 2015-04-15T18:35:26.000+0000 |
Updated | 2015-07-07T21:40:09.000+0000 |
Description
Add a tiapp.xml property to allow developers to choose if they would like to use JavaScriptCore Framework of TiCore to build their applications.
Modify Titanium SDK to be able to compile and link successfully when using the JavaScriptCore Framework
Pull pending master - https://github.com/appcelerator/titanium_mobile/pull/6782 Introduces a new property in tiapp.xml under the iOS tag
This property controls #define USE_JSCORE_FRAMEWORK in defines.h Testing instructions (For both Sim/Device builds): 1. Leave the tag out and you should be able to build and run the application. Check defines.h and ensure that it does not include #define USE_JSCORE_FRAMEWORK. 2. Include and set property to false. Behavior should be same as above. 3. Include and set to true. You should be able to build and run the application. Check the defines.h file. It must include the #define USE_JSCORE_FRAMEWORK 4. Leave property at true and try to Debug/Profile the application. The property will be ignored. Check defines.h and ensure that it does not include #define USE_JSCORE_FRAMEWORK. 5. Build for production with property set to true or false. It must pass validation.
Verified fixed, using: MacOS 10.11 Studio 4.1.0.201507061821 Ti SDK 4.2.0 Appc NPM 4.1.0-1 Appc CLI 4.1.0-5 Ti CLI 4.0.1 Alloy 1.6.2 Node v0.10.37 Java 1.7.0_45 preproduction Using
<use-jscore-framework>true</use-jscore-framework>
successfully allows the inclusion of#define USE_JSCORE_FRAMEWORK
.