Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated .sandbox in favor of .development #199

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let client = APNSClient(
keyIdentifier: keyIdentifier,
teamIdentifier: teamIdentifier
),
environment: .sandbox
environment: .development
),
eventLoopGroupProvider: .createNew,
responseDecoder: JSONDecoder(),
Expand Down
2 changes: 1 addition & 1 deletion Sources/APNS/APNS.docc/APNSwift.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let client = APNSClient(
keyIdentifier: keyIdentifier,
teamIdentifier: teamIdentifier
),
environment: .sandbox
environment: .development
),
eventLoopGroupProvider: .createNew,
responseDecoder: JSONDecoder(),
Expand Down
6 changes: 5 additions & 1 deletion Sources/APNSCore/APNSEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ public struct APNSEnvironment: Sendable {
public static let production = Self(url: "https://api.push.apple.com", port: 443)

/// The sandbox APNs environment.
public static let sandbox = Self(url: "https://api.development.push.apple.com", port: 443)
@available(*, deprecated, renamed: "development")
public static let sandbox = development

/// The development APNs environment.
public static let development = Self(url: "https://api.development.push.apple.com", port: 443)

/// Creates an APNs environment with a custom URL.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/APNSExample/Program.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ struct Main {
keyIdentifier: keyIdentifier,
teamIdentifier: teamIdentifier
),
environment: .sandbox
environment: .development
),
eventLoopGroupProvider: .createNew,
responseDecoder: JSONDecoder(),
Expand Down
2 changes: 1 addition & 1 deletion Tests/APNSTests/APNSClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class APNSClientTests: XCTestCase {
keyIdentifier: "MY_KEY_ID",
teamIdentifier: "MY_TEAM_ID"
),
environment: .sandbox
environment: .development
),
eventLoopGroupProvider: .createNew,
responseDecoder: JSONDecoder(),
Expand Down