Skip to content

Commit 174ca3b

Browse files
committed
WooConstants: Adding keychainServiceName
1 parent 189f3f4 commit 174ca3b

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

WooCommerce/Classes/System/WooConstants.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import Foundation
33

44
/// WooCommerce Constants
55
///
6-
struct WooConstants {
6+
enum WooConstants {
77

8-
/// Private: No-OP!
8+
/// Keychain Access's Service Name
99
///
10-
private init() {}
10+
static let keychainServiceName = "com.automattic.woocommerce"
1111

1212
/// Jetpack Setup URL
1313
///

WooCommerce/Classes/Yosemite/StoresManager.swift

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class StoresManager {
99

1010
/// Shared Instance
1111
///
12-
static var shared = StoresManager(defaults: .standard, keychainServiceName: Settings.keychainServiceName)
12+
static var shared = StoresManager(defaults: .standard, keychainServiceName: WooConstants.keychainServiceName)
1313

1414
/// SessionManager: Persistent Storage for Session-Y Properties.
1515
///
@@ -81,18 +81,6 @@ private extension StoresManager {
8181
}
8282

8383

84-
// MARK: - Nested Types
85-
//
86-
private extension StoresManager {
87-
88-
/// Default Settings.
89-
///
90-
enum Settings {
91-
static let keychainServiceName = "com.automattic.woocommerce"
92-
}
93-
}
94-
95-
9684
// MARK: - StoresManagerState
9785
//
9886
protocol StoresManagerState {

0 commit comments

Comments
 (0)