Skip to content

Commit 0042229

Browse files
authored
Merge pull request #620 from Iterable/evan/MOB-5869-add-data-center-configuration
[MOB-5869] adds data center configuration
2 parents fd55d0a + b61e609 commit 0042229

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

swift-sdk/Constants.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ enum JsonValue {
270270
}
271271
}
272272

273+
enum IterableDataRegion {
274+
static let US = "https://api.iterable.com"
275+
static let EU = "https://api.eu.iterable.com"
276+
}
277+
273278
public protocol JsonValueRepresentable {
274279
var jsonValue: Any { get }
275280
}

swift-sdk/IterableConfig.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,7 @@ public class IterableConfig: NSObject {
124124

125125
/// Set whether the SDK should store in-apps only in memory, or in file storage
126126
public var useInMemoryStorageForInApps = false
127+
128+
/// Sets data region which determines data center and endpoints used by the SDK
129+
public var dataRegion: String = IterableDataRegion.US
127130
}

0 commit comments

Comments
 (0)