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
Conversation
@@ -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))) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Tested using the hyperloop-examples app. The app crashes after booting and the error looks metabase related. Works fine with 1.1.1. |
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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea! 🚀
CR & FT passed, PR approved! 🚀 |
JIRA: https://jira.appcelerator.org/browse/TIMOB-20602