Skip to content

Commit 1825d53

Browse files
Merge pull request #110 from contentstack/staging
DX | 29-09-2025 | Release
2 parents fa0ff89 + dd21397 commit 1825d53

File tree

4 files changed

+56
-39
lines changed

4 files changed

+56
-39
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -51,47 +51,47 @@ jobs:
5151
-destination 'platform=macOS,arch=arm64' \
5252
ONLY_ACTIVE_ARCH=NO \
5353
CODE_SIGNING_ALLOWED=NO
54-
iOS:
55-
name: Test iOS
56-
runs-on: macos-latest
57-
steps:
58-
- name: Checkout repository
59-
uses: actions/checkout@v3
54+
# iOS:
55+
# name: Test iOS
56+
# runs-on: macos-latest
57+
# steps:
58+
# - name: Checkout repository
59+
# uses: actions/checkout@v3
6060

61-
- name: Configure Git credentials
62-
run: |
63-
git config --global url."https://x-access-token:${{ secrets.PKG_TOKEN }}@github.com/".insteadOf "https://github.com/"
61+
# - name: Configure Git credentials
62+
# run: |
63+
# git config --global url."https://x-access-token:${{ secrets.PKG_TOKEN }}@github.com/".insteadOf "https://github.com/"
6464

65-
- name: Set up Ruby (for installing Bundler and Fastlane)
66-
uses: ruby/setup-ruby@v1
67-
with:
68-
ruby-version: '3.0'
65+
# - name: Set up Ruby (for installing Bundler and Fastlane)
66+
# uses: ruby/setup-ruby@v1
67+
# with:
68+
# ruby-version: '3.0'
6969

70-
- name: Install dep via Carthage
71-
run: |
72-
carthage bootstrap --platform iOS --use-xcframeworks --cache-builds
70+
# - name: Install dep via Carthage
71+
# run: |
72+
# carthage bootstrap --platform iOS --use-xcframeworks --cache-builds
7373

74-
- name: Install dependencies via Swift Package Manager
75-
run: swift package resolve
74+
# - name: Install dependencies via Swift Package Manager
75+
# run: swift package resolve
7676

77-
- name: Set up Xcode
78-
uses: maxim-lobanov/setup-xcode@v1
79-
with:
80-
xcode-version: '16.4.0'
81-
- name: Create config file
82-
run: |
83-
echo '{
84-
"api_key": "${{ secrets.api_key }}",
85-
"delivery_token": "${{ secrets.delivery_token }}",
86-
"environment": "${{ secrets.environment }}"
87-
}' > Tests/config.json
77+
# - name: Set up Xcode
78+
# uses: maxim-lobanov/setup-xcode@v1
79+
# with:
80+
# xcode-version: '16.4.0'
81+
# - name: Create config file
82+
# run: |
83+
# echo '{
84+
# "api_key": "${{ secrets.api_key }}",
85+
# "delivery_token": "${{ secrets.delivery_token }}",
86+
# "environment": "${{ secrets.environment }}"
87+
# }' > Tests/config.json
8888

89-
- name: Build and run tests
90-
run: |
91-
xcodebuild test \
92-
-workspace ContentstackSwift.xcworkspace \
93-
-scheme "ContentstackSwift iOS Tests" \
94-
-destination "platform=iOS Simulator,name=iPhone 16,OS=18.5" \
95-
-sdk iphonesimulator \
96-
ONLY_ACTIVE_ARCH=NO \
97-
CODE_SIGNING_ALLOWED=NO
89+
# - name: Build and run tests
90+
# run: |
91+
# xcodebuild test \
92+
# -workspace ContentstackSwift.xcworkspace \
93+
# -scheme "ContentstackSwift iOS Tests" \
94+
# -destination "platform=iOS Simulator,name=iPhone 16,OS=18.5" \
95+
# -sdk iphonesimulator \
96+
# ONLY_ACTIVE_ARCH=NO \
97+
# CODE_SIGNING_ALLOWED=NO

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)