Skip to content

Commit

Permalink
Small tweaks (#15)
Browse files Browse the repository at this point in the history
* Directly add DocC dependency in package file

Since the package now only supports Swift 5.6 and higher we don't
need to check before adding the DocC dependency.

* Update README

Just a small change to show the latest app version in the example.

* Update Swift version

Since 5.6 support was previously dropped, updating the package files
to reflect that.
  • Loading branch information
manucheri committed Oct 11, 2023
1 parent 64e60d8 commit 5226af5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Aptabase.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Pod::Spec.new do |s|
s.osx.deployment_target = "10.15"
s.watchos.deployment_target = "6.0"
s.tvos.deployment_target = "13.0"
s.swift_version = '5.6'
s.swift_version = '5.7'
s.source_files = 'Sources/Aptabase/**/*'
end
12 changes: 4 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version: 5.6
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand All @@ -18,7 +18,9 @@ let package = Package(
name: "Aptabase",
targets: ["Aptabase"]),
],
dependencies: [],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
Expand All @@ -33,9 +35,3 @@ let package = Package(
)
]
)


#if swift(>=5.6)
// Add the DocC plugin if possible.
package.dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.3.0"))
#endif
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
...
dependencies: [
...
.package(name: "Aptabase", url: "https://github.com/aptabase/aptabase-swift.git", from: "0.2.3"),
.package(name: "Aptabase", url: "https://github.com/aptabase/aptabase-swift.git", from: "0.3.3"),
],
targets: [
.target(
Expand All @@ -39,7 +39,7 @@ Use this [guide](https://developer.apple.com/documentation/xcode/adding-package-
Aptabase is also available through CocoaPods. To install it, simply add the following line to your Podfile:

```ruby
pod 'Aptabase', :git => 'https://github.com/aptabase/aptabase-swift.git', :tag => '0.2.3'
pod 'Aptabase', :git => 'https://github.com/aptabase/aptabase-swift.git', :tag => '0.3.3'
```


Expand Down

0 comments on commit 5226af5

Please sign in to comment.