Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/WordPressData/Swift/AuthKeyMigration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public struct AuthKeyMigration: AuthKeyMigrationProtocol {
return true
}
guard shouldMigrate else { return }
SharedDataIssueSolver.instance().migrateAuthKey(for: username)
SharedDataIssueSolver().migrateAuthKey(for: username)
}
}
10 changes: 1 addition & 9 deletions Sources/WordPressData/Swift/SharedDataIssueSolver.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import WordPressShared
import BuildSettingsKit

@objcMembers
public final class SharedDataIssueSolver: NSObject {
public final class SharedDataIssueSolver {

private let contextManager: CoreDataStack
private let keychainUtils: KeychainUtils
Expand All @@ -22,13 +21,6 @@ public final class SharedDataIssueSolver: NSObject {
self.appGroupName = appGroupName
}

/// Helper method for creating an instance in Obj-C
///
@objc
public class func instance() -> SharedDataIssueSolver {
return SharedDataIssueSolver()
}

public func migrateAuthKey() {
guard let account = try? WPAccount.lookupDefaultWordPressComAccount(in: contextManager.mainContext) else {
return
Expand Down