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
fix(ios): sf symbol handling for application shortcut #11220
Conversation
|
} | ||
|
||
if (self = [super init]) { | ||
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 |
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.
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 | |
#if IS_SDK_IOS_13 |
I feel a little uncomfortable only wrapping the image creation in the iOS 13 condition. Sure, this code block should never be reached when not built with iOS 13 SDK but only wrapping that single line inside it calls for unexpected behavior in the following lines, e.g. when module developers use TiBlob
and wrongfully use initWithSystemImage:
.
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.
Agree. Wrapped whole function inside macro.
Macro IS_SDK_IOS_13 will not be available inside TitaniumKit framework.
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.
Ah damn, i keep forgetting that the macro is for our other source files only. Maybe we should define the same macro in TitaniumKit as well, so we have some consistency across our source files.
FR Passed. An image blob is shown as part fo the app shortcut. Also no error is shown when adding the shortcut. |
https://jira.appcelerator.org/browse/TIMOB-27394