Skip to content

Conversation

aanorbel
Copy link
Member

No description provided.

@aanorbel aanorbel requested a review from sdsantos March 24, 2025 21:42
Comment on lines 21 to 23
if launchArguments.contains("--skipOnboarding") {
UserDefaults.standard.set(3, forKey: "notification_popup")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should have a comment explaining what is going on.

Copy link
Member Author

Choose a reason for hiding this comment

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

Adding a description

import platform.darwin.NSObject
import platform.darwin.NSObjectMeta

object PreferenceMigration : DataMigration<Preferences> {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is applied not just for testing right? I feel like this will override our BootstrapPreferences, because it sets FIRST_RUN. Can't we just run this for testing? Through some flag like you have?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not for testing. To ensure that i can bypass onboarding, I needed to find a way to migrate native preferences to multiplatform which we did not do before. One way forward was to roll a preference migration by hand. Applies only to apps that dont have multiplatform preferences already.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, you confirmed the migration doesn't run for new users? Then it's ok.

@aanorbel aanorbel requested a review from sdsantos March 26, 2025 14:48
@aanorbel aanorbel merged commit 443b568 into main Mar 26, 2025
7 checks passed
@aanorbel aanorbel deleted the fix/ios-screenshots branch March 26, 2025 15:33
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.

2 participants