-
Notifications
You must be signed in to change notification settings - Fork 180
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
User defaults group migration #1240
Conversation
…V2 into user-defaults-group-migration
@@ -8,13 +8,20 @@ public class Networking { | |||
} | |||
|
|||
public static var interactor: NetworkingInteractor = { | |||
guard let _ = Networking.config else { |
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.
It was empty? lol
}() | ||
|
||
public static var groupIdentifier: String { | ||
guard let config = Networking.config else { |
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.
we're copy and pasting fatal error. May be create private static var config: Config
and throw fatal error only there?
|
||
let keychainStorage = KeychainStorage(serviceIdentifier: "com.walletconnect.sdk") | ||
let keyValueStorage = UserDefaults.standard | ||
let keyValueStorage = UserDefaults(suiteName: groupIdentifier) ?? UserDefaults.standard |
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.
let's consider Factory?
Description
Resolves # (issue)
How Has This Been Tested?
Due Dilligence