Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

Commit

Permalink
Added missing file for example and tests target
Browse files Browse the repository at this point in the history
  • Loading branch information
sochalewski committed Feb 26, 2016
1 parent 74dfaef commit 09bb79d
Show file tree
Hide file tree
Showing 20 changed files with 273 additions and 246 deletions.
2 changes: 0 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,4 @@ end

target 'SwiftCompressor_Tests', :exclusive => true do
pod 'SwiftCompressor', :path => '../'


end
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- SwiftCompressor (0.1.0)
- SwiftCompressor (0.1.1.1)

DEPENDENCIES:
- SwiftCompressor (from `../`)
Expand All @@ -9,6 +9,6 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
SwiftCompressor: 614c5343250571586e7adca83ab775e7f300b870
SwiftCompressor: 76c5dcce680055cedc4d9e7ea5ea988c560eef94

COCOAPODS: 0.39.0
25 changes: 12 additions & 13 deletions Example/Pods/Local Podspecs/SwiftCompressor.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

358 changes: 142 additions & 216 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions Example/Pods/Target Support Files/SwiftCompressor/Info.plist

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions Example/SwiftCompressor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
7367AC3AD9A3E97825175672 /* Pods_SwiftCompressor_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D2E508018395DA7F2A30293 /* Pods_SwiftCompressor_Tests.framework */; };
AECE9E4C1C80586F0030708B /* lorem.txt in Resources */ = {isa = PBXBuildFile; fileRef = AECE9E4B1C80586F0030708B /* lorem.txt */; };
AECE9E4D1C80586F0030708B /* lorem.txt in Resources */ = {isa = PBXBuildFile; fileRef = AECE9E4B1C80586F0030708B /* lorem.txt */; };
BBA15F43B8762FADC51A9905 /* Pods_SwiftCompressor_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 258106BFC469B3769ED8F26E /* Pods_SwiftCompressor_Example.framework */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -46,6 +48,7 @@
6D2E508018395DA7F2A30293 /* Pods_SwiftCompressor_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftCompressor_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
791B7A666FE38369CF5D84D9 /* Pods-SwiftCompressor_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftCompressor_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SwiftCompressor_Example/Pods-SwiftCompressor_Example.release.xcconfig"; sourceTree = "<group>"; };
8B77A4ACE7F7E296CBDF9653 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
AECE9E4B1C80586F0030708B /* lorem.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = lorem.txt; sourceTree = "<group>"; };
E90145CE450ADF4FC8D8E30E /* SwiftCompressor.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SwiftCompressor.podspec; path = ../SwiftCompressor.podspec; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -133,6 +136,7 @@
607FACE91AFB9204008FA782 /* Supporting Files */ = {
isa = PBXGroup;
children = (
AECE9E4B1C80586F0030708B /* lorem.txt */,
607FACEA1AFB9204008FA782 /* Info.plist */,
);
name = "Supporting Files";
Expand Down Expand Up @@ -248,6 +252,7 @@
files = (
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */,
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
AECE9E4C1C80586F0030708B /* lorem.txt in Resources */,
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -256,6 +261,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
AECE9E4D1C80586F0030708B /* lorem.txt in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -439,7 +445,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -477,7 +483,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand Down
42 changes: 39 additions & 3 deletions Example/Tests/Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import SwiftCompressor

class Tests: XCTestCase {

let repeatCount = 10000

var path = NSBundle.mainBundle().pathForResource("lorem", ofType: "txt")
var loremData: NSData!

Expand All @@ -25,7 +27,7 @@ class Tests: XCTestCase {

func testPerformance4096() {
measureBlock {
for _ in 0...10000 {
for _ in 0...self.repeatCount {
let compressedLoremData = try? self.loremData.compress(algorithm: .ZLIB, bufferSize: 4096)
let _ = try? compressedLoremData??.decompress(algorithm: .ZLIB, bufferSize: 4096)
}
Expand All @@ -34,7 +36,7 @@ class Tests: XCTestCase {

func testPerformance8192() {
measureBlock {
for _ in 0...10000 {
for _ in 0...self.repeatCount {
let compressedLoremData = try? self.loremData.compress(algorithm: .ZLIB, bufferSize: 8192)
let _ = try? compressedLoremData??.decompress(algorithm: .ZLIB, bufferSize: 8192)
}
Expand All @@ -43,11 +45,45 @@ class Tests: XCTestCase {

func testPerformance16384() {
measureBlock {
for _ in 0...10000 {
for _ in 0...self.repeatCount {
let compressedLoremData = try? self.loremData.compress(algorithm: .ZLIB, bufferSize: 16384)
let _ = try? compressedLoremData??.decompress(algorithm: .ZLIB, bufferSize: 16384)
}
}
}

// MARK: - Compression duration

func testLZFSE() {
measureBlock {
for _ in 0...self.repeatCount {
_ = try? self.loremData.compress(algorithm: .LZFSE)
}
}
}

func testLZ4() {
measureBlock {
for _ in 0...self.repeatCount {
_ = try? self.loremData.compress(algorithm: .LZ4)
}
}
}

func testZLIB() {
measureBlock {
for _ in 0...self.repeatCount {
_ = try? self.loremData.compress(algorithm: .ZLIB)
}
}
}

func testLZMA() {
measureBlock {
for _ in 0...10000 {
_ = try? self.loremData.compress(algorithm: .LZMA)
}
}
}

}
9 changes: 9 additions & 0 deletions Example/Tests/lorem.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
__ _____ _____ _____ _____ _____ _____ _____ _____ _____
| | | | __ | __| | | | _ | __| | | |
| |__| | | -| __| | | | |- -| __|__ | | | | | |
|_____|_____|__|__|_____|_|_|_| |_____|__| |_____|_____|_|_|_|

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
2 changes: 1 addition & 1 deletion SwiftCompressor.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "SwiftCompressor"
s.version = "0.1.1"
s.version = "0.1.1.1"
s.summary = "Compression framework easily"
s.description = "SwiftCompressor lets you use Compression framework easily"
s.homepage = "https://github.com/DroidsOnRoids/SwiftCompressor"
Expand Down

0 comments on commit 09bb79d

Please sign in to comment.