-
Notifications
You must be signed in to change notification settings - Fork 6
update iOS screenshots #602
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
Conversation
iosApp/iosApp/iOSApp.swift
Outdated
if launchArguments.contains("--skipOnboarding") { | ||
UserDefaults.standard.set(3, forKey: "notification_popup") | ||
} |
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.
I think this should have a comment explaining what is going on.
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.
Adding a description
import platform.darwin.NSObject | ||
import platform.darwin.NSObjectMeta | ||
|
||
object PreferenceMigration : DataMigration<Preferences> { |
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.
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?
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.
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.
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.
Ok, you confirmed the migration doesn't run for new users? Then it's ok.
No description provided.