Skip to content

Commit

Permalink
Major Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jay18001 committed Feb 6, 2018
1 parent a0f6ddc commit 10cc599
Show file tree
Hide file tree
Showing 27 changed files with 1,202 additions and 378 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1
4.0
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
language: objective-c
osx_image: xcode8.3
osx_image: xcode9.2
env:
global:
- WORKSPACE=Cacher.xcworkspace
- IOS_FRAMEWORK_SCHEME="Cacher"
- IOS_SDK=iphonesimulator10.3
- IOS_SDK=iphonesimulator11.2
- TVOS_FRAMEWORK_SCHEME="Cacher-tvOS"
- TVOS_SDK=appletvsimulator10.2
- TVOS_SDK=appletvsimulator11.2

matrix:
- DESTINATION="OS=10.3.1,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" EXAMPLE_SCHEME="$IOS_EXAMPLE_SCHEME"
- DESTINATION="OS=10.2,name=Apple TV 1080p" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" EXAMPLE_SCHEME="$IOS_EXAMPLE_SCHEME"
matrix:
- DESTINATION="OS=11.2,name=iPhone 7 Plus" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" EXAMPLE_SCHEME="$IOS_EXAMPLE_SCHEME"
- DESTINATION="OS=11.2,name=Apple TV" SCHEME="$TVOS_FRAMEWORK_SCHEME" SDK="$TVOS_SDK" EXAMPLE_SCHEME="$IOS_EXAMPLE_SCHEME"

script:
- set -o pipefail
Expand Down
2 changes: 0 additions & 2 deletions Cacher-Mac/Cacher.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ FOUNDATION_EXPORT double CacherVersionNumber;
FOUNDATION_EXPORT const unsigned char CacherVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <Cacher/PublicHeader.h>

#import <Cacher/NSString+Hash.h>
4 changes: 2 additions & 2 deletions Cacher-Mac/NSImage+Utility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ public typealias UIImage = NSImage

extension NSBitmapImageRep {
var png: Data? {
return representation(using: .PNG, properties: [:])
return representation(using: .png, properties: [:])

}
func jpeg(compressionFactor: CGFloat) -> Data? {
return representation(using: .JPEG, properties: [NSImageCompressionFactor: compressionFactor])
return representation(using: .jpeg, properties: [NSImageCompressionFactor: compressionFactor])
}
}
extension Data {
Expand Down
2 changes: 0 additions & 2 deletions Cacher-watchOS/Cacher.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,3 @@ FOUNDATION_EXPORT double CacherVersionNumber;
FOUNDATION_EXPORT const unsigned char CacherVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <Cacher/PublicHeader.h>

#import <Cacher/NSString+Hash.h>
107 changes: 69 additions & 38 deletions Cacher.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
LastUpgradeVersion = "0920"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
Expand Down Expand Up @@ -56,6 +57,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
4 changes: 3 additions & 1 deletion Cacher.xcodeproj/xcshareddata/xcschemes/Cacher-tvOS.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
LastUpgradeVersion = "0920"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
Expand Down Expand Up @@ -55,6 +56,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
LastUpgradeVersion = "0920"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
Expand All @@ -36,6 +37,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
4 changes: 3 additions & 1 deletion Cacher.xcodeproj/xcshareddata/xcschemes/Cacher.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0830"
LastUpgradeVersion = "0920"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
Expand Down Expand Up @@ -56,6 +57,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
Expand Down
Loading

0 comments on commit 10cc599

Please sign in to comment.