Skip to content

Commit

Permalink
Merge branch 'release/3.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Dec 14, 2016
2 parents 374a3da + df9cac8 commit 5ebd3ab
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 31 deletions.
18 changes: 10 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: objective-c
osx_image: xcode8
osx_image: xcode8.2

xcode_project: Gzip.xcodeproj
matrix:
Expand All @@ -14,13 +14,15 @@ matrix:
before_install:
- gem install xcpretty
- gem install xcpretty-travis-formatter
- gem install cocoapods
script:
xcodebuild
-project "$TRAVIS_XCODE_PROJECT"
-scheme "$TRAVIS_XCODE_SCHEME"
-sdk "$TRAVIS_XCODE_SDK"
-destination "$DESTINATION"
clean test
| xcpretty -f `xcpretty-travis-formatter`
- xcodebuild
-project "$TRAVIS_XCODE_PROJECT"
-scheme "$TRAVIS_XCODE_SCHEME"
-sdk "$TRAVIS_XCODE_SDK"
-destination "$DESTINATION"
clean test
| xcpretty -f `xcpretty-travis-formatter`
- pod lib lint --quick
after_success:
- bash <(curl -s https://codecov.io/bash)
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Change Log
==========================

3.1.3
--------------------------

### Changes

- Update Xcode to 8.2.


3.1.2
--------------------------

Expand Down
Binary file added Documentation/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Documentation/[email protected]
Binary file not shown.
4 changes: 2 additions & 2 deletions Gzip.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@
ONLY_ACTIVE_ARCH = YES;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0.1;
SWIFT_VERSION = 3.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
Expand Down Expand Up @@ -652,7 +652,7 @@
MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = NO;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_VERSION = 3.0.1;
SWIFT_VERSION = 3.0;
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
Expand Down
3 changes: 2 additions & 1 deletion GzipSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
Pod::Spec.new do |s|
s.name = "GzipSwift"
s.version = "3.1.2"
s.version = "3.1.3"
s.summary = "Swift framework that enables gzip/gunzip Data using zlib."

s.homepage = "https://github.com/1024jp/GzipSwift"
s.license = { :type => "MIT",
:file => "LICENSE" }
s.author = { "1024jp" => "[email protected]" }
s.social_media_url = "https://twitter.com/1024jp"

s.source = { :git => "https://github.com/1024jp/GzipSwift.git",
:tag => s.version }
Expand Down
2 changes: 1 addition & 1 deletion Project/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.1.2</string>
<string>3.1.3</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
36 changes: 17 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ GzipSwift
========================

[![Swift](https://img.shields.io/badge/Swift-3.0.1-blue.svg)]()
[![platform](https://img.shields.io/badge/platform-macOS | iOS | watchOS | tvOS | Linux-blue.svg)]()
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![platform](https://img.shields.io/badge/platform-macOS|iOS|watchOS|tvOS|Linux-blue.svg)]()
[![Carthage compatible](https://img.shields.io/badge/Carthage-✔-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![SPM compatible](https://img.shields.io/badge/SPM-✔-4BC51D.svg?style=flat)](https://swift.org/package-manager/)
[![CocoaPods compatible](http://img.shields.io/cocoapods/v/GzipSwift.svg?style=flat)](http://cocoadocs.org/docsets/GzipSwift)
[![Build Status](https://img.shields.io/travis/1024jp/GzipSwift/master.svg?style=flat)](https://travis-ci.org/1024jp/GzipSwift)
[![codecov.io](https://codecov.io/gh/1024jp/GzipSwift/branch/master/graphs/badge.svg)](https://codecov.io/gh/1024jp/GzipSwift)
Expand Down Expand Up @@ -32,44 +33,41 @@ if data.isGzipped {
} else {
decompressedData = data
}

// check data is gzipped
print(compressedData.isGzipped)
```


## Installation

1. Build Gzip framework.
3. In *Build Phases*, add `Gzip.framework` library to your project.
<br /><img src="Documentation/[email protected]" height="150"/>
5. `import Gzip` in your Swift file.
6. Use in your code.
1. Open Gzip.xcodeproj on Xcode and build Gzip framework for your target platform.
2. Append the built `Gzip.framework` to your project.
3. Go to __General__ pane of the application target in your project. Add `Gzip.framework` to the __Embedded Binaries__ section.
<br /><img src="Documentation/[email protected]" height="135"/>
4. `import Gzip` in your Swift file and use in your code.

### Build via Carthage
GzipSwift is Carthage compatible. You can easily build GzipSwift adding the following line to your Cartfile.
### Carthage
GzipSwift is [Carthage](https://github.com/Carthage/Carthage) compatible. You can easily build GzipSwift adding the following line to your `Cartfile`:

```ruby
github "1024jp/GzipSwift"
```

### Build via CocoaPods
### CocoaPods
GzipSwift is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
it, simply add the following line to your `Podfile`:

```ruby
pod "GzipSwift"
pod 'GzipSwift'
```

### For Linux platform with swift package manager
### Swift Package Manager

1. First you need to install zlib if you haven't installed yet:

```bash
$ apt-get install zlib-dev
```
2. add this packge to your package.swift

3. if swift build failed with a linker error:
2. Add this package to your package.swift.
3. If Swift build failed with a linker error:
* check if libz.so is in your /usr/local/lib
* if no, reinstall zlib as step (1)
* if yes, link the library manually by passing '-Xlinker -L/usr/local/lib' with `swift build`
Expand Down

0 comments on commit 5ebd3ab

Please sign in to comment.