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

Deprecate defaultUIKitMain() in order to remove it #1585

Merged

Conversation

ASalavei
Copy link
Collaborator

@ASalavei ASalavei commented Sep 23, 2024

Currently the app crashes on a swipe back gesture, if the root controller is a UINavigationController.
The UIApplication should be initialized before the view controller is being created.
defaultUIKitMain should be moved to the demo app and should not be part of the public API.

Release Notes

Fixes - iOS

  • Deprecate defaultUIKitMain()

Copy link
Member

@MatkovIvan MatkovIvan left a comment

Choose a reason for hiding this comment

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

Please follow template and fix release notes format.

As a follow-up item, it's required to change documentation/tutorials/examples

fun defaultUIKitMain(executableName: String, rootViewController: UIViewController)
= defaultUIKitMain(executableName) { rootViewController }

fun defaultUIKitMain(executableName: String, makeRootViewController: () -> UIViewController) {
Copy link
Member

Choose a reason for hiding this comment

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

Is it a final look of this API? Name? Package? Parameters?

Also:

  • No docs for public API

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The method marked as deprecated.

@elijah-semyonov
Copy link

elijah-semyonov commented Sep 23, 2024

I think it's an accidental public API during transition to Beta. AFAIK, nobody but us uses it.

@ASalavei ASalavei changed the title Fix Swipe Back crash when app is launched from defaultUIKitMain Deprecate defaultUIKitMain() in order to remove it Sep 27, 2024
@ASalavei
Copy link
Collaborator Author

@elijah-semyonov , thank for the info. I think we should deprecate it and remove from the public API.

@ASalavei ASalavei requested a review from MatkovIvan September 27, 2024 07:21
@ASalavei ASalavei requested a review from MatkovIvan September 27, 2024 09:24
@ASalavei ASalavei merged commit 0b943e4 into jb-main Sep 30, 2024
5 of 6 checks passed
@ASalavei ASalavei deleted the andrei.salavei/postpone-vc-creation-in-defaultUIKitMain branch September 30, 2024 14:10
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.

3 participants