Skip to content

Commit

Permalink
Migration to Swift 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fermoya committed Sep 20, 2018
1 parent f83ca00 commit 6a3d4e1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions BubbleShowCase/BubbleShowCase.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
Expand All @@ -309,7 +309,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.elconfidencial.BubbleShowCase-iOS";
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
Expand Down
4 changes: 2 additions & 2 deletions BubbleShowCase/BubbleShowCase/BubbleShowCase.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "BubbleShowCase"
s.version = "1.0.0"
s.version = "1.1.0"
s.summary = "A wonderful way to show case your users your App features"

s.description = <<-DESC
Expand All @@ -16,7 +16,7 @@ Pod::Spec.new do |s|

s.platform = :ios
s.ios.deployment_target = '9.0'
s.swift_version = '4.0'
s.swift_version = '4.2'

s.source = { :git => "https://github.com/ECLaboratorio/BubbleShowCase-iOS.git", :tag => "#{s.version}" }
s.source_files = "BubbleShowCase/BubbleShowCase/*.swift"
Expand Down
4 changes: 2 additions & 2 deletions BubbleShowCase/BubbleShowCase/BubbleShowCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ public class BubbleShowCase: UIView {
private func setUp() {
currentOrientation = UIDevice.current.orientation
previousOrientation = currentOrientation
NotificationCenter.default.addObserver(self, selector: #selector(deviceDidRotate), name: .UIDeviceOrientationDidChange, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(deviceDidRotate), name: UIDevice.orientationDidChangeNotification, object: nil)
}

// Initializes the show case hierarchy and displays the show case into the screen.
Expand Down Expand Up @@ -537,7 +537,7 @@ public class BubbleShowCase: UIView {
alpha = 0
bubble.alpha = 0
screenshotContainer?.alpha = 0
screenWindow.bringSubview(toFront: self)
screenWindow.bringSubviewToFront(self)
UIView.animate(withDuration: showAnimationDuration, animations: { [weak self] in
self?.alpha = 1
self?.screenshotContainer?.alpha = 1
Expand Down
2 changes: 1 addition & 1 deletion BubbleShowCase/BubbleShowCase/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>0.0.4</string>
<string>1.1.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Change Log
==========
Version 1.1.0
---
* Migration to Swift 4.2

Version 1.0.0
---
* Releasing first version of the framework
Expand Down

0 comments on commit 6a3d4e1

Please sign in to comment.