-
Notifications
You must be signed in to change notification settings - Fork 52
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
Allow user to specify legacy or new build system. #50
Allow user to specify legacy or new build system. #50
Conversation
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.
Thanks!
src/apple/config/raw.rs
Outdated
@@ -51,6 +51,7 @@ pub struct Raw { | |||
pub ios_features: Option<Vec<String>>, | |||
pub macos_no_default_features: Option<bool>, | |||
pub macos_features: Option<Vec<String>>, | |||
pub use_legacy_build_system: bool, |
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.
I'm pretty sure that this not being wrapped in an Option
will result in it unconditionally being written to mobile.toml, when ideally we want it to be unspecified by default (defaulting to true
when upgrading to non-raw Config
)
src/apple/config/mod.rs
Outdated
@@ -193,11 +194,12 @@ impl Config { | |||
); | |||
Ok(DEFAULT_PROJECT_DIR.to_owned()) | |||
})?; | |||
|
|||
let use_legacy_build_system = raw.use_legacy_build_system.unwrap_or(true); |
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.
Keeping this inline is fine
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.
Thanks!
No description provided.