Skip to content

Commit

Permalink
Merge branch 'main' into chore/readme-revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Sichan Yoo committed Sep 19, 2024
2 parents b45bc6d + 7b75b71 commit 2959dfb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
24 changes: 11 additions & 13 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ let package = Package(
.library(name: "SmithyWaitersAPI", targets: ["SmithyWaitersAPI"]),
.library(name: "SmithyTestUtil", targets: ["SmithyTestUtil"]),
],
dependencies: [
.package(url: "https://github.com/awslabs/aws-crt-swift.git", exact: "0.36.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
],
dependencies: {
var dependencies: [Package.Dependency] = [
.package(url: "https://github.com/awslabs/aws-crt-swift.git", exact: "0.36.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
]
let isDocCEnabled = ProcessInfo.processInfo.environment["AWS_SWIFT_SDK_ENABLE_DOCC"] != nil
if isDocCEnabled {
dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"))
}
return dependencies
}(),
targets: [
.target(
name: "Smithy",
Expand Down Expand Up @@ -275,12 +282,3 @@ let package = Package(
),
].compactMap { $0 }
)

func addDoccDependency() {
guard ProcessInfo.processInfo.environment["AWS_SWIFT_SDK_ENABLE_DOCC"] != nil else { return }
package.dependencies += [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
]
}

addDoccDependency()
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.71.0
0.72.0
2 changes: 1 addition & 1 deletion Package.version.next
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.72.0
0.73.0

0 comments on commit 2959dfb

Please sign in to comment.