Skip to content

Commit

Permalink
Get ready for Xcode 11/iOS 13 (#209)
Browse files Browse the repository at this point in the history
* update project settings

* Add iOS 13 test target

* Actually run tests on iOS 13

* Actually run tests on iOS 13

* swift format

* Add missing reference image
  • Loading branch information
jjochen committed Sep 6, 2019
1 parent 689043f commit a94b62e
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 25 deletions.
33 changes: 27 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,35 @@ version: 2.1

executors:

ios13-iphone-xs-max:
macos:
xcode: 11.0.0
shell: /bin/bash --login -eo pipefail
environment:
SIMULATOR_OS: 13.0
DESTINATION: platform=iOS Simulator,OS=13.0,name=iPhone Xs Max
SIMULATOR: iPhone Xs Max (13.0) [

ios12-iphone-xs-max:
macos:
xcode: 10.2.0
xcode: 10.3.0
shell: /bin/bash --login -eo pipefail
environment:
SIMULATOR_OS: 12.2
DESTINATION: platform=iOS Simulator,OS=12.2,name=iPhone XS Max
SIMULATOR: iPhone XS Max (12.2) [
SIMULATOR_OS: 12.4
DESTINATION: platform=iOS Simulator,OS=12.4,name=iPhone Xs Max
SIMULATOR: iPhone Xs Max (12.4) [

ios11-iphone-x:
macos:
xcode: 10.2.0
xcode: 10.3.0
shell: /bin/bash --login -eo pipefail
environment:
DESTINATION: platform=iOS Simulator,OS=11.2,name=iPhone X
SIMULATOR: iPhone X (11.2) [

ios10-iphone-7:
macos:
xcode: 10.2.0
xcode: 10.3.0
shell: /bin/bash --login -eo pipefail
environment:
DESTINATION: platform=iOS Simulator,OS=10.3.1,name=iPhone 7
Expand Down Expand Up @@ -148,6 +157,17 @@ aliases:

jobs:

build-and-test-ios13-iphonexsmax:
executor: ios13-iphone-xs-max
steps:
- checkout
- setup-gems
- start-simulator
- setup-cocoapods
- run-tests
- update-codecov
- store-reports

build-and-test-ios12-iphonexsmax:
executor: ios12-iphone-xs-max
steps:
Expand Down Expand Up @@ -229,6 +249,7 @@ workflows:
jobs:
- lint-podspec
- swiftlint
- build-and-test-ios13-iphonexsmax
- build-and-test-ios12-iphonexsmax
- build-documentation
- push-podspec: *filter-version-tags-only
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -26,9 +26,18 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES"
onlyGenerateCoverageForSpecifiedTargets = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
onlyGenerateCoverageForSpecifiedTargets = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "198B65FC1FBAE904009A17F2"
BuildableName = "JJFloatingActionButton_Example.app"
BlueprintName = "JJFloatingActionButton_Example"
ReferencedContainer = "container:JJFloatingActionButton.xcodeproj">
</BuildableReference>
</MacroExpansion>
<CodeCoverageTargets>
<BuildableReference
BuildableIdentifier = "primary"
Expand Down Expand Up @@ -60,17 +69,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "198B65FC1FBAE904009A17F2"
BuildableName = "JJFloatingActionButton_Example.app"
BlueprintName = "JJFloatingActionButton_Example"
ReferencedContainer = "container:JJFloatingActionButton.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -92,8 +90,6 @@
ReferencedContainer = "container:JJFloatingActionButton.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
4 changes: 2 additions & 2 deletions Example/Tests/AnimationConfigurationSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ class AnimationConfigurationSpec: QuickSpec {
}

it("looks correct when item have background color") {
actionButton.configureDefaultItem({ item in
actionButton.configureDefaultItem { item in
item.backgroundColor = .red
})
}

actionButton.addItem(image: #imageLiteral(resourceName: "Like"))
actionButton.addItem(image: #imageLiteral(resourceName: "Baloon"))
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Sources/Styles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ fileprivate extension Styles {
static func drawImage(name: NSString,
size: CGSize,
fillColor: UIColor = UIColor(red: 0.267, green: 0.267, blue: 0.267, alpha: 1.000),
path: (() -> UIBezierPath)) -> UIImage? {
path: () -> UIBezierPath) -> UIImage? {
var image = cache.object(forKey: name)
if image == nil {
UIGraphicsBeginImageContextWithOptions(size, false, 0)
Expand Down

0 comments on commit a94b62e

Please sign in to comment.