-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert to Async Await, Add configurable environments, remove depreca…
…ted code (#130) * Initial * updates * clean up, let overriden environment be a thing * use nio deadline * use configured decoder * update workflow * Workflow again * again? * re-run * cleanup, remove PEM * cleanup * use dispatch group instead of sleep(). * use executable target * update versions * remove test code * cleanup and remove JWTKit * more cleanup * udate headers * update readme * update readme * Update public vendor to be `internal` * update meta files * linted * more privates, more internals.
- Loading branch information
1 parent
fc7a2f5
commit 2180617
Showing
33 changed files
with
1,104 additions
and
1,552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github: [kylebrowning, tanner0101] | ||
github: [kylebrowning] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
version: 1 | ||
builder: | ||
configs: | ||
- documentation_targets: [APNSwift] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"fileScopedDeclarationPrivacy" : { | ||
"accessLevel" : "private" | ||
}, | ||
"indentation" : { | ||
"spaces" : 4 | ||
}, | ||
"indentConditionalCompilationBlocks" : true, | ||
"indentSwitchCaseLabels" : false, | ||
"lineBreakAroundMultilineExpressionChainComponents" : false, | ||
"lineBreakBeforeControlFlowKeywords" : false, | ||
"lineBreakBeforeEachArgument" : false, | ||
"lineBreakBeforeEachGenericRequirement" : false, | ||
"lineLength" : 100, | ||
"maximumBlankLines" : 1, | ||
"prioritizeKeepingFunctionOutputTogether" : false, | ||
"respectsExistingLineBreaks" : true, | ||
"rules" : { | ||
"AllPublicDeclarationsHaveDocumentation" : false, | ||
"AlwaysUseLowerCamelCase" : true, | ||
"AmbiguousTrailingClosureOverload" : true, | ||
"BeginDocumentationCommentWithOneLineSummary" : false, | ||
"DoNotUseSemicolons" : true, | ||
"DontRepeatTypeInStaticProperties" : true, | ||
"FileScopedDeclarationPrivacy" : true, | ||
"FullyIndirectEnum" : true, | ||
"GroupNumericLiterals" : true, | ||
"IdentifiersMustBeASCII" : true, | ||
"NeverForceUnwrap" : false, | ||
"NeverUseForceTry" : false, | ||
"NeverUseImplicitlyUnwrappedOptionals" : false, | ||
"NoAccessLevelOnExtensionDeclaration" : true, | ||
"NoBlockComments" : true, | ||
"NoCasesWithOnlyFallthrough" : true, | ||
"NoEmptyTrailingClosureParentheses" : true, | ||
"NoLabelsInCasePatterns" : true, | ||
"NoLeadingUnderscores" : false, | ||
"NoParensAroundConditions" : true, | ||
"NoVoidReturnOnFunctionSignature" : true, | ||
"OneCasePerLine" : true, | ||
"OneVariableDeclarationPerLine" : true, | ||
"OnlyOneTrailingClosureArgument" : true, | ||
"OrderedImports" : true, | ||
"ReturnVoidInsteadOfEmptyTuple" : true, | ||
"UseEarlyExits" : false, | ||
"UseLetInEveryBoundCaseVariable" : true, | ||
"UseShorthandTypeNames" : true, | ||
"UseSingleLinePropertyGetter" : true, | ||
"UseSynthesizedInitializer" : true, | ||
"UseTripleSlashForDocumentationComments" : true, | ||
"UseWhereClausesInForLoops" : false, | ||
"ValidateDocumentationComments" : false | ||
}, | ||
"tabWidth" : 4, | ||
"version" : 1 | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,32 @@ | ||
// swift-tools-version:5.2 | ||
// swift-tools-version:5.6 | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "apnswift", | ||
platforms: [ | ||
.macOS(.v10_15), | ||
.iOS(.v13), | ||
.macOS(.v12), | ||
.iOS(.v15), | ||
], | ||
products: [ | ||
.executable(name: "APNSwiftExample", targets: ["APNSwiftExample"]), | ||
.library(name: "APNSwift", targets: ["APNSwift"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/apple/swift-nio.git", from: "2.10.1"), | ||
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.14.0"), | ||
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.13.0"), | ||
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"), | ||
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0"), | ||
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0"), | ||
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.10.0"), | ||
], | ||
targets: [ | ||
.target(name: "APNSwiftExample", dependencies: [ | ||
.target(name: "APNSwift"), | ||
]), | ||
.target(name: "APNSwiftPemExample", dependencies: [ | ||
.executableTarget(name: "APNSwiftExample", dependencies: [ | ||
.target(name: "APNSwift"), | ||
]), | ||
.testTarget(name: "APNSwiftTests", dependencies: [ | ||
.target(name: "APNSwift"), | ||
]), | ||
.target(name: "APNSwift", dependencies: [ | ||
.product(name: "JWTKit", package: "jwt-kit"), | ||
.product(name: "Logging", package: "swift-log"), | ||
.product(name: "NIO", package: "swift-nio"), | ||
.product(name: "NIOSSL", package: "swift-nio-ssl"), | ||
.product(name: "NIOHTTP1", package: "swift-nio"), | ||
.product(name: "NIOHTTP2", package: "swift-nio-http2"), | ||
.product(name: "NIOFoundationCompat", package: "swift-nio"), | ||
.product(name: "NIOTLS", package: "swift-nio"), | ||
.product(name: "Crypto", package: "swift-crypto"), | ||
.product(name: "AsyncHTTPClient", package: "async-http-client") | ||
]), | ||
] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.