Skip to content

Commit

Permalink
support swift 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsokolov committed Mar 30, 2018
1 parent 58b7b0e commit ef71aee
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
4.0
2 changes: 1 addition & 1 deletion Cribble.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Pod::Spec.new do |s|
s.name = 'Cribble'
s.module_name = 'Cribble'

s.version = '2.0.0'
s.version = '2.1.0'

s.homepage = 'https://github.com/maxsokolov/Cribble'
s.summary = 'Swifty tool for visual testing iPhone and iPad apps'
Expand Down
4 changes: 2 additions & 2 deletions Cribble.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -322,7 +322,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.cribble.Cribble;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
4 changes: 2 additions & 2 deletions Demo/CribbleDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.cribble.CribbleDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -350,7 +350,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.cribble.CribbleDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
Binary file not shown.
14 changes: 8 additions & 6 deletions Demo/CribbleDemo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
import UIKit
import Cribble

extension UIWindow {
override open func motionBegan(_ motion: UIEventSubtype, with event: UIEvent?) {
guard motion == .motionShake else { return }

Cribble.shared.hidden = !Cribble.shared.hidden
}
}

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

Expand All @@ -21,10 +29,4 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

return true
}

override func motionBegan(_ motion: UIEventSubtype, with event: UIEvent?) {
guard motion == .motionShake else { return }

Cribble.shared.hidden = !Cribble.shared.hidden
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#Cribble
# Cribble

<p align="left">
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/Swift_3.0-compatible-4BC51D.svg?style=flat" alt="Swift 3.0 compatible" /></a>
<a href="https://developer.apple.com/swift"><img src="https://img.shields.io/badge/Swift_4.0-compatible-4BC51D.svg?style=flat" alt="Swift 4.0 compatible" /></a>
<a href="https://github.com/Carthage/Carthage"><img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible" /></a>
<a href="https://cocoapods.org/pods/cribble"><img src="https://img.shields.io/badge/pod-2.0.0-blue.svg" alt="CocoaPods compatible" /></a>
<a href="https://cocoapods.org/pods/cribble"><img src="https://img.shields.io/badge/pod-2.1.0-blue.svg" alt="CocoaPods compatible" /></a>
<img src="https://img.shields.io/badge/platform-iOS-blue.svg?style=flat" alt="Platform iOS" />
<a href="https://raw.githubusercontent.com/maxsokolov/cribble/master/LICENSE"><img src="http://img.shields.io/badge/license-MIT-blue.svg?style=flat" alt="License: MIT" /></a>
</p>
Expand Down

0 comments on commit ef71aee

Please sign in to comment.