Skip to content

Commit 32f9878

Browse files
authored
Merge pull request #109 from contentstack/development
Staging PR
2 parents 208ec1a + edd5ebf commit 32f9878

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# CHANGELOG
22

3+
## v2.3.0
4+
5+
### Date: 29-Sep-2025
6+
7+
- Added AU and GCP-EU region support
8+
39
## v2.2.0
410

5-
### Date: 01-Sep-2025
11+
### Date: 22-Sep-2025
612

713
- Async/await support added
814

Sources/CSDefinitions.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public enum ContentstackRegion: String {
4040
case azure_eu = "azure-eu"
4141
/// This region is for GCP-NA Cloud
4242
case gcp_na = "gcp-na"
43+
/// This region is for GCP-EU Cloud
44+
case gcp_eu = "gcp-eu"
45+
/// Australia (AU) region
46+
case au = "au"
4347
}
4448
/// The cache policies allow you to define the source from where the SDK will retrieve the content.
4549
public enum CachePolicy {

Tests/ContentstackTests.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ final class ContentstackTests: XCTestCase {
4242
XCTAssertEqual(stack.region, ContentstackRegion.gcp_na)
4343
XCTAssertNil(stack.branch)
4444
}
45+
46+
func testStack_AUHostRegion_ReturnStackWithAUValue () {
47+
let stack = makeStackSut(region: .au)
48+
XCTAssertEqual(stack.host, "au-cdn.contentstack.com")
49+
XCTAssertEqual(stack.region, ContentstackRegion.au)
50+
XCTAssertNil(stack.branch)
51+
}
4552

4653
func testStack_NewHost_ReturnStackWithNewHost () {
4754
let host = "api.contentstack.com"

0 commit comments

Comments
 (0)