Skip to content

Commit 193cf30

Browse files
authored
Merge pull request #42 from SlaunchaMan/swift-4.2
Update to Swift 4.2
2 parents 7ce0b13 + 7de9f42 commit 193cf30

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1
1+
4.2

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ branches:
33
- develop
44
- master
55
language: objective-c
6-
osx_image: xcode9.4
6+
osx_image: xcode10
77
notifications:
88
slack:
99
rooms:

BugShaker.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'BugShaker'
3-
spec.version = '0.4.1'
3+
spec.version = '0.5.0'
44
spec.license = { :type => 'Apache 2.0' }
55
spec.homepage = 'https://github.com/dtrenz/BugShaker'
66
spec.documentation_url = 'http://dtrenz.github.io/BugShaker/'
77
spec.authors = { 'Dan Trenz' => 'dtrenz@gmail.com' }
88
spec.summary = 'Shake to submit a bug report (w/ screenshot) via email.'
99
spec.source = { :git => 'https://github.com/dtrenz/BugShaker.git', :tag => spec.version.to_s }
1010
spec.source_files = 'Sources/*.swift'
11-
spec.swift_version = '4.1'
11+
spec.swift_version = '4.2'
1212
spec.platform = :ios, '9.0'
1313
spec.frameworks = 'UIKit', 'MessageUI'
1414
spec.requires_arc = true

BugShaker.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@
196196
C51FD83F1DCBADE700FC21FC = {
197197
CreatedOnToolsVersion = 8.1;
198198
DevelopmentTeam = 69MZ6T95LT;
199-
LastSwiftMigration = 0940;
199+
LastSwiftMigration = 1000;
200200
ProvisioningStyle = Automatic;
201201
};
202202
C52820F71CA43D40003EA0D4 = {
203203
CreatedOnToolsVersion = 7.3;
204-
LastSwiftMigration = 0940;
204+
LastSwiftMigration = 1000;
205205
};
206206
};
207207
};
@@ -325,7 +325,7 @@
325325
PRODUCT_BUNDLE_IDENTIFIER = com.detroitlabs.BugShakerTests;
326326
PRODUCT_NAME = "$(TARGET_NAME)";
327327
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
328-
SWIFT_VERSION = 4.0;
328+
SWIFT_VERSION = 4.2;
329329
};
330330
name = Debug;
331331
};
@@ -342,7 +342,7 @@
342342
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
343343
PRODUCT_BUNDLE_IDENTIFIER = com.detroitlabs.BugShakerTests;
344344
PRODUCT_NAME = "$(TARGET_NAME)";
345-
SWIFT_VERSION = 4.0;
345+
SWIFT_VERSION = 4.2;
346346
};
347347
name = Release;
348348
};
@@ -480,7 +480,7 @@
480480
PRODUCT_NAME = "$(TARGET_NAME)";
481481
SKIP_INSTALL = YES;
482482
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
483-
SWIFT_VERSION = 4.0;
483+
SWIFT_VERSION = 4.2;
484484
};
485485
name = Debug;
486486
};
@@ -501,7 +501,7 @@
501501
PRODUCT_BUNDLE_IDENTIFIER = com.dtrenz.BugShaker;
502502
PRODUCT_NAME = "$(TARGET_NAME)";
503503
SKIP_INSTALL = YES;
504-
SWIFT_VERSION = 4.0;
504+
SWIFT_VERSION = 4.2;
505505
};
506506
name = Release;
507507
};

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PODS:
2-
- Nimble (7.1.3)
3-
- Quick (1.3.1)
2+
- Nimble (7.3.1)
3+
- Quick (1.3.2)
44

55
DEPENDENCIES:
66
- Nimble
@@ -12,8 +12,8 @@ SPEC REPOS:
1212
- Quick
1313

1414
SPEC CHECKSUMS:
15-
Nimble: 2839b01d1b31f6a6a7777a221f0d91cf52e8e27b
16-
Quick: d17304d58d0d169dd0bd1c6e5c28e3318de32a1a
15+
Nimble: 04f732da099ea4d153122aec8c2a88fd0c7219ae
16+
Quick: 2623cb30d7a7f41ca62f684f679586558f483d46
1717

1818
PODFILE CHECKSUM: 670d452da847b95b324bec94807b831678d715b0
1919

Sources/BugShaker.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extension UIViewController: MFMailComposeViewControllerDelegate {
4646
return true
4747
}
4848

49-
override open func motionEnded(_ motion: UIEventSubtype, with event: UIEvent?) {
49+
override open func motionEnded(_ motion: UIEvent.EventSubtype, with event: UIEvent?) {
5050
guard BugShaker.isEnabled && motion == .motionShake else { return }
5151

5252
let cachedScreenshot = captureScreenshot()
@@ -59,7 +59,7 @@ extension UIViewController: MFMailComposeViewControllerDelegate {
5959
// MARK: - Alert
6060

6161
@objc func presentReportPrompt(_ reportActionHandler: @escaping (UIAlertAction) -> Void) {
62-
let preferredStyle: UIAlertControllerStyle
62+
let preferredStyle: UIAlertController.Style
6363

6464
if UIDevice.current.userInterfaceIdiom == .pad {
6565
preferredStyle = .alert
@@ -124,7 +124,7 @@ extension UIViewController: MFMailComposeViewControllerDelegate {
124124
mailComposer.setMessageBody(BugShaker.Config.body ?? "", isHTML: false)
125125
mailComposer.mailComposeDelegate = self
126126

127-
if let screenshot = screenshot, let screenshotJPEG = UIImageJPEGRepresentation(screenshot, CGFloat(1.0)) {
127+
if let screenshot = screenshot, let screenshotJPEG = screenshot.jpegData(compressionQuality: CGFloat(1.0)) {
128128
mailComposer.addAttachmentData(screenshotJPEG, mimeType: "image/jpeg", fileName: "screenshot.jpeg")
129129
}
130130

Sources/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.4.1</string>
18+
<string>0.5.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)