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

fix(ios): guard PHPicker usage with openPhotoGallery #12129

Merged
merged 1 commit into from Sep 24, 2020

Conversation

ewanharris
Copy link
Collaborator

Fixes TIMOB-28151

JIRA: https://jira.appcelerator.org/browse/TIMOB-28151

Guard the usage of PHPicker with defined(USE_TI_MEDIAOPENPHOTOGALLERY) otherwise 💥

@build
Copy link
Contributor

build commented Sep 24, 2020

Fails
🚫

🔬 There are library changes, but no changes to the unit tests. That's OK as long as you're refactoring existing code, but will require an admin to merge this PR. Please see README.md#unit-tests for docs on unit testing.

Messages
📖

💾 Here's the generated SDK zipfile.

📖 ✊ The commits in this PR match our conventions! Feel free to Rebase and Merge this PR when ready.
📖

✅ All tests are passing
Nice one! All 9930 tests are passing.
(There are 979 skipped tests not included in that total)

Generated by 🚫 dangerJS against 6c18063

@@ -1784,7 +1784,7 @@ - (void)handleTrimmedVideo:(NSURL *)theURL withDictionary:(NSDictionary *)dictio
}
#endif

#if IS_SDK_IOS_14
#if IS_SDK_IOS_14 && defined(USE_TI_MEDIAOPENPHOTOGALLERY)
Copy link
Collaborator

Choose a reason for hiding this comment

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

You may also need to check it's delegate methods, but not sure if they're also affected.

Copy link
Contributor

Choose a reason for hiding this comment

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

delegate methods appear to already be guarded

Copy link
Contributor

@sgtcoolguy sgtcoolguy left a comment

Choose a reason for hiding this comment

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

LGTM, was able to reproduce locally and confirm the fix.

@sgtcoolguy
Copy link
Contributor

To reproduce:

var window = Ti.UI.createWindow();
Ti.Media.beep();
window.open();

Then you must build for device: ti build -p ios -T device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants