Skip to content

Commit c84a4c7

Browse files
authored
Merge pull request #199 from dimitribouniol/dimitri/development
Deprecated `.sandbox` in favor of `.development`
2 parents 3164935 + 698fa93 commit c84a4c7

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ let client = APNSClient(
4040
keyIdentifier: keyIdentifier,
4141
teamIdentifier: teamIdentifier
4242
),
43-
environment: .sandbox
43+
environment: .development
4444
),
4545
eventLoopGroupProvider: .createNew,
4646
responseDecoder: JSONDecoder(),

Sources/APNS/APNS.docc/APNSwift.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ let client = APNSClient(
3737
keyIdentifier: keyIdentifier,
3838
teamIdentifier: teamIdentifier
3939
),
40-
environment: .sandbox
40+
environment: .development
4141
),
4242
eventLoopGroupProvider: .createNew,
4343
responseDecoder: JSONDecoder(),

Sources/APNSCore/APNSEnvironment.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ public struct APNSEnvironment: Sendable {
1818
public static let production = Self(url: "https://api.push.apple.com", port: 443)
1919

2020
/// The sandbox APNs environment.
21-
public static let sandbox = Self(url: "https://api.development.push.apple.com", port: 443)
21+
@available(*, deprecated, renamed: "development")
22+
public static let sandbox = development
23+
24+
/// The development APNs environment.
25+
public static let development = Self(url: "https://api.development.push.apple.com", port: 443)
2226

2327
/// Creates an APNs environment with a custom URL.
2428
///

Sources/APNSExample/Program.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct Main {
3737
keyIdentifier: keyIdentifier,
3838
teamIdentifier: teamIdentifier
3939
),
40-
environment: .sandbox
40+
environment: .development
4141
),
4242
eventLoopGroupProvider: .createNew,
4343
responseDecoder: JSONDecoder(),

Tests/APNSTests/APNSClientTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final class APNSClientTests: XCTestCase {
3333
keyIdentifier: "MY_KEY_ID",
3434
teamIdentifier: "MY_TEAM_ID"
3535
),
36-
environment: .sandbox
36+
environment: .development
3737
),
3838
eventLoopGroupProvider: .createNew,
3939
responseDecoder: JSONDecoder(),

0 commit comments

Comments
 (0)