Skip to content

Commit 39b47be

Browse files
adds IterableDataRegion enum and data region value to IterableConfig
1 parent fd55d0a commit 39b47be

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

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: DataRegion = DataRegion.US
127130
}

swift-sdk/IterableDataRegion.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// File.swift
3+
//
4+
//
5+
// Created by [email protected] on 4/4/23.
6+
//
7+
8+
import Foundation
9+
10+
enum DataRegion {
11+
static let US = "https://api.iterable.com"
12+
static let EU = "https://api.eu.iterable.com"
13+
}

0 commit comments

Comments
 (0)