Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-20602] Hyperloop: Build doesn't work with 5.4.0 #9

Merged
merged 4 commits into from Mar 31, 2016
Merged

[TIMOB-20602] Hyperloop: Build doesn't work with 5.4.0 #9

merged 4 commits into from Mar 31, 2016

Conversation

cheekiatng
Copy link
Contributor

@@ -136,12 +136,11 @@ HyperloopiOSBuilder.prototype.validate = function validate() {
process.exit(1);
}

// check for the run-on-main-thread configuration
if (!this.builder.tiapp.ios['run-on-main-thread']) {
if (!(this.builder.tiapp.properties && this.builder.tiapp.properties.hasOwnProperty('run-on-main-thread') && this.builder.tiapp.properties['run-on-main-thread'].value))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

))) One bracket too much, the build crashes. Also, does this.builder.tiapp.properties['run-on-main-thread'].value catch the false value as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! the value is either true or false so ya.

@hansemannn
Copy link
Contributor

Tested using the hyperloop-examples app. The app crashes after booting and the error looks metabase related. Works fine with 1.1.1.

@cheekiatng
Copy link
Contributor Author

Do you have the details of the crash? did you test with the latest PR on titanium_mobile master? Because I know that has not been merged yet and this PR is dependent on that.

@@ -986,7 +986,7 @@ HyperloopiOSBuilder.prototype.hookXcodebuild = function hookXcodebuild(data) {
});
}

addParam('GCC_PREPROCESSOR_DEFINITIONS', 'HYPERLOOP=1');
addParam('GCC_PREPROCESSOR_DEFINITIONS', '$(inherited) HYPERLOOP=1');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea! 🚀

@hansemannn
Copy link
Contributor

CR & FT passed, PR approved! 🚀

@hansemannn hansemannn merged commit 9b3450b into tidev:master Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants