Skip to content

fix: Part 3 sync to upstream - #533

Merged
volodymyr-chekyrta merged 4 commits into
openedx:developfrom
edx:part-3-sync-to-upstream
Oct 30, 2024
Merged

fix: Part 3 sync to upstream#533
volodymyr-chekyrta merged 4 commits into
openedx:developfrom
edx:part-3-sync-to-upstream

Conversation

@rnr

@rnr rnr commented Oct 28, 2024

Copy link
Copy Markdown
Contributor

This PR contains synchronisation code to solve a problem where a course has gated content and user tap in coursework doesn't work (e.g. ‘IBM's The Data Science Method’ course and some of the graded quizzes in it).

original PR: edx#37

After fix we show page:

@IvanStepanok IvanStepanok left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great job @rnr ! I only found one bug, everything else looks great!

.padding(.top, 12)
StyledButton(CourseLocalization.NotAvaliable.button, action: {
if let url = URL(string: url), UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The link does not open on the simulator and iOS 18 device.

BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(:) needs to migrate to the non-deprecated UIApplication.open(:options:completionHandler:). Force returning false (NO).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice catch @IvanStepanok !
This is caused by a Facebook SDK bug. To solve the problem, increase its version. Please re-check
Thank you

@rnr
rnr requested a review from IvanStepanok October 30, 2024 11:44

@IvanStepanok IvanStepanok left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGFM

@volodymyr-chekyrta
volodymyr-chekyrta merged commit e76053c into openedx:develop Oct 30, 2024
@rnr
rnr deleted the part-3-sync-to-upstream branch November 22, 2024 12:51
IvanStepanok pushed a commit to raccoongang/openedx-app-ios that referenced this pull request Sep 1, 2025
* chore: show unsupported error screen for gated content (openedx#37)

* chore: string auto-generating

* chore: removed unused func

* chore: update facebook sdk to solve open(url) issue

---------

Co-authored-by: Saeed Bashir <sbashir@2u.com>
Co-authored-by: Anton Yarmolenko <37253+rnr@users.noreply.github.com>
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.

4 participants