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

when and why does app reset through arguments? #1124

Closed
tomholub opened this issue Nov 30, 2021 · 5 comments
Closed

when and why does app reset through arguments? #1124

tomholub opened this issue Nov 30, 2021 · 5 comments

Comments

@tomholub
Copy link
Collaborator

tomholub commented Nov 30, 2021

    if ProcessInfo().arguments.contains(AppReset.reset.rawValue) {
        AppReset.resetKeychain()
        AppReset.resetUserDefaults()
    }

Originally posted by @tomholub in #1111 (comment)

@tomholub tomholub changed the title when and why should app reset through arguments? when and why does app reset through arguments? Nov 30, 2021
@tomholub tomholub added this to the 0.6.0: Maintenance milestone Nov 30, 2021
@tomholub
Copy link
Collaborator Author

I wonder what is the purpose of the code above. It's clear what it does, but when and why?

@ivan-ushakov
Copy link
Contributor

I wonder what is the purpose of the code above. It's clear what it does, but when and why?

Maybe this is used for UI tests?

@tomholub
Copy link
Collaborator Author

It does look like it's for tests. But I believe UI tests were added without it. Let's see git blame

@tomholub
Copy link
Collaborator Author

Good call, it was used for now deprecated UI tests that were written in swift.

image

@tomholub
Copy link
Collaborator Author

I'll remove it

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

No branches or pull requests

2 participants