Skip to content

Commit

Permalink
Xcode 11 & Swift Package Manager 5 support added
Browse files Browse the repository at this point in the history
  • Loading branch information
mw99 committed Aug 8, 2019
1 parent b0619b2 commit 6abb8f3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>1</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions DataCompression.podspec
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
Pod::Spec.new do |s|
s.name = "DataCompression"
s.version = "3.5.0"
s.version = "3.6.0"
s.summary = "Swift libcompression wrapper as an extension for the Data type (GZIP, ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951, RFC-1952)"
s.authors = { "Markus Wanke" => "[email protected]" }
s.homepage = "https://github.com/mw99/DataCompression"
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.source = { :git => "https://github.com/mw99/DataCompression.git", :tag => s.version }

s.swift_version = '5.0'
s.swift_version = '5'

s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
Expand Down
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// swift-tools-version:4.0
// swift-tools-version:5.0

import PackageDescription

let package = Package(
name: "DataCompression",
platforms: [.macOS(.v10_11), .iOS(.v9), .tvOS(.v9), .watchOS(.v2)],
products: [
.library(
name: "DataCompression",
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#### Swift version support
| Library Version | Swift Version |
|-----------------|---------------|
| 3.7.0 | 5.1 (Xcode 11)|
| 3.5.0 | 5.0 |
| 3.1.0 | 4.2 |
| 3.0.0 | 3.0 -> 4.1 |
Expand Down Expand Up @@ -175,10 +176,10 @@ let package = Package(

You then will need to add `import DataCompression` at the top of your swift source files to use the extension.

The next time you run `swift build`, the new dependencies will be resolved. Since the swift package manager still does not allow packages to define their minimum deployment target, you will have to define these on the command line. I expect this to be fixed in a future release of the swift package manager.
The next time you run `swift build`, the new dependencies will be resolved.

```bash
$ swift build -Xswiftc -target -Xswiftc x86_64-apple-macosx10.11
$ swift build
```


Expand All @@ -190,6 +191,11 @@ You only need one file located at `Sources/DataCompression.swift`. Drag and drop
## Change log / Upgrading guide


##### Version `3.5.0` to `3.6.0`
- Target platforms finally added to the SPM Package file
- Carthage support improved
- Support for Xcode 11 SPM integration

##### Version `3.4.0` to `3.5.0`
- Fix that prevents a bug in Apples lzfse compressor when working with large chunks of data.

Expand Down

0 comments on commit 6abb8f3

Please sign in to comment.