Skip to content

Commit 0c23254

Browse files
committed
Support for Swift 4.2
1 parent 3b9f23e commit 0c23254

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

DataCompression.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Pod::Spec.new do |s|
22
s.name = "DataCompression"
3-
s.version = "3.0.0"
3+
s.version = "3.1.0"
44
s.summary = "Swift libcompression wrapper as an extension for the Data type (GZIP, ZLIB, LZFSE, LZMA, LZ4, deflate, RFC-1950, RFC-1951, RFC-1952)"
55
s.authors = { "Markus Wanke" => "mw99@users.noreply.github.com" }
66
s.homepage = "https://github.com/mw99/DataCompression"
77
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
88
s.source = { :git => "https://github.com/mw99/DataCompression.git", :tag => s.version }
99

10-
s.swift_version = '4.1'
10+
s.swift_version = '4.2'
1111

1212
s.ios.deployment_target = '9.0'
1313
s.osx.deployment_target = '10.11'

README.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
* watchOS deployment target **>= 2.0**
1919

2020

21+
#### Swift version support
22+
| Library Version | Swift Version |
23+
|-----------------|---------------|
24+
| 3.2.0 | 5.0 |
25+
| 3.1.0 | 4.2 |
26+
| 3.0.0 | 3.0 -> 4.1 |
27+
| 2.0.1 | < 3.0 |
28+
29+
2130
## Usage example
2231

2332
### Try all algorithms and compare the compression ratio
@@ -59,8 +68,8 @@ assert(data == inflated)
5968
##### Data in gzip format ([RFC-1952](https://www.ietf.org/rfc/rfc1952.txt)) can be handled with `.gzip()` and `.gunzip()`
6069
```
6170
let data: Data! = "https://www.ietf.org/rfc/rfc1952.txt".data(using: .utf8)
62-
let gzipped: Data! = data.zip()
63-
let gunzipped: Data? = gzipped.unzip()
71+
let gzipped: Data! = data.gzip()
72+
let gunzipped: Data? = gzipped.gunzip()
6473
assert(data == gunzipped)
6574
```
6675
*Note: Compressed data in gzip format will always be 18 bytes larger than raw deflated data and will append/perform a crc32 checksum based data integrity test .*
@@ -156,6 +165,13 @@ You only need one file located at `Sources/DataCompression.swift`. Drag and drop
156165

157166
## Change log / Upgrading guide
158167

168+
##### Version `3.1.0` to `3.2.0`
169+
- Podspec swift version set to **5.0**
170+
- Library file structure updated to fit the new swift package manager layout
171+
172+
##### Version `3.0.0` to `3.1.0`
173+
- Podspec swift version set to **4.2**
174+
159175
##### Version `2.0.X` to `3.0.0`
160176

161177
- The encoded data in zip format is not copied anymore, which should improve performance.

0 commit comments

Comments
 (0)