11# SWCompression
22
3- [ ![ Swift 4.2] ( https://img.shields.io/badge/Swift-4.2-blue.svg )] ( https://developer.apple.com/swift/ )
43[ ![ Swift 5.X] ( https://img.shields.io/badge/Swift-5.X-blue.svg )] ( https://developer.apple.com/swift/ )
54[ ![ GitHub license] ( https://img.shields.io/badge/license-MIT-lightgrey.svg )] ( https://raw.githubusercontent.com/tsolomko/SWCompression/master/LICENSE )
65[ ![ Build Status] ( https://travis-ci.com/tsolomko/SWCompression.svg?branch=develop )] ( https://travis-ci.com/tsolomko/SWCompression )
@@ -10,7 +9,7 @@ A framework with (de)compression algorithms and functions for working with vario
109
1110## What is this?
1211
13- SWCompression & mdash ; is a framework with a collection of functions for:
12+ SWCompression is a framework with a collection of functions for:
1413
15141 . Decompression (and sometimes compression) using different algorithms.
16152 . Reading (and sometimes writing) archives of different formats.
@@ -34,7 +33,7 @@ Also, SWCompression is _written with Swift only._
3433
3534## Installation
3635
37- SWCompression can be integrated into your project using Swift Package Manager, CocoaPods or Carthage.
36+ SWCompression can be integrated into your project using Swift Package Manager, CocoaPods, or Carthage.
3837
3938### Swift Package Manager
4039
@@ -47,7 +46,7 @@ let package = Package(
4746 name : " PackageName" ,
4847 dependencies : [
4948 .package (url : " https://github.com/tsolomko/SWCompression.git" ,
50- from : " 4.5 .0" )
49+ from : " 4.6 .0" )
5150 ],
5251 targets : [
5352 .target (
@@ -58,11 +57,11 @@ let package = Package(
5857)
5958```
6059
61- More details you can find in [ Swift Package Manager's Documentation] ( https://github.com/apple/swift-package-manager/tree/master /Documentation ) .
60+ More details you can find in [ Swift Package Manager's Documentation] ( https://github.com/apple/swift-package-manager/tree/main /Documentation ) .
6261
6362### CocoaPods
6463
65- Add ` pod 'SWCompression', '~> 4.5 ' ` and ` use_frameworks! ` lines to your Podfile.
64+ Add ` pod 'SWCompression', '~> 4.6 ' ` and ` use_frameworks! ` lines to your Podfile.
6665
6766To complete installation, run ` pod install ` .
6867
@@ -105,19 +104,17 @@ BZip2 and LZMA/LZMA2 support).
105104
106105### Carthage
107106
108- __ Important:__ Only Swift 5.x is supported when installing SWCompression via Carthage.
109-
110- Add to your Cartfile ` github "tsolomko/SWCompression" ~> 4.5 ` .
107+ Add to your Cartfile ` github "tsolomko/SWCompression" ~> 4.6 ` .
111108
112109Then:
113110
114- 1 . If you use Xcode 12 or later you should run ` carthage update --use-xcframeworks --no-use-binaries ` . After that drag
115- and drop both ` SWCompression.xcframework ` and ` BitByteData.xcframework ` files from from the ` Carthage/Build/ ` directory
116- into the "Frameworks, Libraries, and Embedded Content" section of your target's "General" tab in Xcode.
111+ 1 . If you use Xcode 12 or later you should run ` carthage update --use-xcframeworks ` . After that drag and drop both
112+ ` SWCompression.xcframework ` and ` BitByteData.xcframework ` files from from the ` Carthage/Build/ ` directory into the
113+ "Frameworks, Libraries, and Embedded Content" section of your target's "General" tab in Xcode.
117114
118- 2 . If you use Xcode 11 or earlier you should run ` carthage update --no-use-binaries ` . After that drag and drop both
119- ` SWCompression.framework ` and ` BitByteData.framework ` files from from the ` Carthage/Build/<platform>/ ` directory into the
120- "Embedded Binaries" section of your target's "General" tab in Xcode.
115+ 2 . If you use Xcode 11 or earlier you should run ` carthage update ` . After that drag and drop both
116+ ` SWCompression.framework ` and ` BitByteData.framework ` files from from the ` Carthage/Build/<platform>/ ` directory into
117+ the "Embedded Binaries" section of your target's "General" tab in Xcode.
121118
122119For Xcode 12 or later you can currently also use the
123120[ xconfig workaround] ( https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md ) .
165162### Documentation
166163
167164Every function or type of SWCompression's public API is documented. This documentation can be found at its own
168- [ website] ( http://tsolomko.github.io/SWCompression ) .
165+ [ website] ( http://tsolomko.github.io/SWCompression ) or via a slightly shorter link:
166+ [ swcompression.tsolomko.me] ( http://swcompression.tsolomko.me )
169167
170168### Sophisticated example
171169
@@ -175,7 +173,8 @@ you need to uncomment several lines in "Package.swift" and run `swift build -c r
175173## Contributing
176174
177175Whether you find a bug, have a suggestion, idea, feedback or something else, please
178- [ create an issue] ( https://github.com/tsolomko/SWCompression/issues ) on GitHub.
176+ [ create an issue] ( https://github.com/tsolomko/SWCompression/issues ) on GitHub. If you have any questions, you can ask
177+ them on the [ Discussions] ( https://github.com/tsolomko/SWCompression/discussions ) page.
179178
180179In the case of a bug, it will be especially helpful if you attach a file (archive, etc.) that caused the bug to occur.
181180
@@ -205,7 +204,7 @@ There are two reasons for this complicated setup. Firstly, some of these files c
205204unfortunate if the users of SWCompression had to download them every time during the installation. Secondly, Swift
206205Package Manager and contemporary versions of Xcode don't always work well with git-lfs-enabled repositories. To prevent
207206any potential problems test files were moved into another repository. Additionaly, the custom command line tool ` utils.py `
208- is used to work around issues occuring on certain user systems (see, for example, # 9 ).
207+ is used to work around issues occuring on certain user systems (see, for example, [ # 9 ] ( https://github.com/tsolomko/SWCompression/issues/9 ) ).
209208
210209Please note, that if you want to add a new _ type_ of test files, in addition to running ` git lfs track ` , you have to
211210also copy into the "Tests/Test Files/gitattributes-copy" file a line this command adds to the "Tests/Test Files/.gitattributes"
0 commit comments