Skip to content

Commit

Permalink
Merge pull request #7878 from cheekiatng/timob-20337-1
Browse files Browse the repository at this point in the history
[TIMOB-20337] Parity: enabling run-on-main-thread
  • Loading branch information
feons committed Mar 29, 2016
2 parents f196106 + 9efeaa7 commit 15af748
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
8 changes: 7 additions & 1 deletion iphone/cli/commands/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,13 @@ iOSBuilder.prototype.initialize = function initialize() {
// Remove the debugHost/profilerHost check when we have debugging/profiling support with JSCore framework
// TIMOB-17892
this.currentBuildManifest.useJSCore = this.useJSCore = !this.debugHost && !this.profilerHost && (this.tiapp.ios['use-jscore-framework'] || false);
this.currentBuildManifest.runOnMainThread = this.runOnMainThread = (this.tiapp['run-on-main-thread'] === true);
// Remove this check on 6.0.0
if (this.tiapp.ios && (this.tiapp.ios.hasOwnProperty('run-on-main-thread'))) {
this.logger.info(__('run-on-main-thread no longer set in the <ios> section of the tiapp.xml. Use <property name="run-on-main-thread" type="bool">true</property> instead'));
this.currentBuildManifest.runOnMainThread = this.runOnMainThread = (this.tiapp.ios['run-on-main-thread'] === true);
} else {
this.currentBuildManifest.runOnMainThread = this.runOnMainThread = (this.tiapp.properties && this.tiapp.properties.hasOwnProperty('run-on-main-thread') && this.tiapp.properties['run-on-main-thread'].value || false);
}
this.currentBuildManifest.useAutoLayout = this.useAutoLayout = this.tiapp.ios && (this.tiapp.ios['use-autolayout'] === true);

this.moduleSearchPaths = [ this.projectDir, appc.fs.resolvePath(this.platformPath, '..', '..', '..', '..') ];
Expand Down
18 changes: 9 additions & 9 deletions node_modules/titanium-sdk/lib/tiappxml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node_modules/titanium-sdk/tests/resources/tiapp2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15af748

Please sign in to comment.