Skip to content

Commit 5419717

Browse files
committed
Merge branch 'develop'
2 parents 0714d44 + bba5eb7 commit 5419717

41 files changed

Lines changed: 1551 additions & 818 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,17 @@ fastlane/Preview.html
6464
fastlane/screenshots
6565
fastlane/test_output
6666

67-
# Ignore symbolic link to swcomp executable built by SPM
67+
# Symbolic link to swcomp executable built by SPM
6868
/swcomp
6969

70-
# Ignore Package.resolved, because we don't want to fix dependencies' versions
70+
# Package.resolved, because we don't want to fix dependencies' versions
7171
Package.resolved
7272

73-
# Ignore docs generated by SourceKitten
73+
# Docs generated by SourceKitten
7474
docs.json
7575

76-
# Ignore docs generated by Jazzy
76+
# Docs generated by Jazzy
7777
docs/
78+
79+
# Vscode launch.json generated by Swift extension
80+
.vscode/launch.json

.jazzy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ sourcekitten_sourcefile: docs.json
33
clean: false
44
author: Timofey Solomko
55
module: SWCompression
6-
module_version: 4.8.1
6+
module_version: 4.8.2
77
copyright: '© 2022 Timofey Solomko'
88
readme: README.md
99
github_url: https://github.com/tsolomko/SWCompression
10-
github_file_prefix: https://github.com/tsolomko/SWCompression/tree/4.8.1
10+
github_file_prefix: https://github.com/tsolomko/SWCompression/tree/4.8.2
1111
theme: fullwidth
1212

1313
custom_categories:

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## 4.8.2
4+
5+
- Swift 5.1 is no longer supported.
6+
- Increased minimum deployment versions (when installed via CocoaPods or Carthage) for Darwin platforms: macOS from 10.10
7+
to 10.13, iOS from 9.0 to 11.0, tvOS from 9.0 to 11.0, and watchOS from 2.0 to 4.0.
8+
- Fixed issues when building for iOS either directly or via Carthage on systems with Xcode 14.
9+
- Fixed potential crashes that could occur when decompressing truncated Deflate inputs.
10+
- swcomp changes:
11+
- swcomp is now enabled by default in Swift Package Manager manifest.
12+
- Added `-l`, `--list` option to container commands (`7z`, `tar`, and `zip`).
13+
- Systematized error exit codes and messages.
14+
- Added `-s`, `--save` option to the `benchmark` command.
15+
- Added `-c`, `--compare` option to the `benchmark` command.
16+
- Added `-i`, `--iteration-count` option to the `benchmark` command.
17+
- Added `-W`, `--no-warmup` option to the `benchmark` command.
18+
- Benchmarks now output standard deviation instead of speed uncertainty.
19+
320
## 4.8.1
421

522
- Fix incorrect detection of truncated GZip archives.

Package.swift

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.1
1+
// swift-tools-version:5.2
22
import PackageDescription
33

44
let package = Package(
@@ -9,24 +9,22 @@ let package = Package(
99
targets: ["SWCompression"]),
1010
],
1111
dependencies: [
12-
// SWCOMP: Uncomment the line below to build swcomp example program.
13-
// .package(url: "https://github.com/jakeheis/SwiftCLI",
14-
// from: "6.0.0"),
15-
.package(url: "https://github.com/tsolomko/BitByteData",
12+
.package(name: "BitByteData", url: "https://github.com/tsolomko/BitByteData",
1613
from: "2.0.0"),
14+
.package(name: "SwiftCLI", url: "https://github.com/jakeheis/SwiftCLI",
15+
from: "6.0.0"),
1716
],
1817
targets: [
19-
// SWCOMP: Uncomment the lines below to build swcomp example program.
20-
// .target(
21-
// name: "swcomp",
22-
// dependencies: ["SWCompression", "SwiftCLI"],
23-
// path: "Sources",
24-
// sources: ["swcomp"]),
2518
.target(
2619
name: "SWCompression",
2720
dependencies: ["BitByteData"],
2821
path: "Sources",
2922
sources: ["Common", "7-Zip", "BZip2", "Deflate", "GZip", "LZ4", "LZMA", "LZMA2", "TAR", "XZ", "ZIP", "Zlib"]),
23+
.target(
24+
name: "swcomp",
25+
dependencies: ["SWCompression", "SwiftCLI"],
26+
path: "Sources",
27+
sources: ["swcomp"]),
3028
],
3129
swiftLanguageVersions: [.v5]
3230
)

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SWCompression
22

3-
[![Swift 5.1+](https://img.shields.io/badge/Swift-5.1+-blue.svg)](https://developer.apple.com/swift/)
3+
[![Swift 5.2+](https://img.shields.io/badge/Swift-5.2+-blue.svg)](https://developer.apple.com/swift/)
44
[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/tsolomko/SWCompression/master/LICENSE)
55
[![Build Status](https://dev.azure.com/tsolomko/SWCompression/_apis/build/status/tsolomko.SWCompression?branchName=develop)](https://dev.azure.com/tsolomko/SWCompression/_build/latest?definitionId=3&branchName=develop)
66

@@ -19,7 +19,7 @@ It also works on Apple platforms, Linux, __and Windows__.
1919
All features are listed in the tables below. "TBD" means that feature is planned but not implemented (yet).
2020

2121
| | Deflate | BZip2 | LZMA/LZMA2 | LZ4 |
22-
| ------------- | ------- | ----- | ---------- | --- |
22+
| ------------- | ------- | ----- | ---------- | --- |
2323
| Decompression |||||
2424
| Compression ||| TBD ||
2525

@@ -44,8 +44,8 @@ import PackageDescription
4444
let package = Package(
4545
name: "PackageName",
4646
dependencies: [
47-
.package(url: "https://github.com/tsolomko/SWCompression.git",
48-
from: "4.7.0")
47+
.package(name: "SWCompression", url: "https://github.com/tsolomko/SWCompression.git",
48+
from: "4.8.0")
4949
],
5050
targets: [
5151
.target(
@@ -60,7 +60,7 @@ More details you can find in [Swift Package Manager's Documentation](https://git
6060

6161
### CocoaPods
6262

63-
Add `pod 'SWCompression', '~> 4.7'` and `use_frameworks!` lines to your Podfile.
63+
Add `pod 'SWCompression', '~> 4.8'` and `use_frameworks!` lines to your Podfile.
6464

6565
To complete installation, run `pod install`.
6666

@@ -105,7 +105,7 @@ BZip2, LZMA/LZMA2 and LZ4 support).
105105

106106
### Carthage
107107

108-
Add to your Cartfile `github "tsolomko/SWCompression" ~> 4.7`.
108+
Add to your Cartfile `github "tsolomko/SWCompression" ~> 4.8`.
109109

110110
Then:
111111

@@ -168,8 +168,8 @@ Every function or type of SWCompression's public API is documented. This documen
168168

169169
### Sophisticated example
170170

171-
There is a small command-line program, "swcomp", which is included in this repository in "Sources/swcomp". To build it
172-
you need to uncomment several lines in "Package.swift" and run `swift build -c release`.
171+
There is a small command-line program, "swcomp", which is included in this repository in "Sources/swcomp". It can be
172+
built using Swift Package Manager.
173173

174174
## Contributing
175175

@@ -236,7 +236,7 @@ provide missing (and sometimes existing) functionality through the unified API w
236236

237237
Secondly, in some cases it may be important to have a compression framework written entirely in Swift, without relying
238238
on either system libraries or solutions implemented in other languages. Additionaly, since SWCompression is written
239-
completely in Swift without Objective-C, it can also be used on __Linux__.
239+
completely in Swift without Objective-C, it can also be used on Linux, __and Windows__.
240240

241241
## Future plans
242242

SWCompression.podspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "SWCompression"
4-
s.version = "4.8.1"
4+
s.version = "4.8.2"
55
s.summary = "A framework with functions for working with compression, archives and containers."
66

77
s.description = "A framework with (de)compression algorithms and functions for processing various archives and containers."
@@ -15,10 +15,10 @@ Pod::Spec.new do |s|
1515

1616
s.source = { :git => "https://github.com/tsolomko/SWCompression.git", :tag => "#{s.version}" }
1717

18-
s.ios.deployment_target = "9.0"
19-
s.osx.deployment_target = "10.10"
20-
s.tvos.deployment_target = "9.0"
21-
s.watchos.deployment_target = "2.0"
18+
s.ios.deployment_target = "11.0"
19+
s.osx.deployment_target = "10.13"
20+
s.tvos.deployment_target = "11.0"
21+
s.watchos.deployment_target = "4.0"
2222

2323
s.swift_versions = ["5"]
2424

SWCompression.xcodeproj/SWCompression.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.8.1</string>
18+
<string>4.8.2</string>
1919
<key>CFBundleVersion</key>
20-
<string>86</string>
20+
<string>87</string>
2121
<key>NSHumanReadableCopyright</key>
2222
<string>Copyright © 2022 Timofey Solomko</string>
2323
</dict>

SWCompression.xcodeproj/TestSWCompression.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.8.1</string>
18+
<string>4.8.2</string>
1919
<key>CFBundleVersion</key>
20-
<string>86</string>
20+
<string>87</string>
2121
</dict>
2222
</plist>

0 commit comments

Comments
 (0)