Skip to content

Commit

Permalink
Merge pull request #194 from iZettle/Bump-xcode-version
Browse files Browse the repository at this point in the history
Bump xcode versions for circle ci
  • Loading branch information
shchukin-alex authored Sep 29, 2022
2 parents 6eee6b0 + 8fa16ad commit c497055
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 49 deletions.
12 changes: 6 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ anchors:
- &test_output_folder test_output
- &default_executor
macos:
xcode: "13.2.1"
xcode: "14.0.0"

env:
global:
Expand Down Expand Up @@ -124,13 +124,13 @@ jobs:
- store_test_results:
path: swiftlint.html

test-xcode12-ios14:
test-xcode13-ios15:
macos:
xcode: "12.5.0"
xcode: "13.0.0"
steps:
- test_main_project

test-xcode13-ios15:
test-xcode14-ios16:
<<: *default_executor
steps:
- test_main_project
Expand All @@ -152,9 +152,9 @@ workflows:
build-and-test:
jobs:
- swiftlint:
version: 0.39.2
- test-xcode12-ios14
version: 0.49.1
- test-xcode13-ios15
- test-xcode14-ios16
- test-example-messages
- test-example-demo

2 changes: 2 additions & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ disabled_rules:
- shorthand_operator
- unused_closure_parameter

- inclusive_language

opt_in_rules:
- first_where
- last_where
Expand Down
40 changes: 38 additions & 2 deletions Examples/Messages/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
/* Begin PBXBuildFile section */
2A8568E12344F73200B9D157 /* ExampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A8568E02344F73200B9D157 /* ExampleTests.swift */; };
75593950283BA41200EA10E9 /* Presentation in Frameworks */ = {isa = PBXBuildFile; productRef = 7559394F283BA41200EA10E9 /* Presentation */; };
C8D31DC528E5B8AD00CB59C2 /* Flow in Frameworks */ = {isa = PBXBuildFile; productRef = C8D31DC428E5B8AD00CB59C2 /* Flow */; };
C8D31DC828E5B91A00CB59C2 /* Form in Frameworks */ = {isa = PBXBuildFile; productRef = C8D31DC728E5B91A00CB59C2 /* Form */; };
F61928ED2088DE200008F713 /* Messages.swift in Sources */ = {isa = PBXBuildFile; fileRef = F61928EC2088DE200008F713 /* Messages.swift */; };
F61928EF2088DE7E0008F713 /* ComposeMessage.swift in Sources */ = {isa = PBXBuildFile; fileRef = F61928EE2088DE7E0008F713 /* ComposeMessage.swift */; };
F61928F12088DEBD0008F713 /* MessageDetails.swift in Sources */ = {isa = PBXBuildFile; fileRef = F61928F02088DEBD0008F713 /* MessageDetails.swift */; };
Expand Down Expand Up @@ -64,6 +66,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
C8D31DC828E5B91A00CB59C2 /* Form in Frameworks */,
C8D31DC528E5B8AD00CB59C2 /* Flow in Frameworks */,
75593950283BA41200EA10E9 /* Presentation in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -148,6 +152,8 @@
name = Example;
packageProductDependencies = (
7559394F283BA41200EA10E9 /* Presentation */,
C8D31DC428E5B8AD00CB59C2 /* Flow */,
C8D31DC728E5B91A00CB59C2 /* Form */,
);
productName = Messages;
productReference = F6B3E0552086210E00F55C53 /* Example.app */;
Expand Down Expand Up @@ -183,6 +189,8 @@
mainGroup = F6B3E04C2086210E00F55C53;
packageReferences = (
7559394E283BA41200EA10E9 /* XCRemoteSwiftPackageReference "Presentation" */,
C8D31DC328E5B8AD00CB59C2 /* XCRemoteSwiftPackageReference "Flow" */,
C8D31DC628E5B91A00CB59C2 /* XCRemoteSwiftPackageReference "Form" */,
);
productRefGroup = F6B3E0562086210E00F55C53 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -348,7 +356,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.3;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -402,7 +410,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.3;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand All @@ -417,6 +425,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = Example/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -434,6 +443,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = Example/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -486,6 +496,22 @@
minimumVersion = 1.15.2;
};
};
C8D31DC328E5B8AD00CB59C2 /* XCRemoteSwiftPackageReference "Flow" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/iZettle/Flow.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.0.0;
};
};
C8D31DC628E5B91A00CB59C2 /* XCRemoteSwiftPackageReference "Form" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/iZettle/Form.git";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 4.0.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
Expand All @@ -494,6 +520,16 @@
package = 7559394E283BA41200EA10E9 /* XCRemoteSwiftPackageReference "Presentation" */;
productName = Presentation;
};
C8D31DC428E5B8AD00CB59C2 /* Flow */ = {
isa = XCSwiftPackageProductDependency;
package = C8D31DC328E5B8AD00CB59C2 /* XCRemoteSwiftPackageReference "Flow" */;
productName = Flow;
};
C8D31DC728E5B91A00CB59C2 /* Form */ = {
isa = XCSwiftPackageProductDependency;
package = C8D31DC628E5B91A00CB59C2 /* XCRemoteSwiftPackageReference "Form" */;
productName = Form;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = F6B3E04D2086210E00F55C53 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
{
"object": {
"pins": [
{
"package": "Flow",
"repositoryURL": "https://github.com/izettle/Flow.git",
"state": {
"branch": null,
"revision": "ad38c734f16a404de8895236424bc4acc5355a3d",
"version": "1.10.1"
}
},
{
"package": "Presentation",
"repositoryURL": "https://github.com/iZettle/Presentation.git",
"state": {
"branch": null,
"revision": "491735c045a0e61e4e2536a2da41b347c533d7e6",
"version": "1.15.2"
}
"pins" : [
{
"identity" : "flow",
"kind" : "remoteSourceControl",
"location" : "https://github.com/izettle/Flow.git",
"state" : {
"revision" : "ad38c734f16a404de8895236424bc4acc5355a3d",
"version" : "1.10.1"
}
]
},
"version": 1
},
{
"identity" : "form",
"kind" : "remoteSourceControl",
"location" : "https://github.com/iZettle/Form.git",
"state" : {
"revision" : "6eee6b0b49c5f178e15339760fdb05cbbfdf5e07",
"version" : "4.0.0"
}
},
{
"identity" : "presentation",
"kind" : "remoteSourceControl",
"location" : "https://github.com/iZettle/Presentation.git",
"state" : {
"revision" : "491735c045a0e61e4e2536a2da41b347c533d7e6",
"version" : "1.15.2"
}
}
],
"version" : 2
}
8 changes: 6 additions & 2 deletions Form.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,7 @@
CLANG_ANALYZER_NONNULL = YES;
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Carthage/Build/iOS";
INFOPLIST_FILE = FormTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -727,6 +728,7 @@
CLANG_ANALYZER_NONNULL = YES;
FRAMEWORK_SEARCH_PATHS = "$(PROJECT_DIR)/Carthage/Build/iOS";
INFOPLIST_FILE = FormTests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down Expand Up @@ -780,7 +782,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -833,7 +835,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
Expand All @@ -858,6 +860,7 @@
HEADER_SEARCH_PATHS = "$(SRCROOT)/**";
INFOPLIST_FILE = Form/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -883,6 +886,7 @@
HEADER_SEARCH_PATHS = "$(SRCROOT)/**";
INFOPLIST_FILE = Form/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
2 changes: 1 addition & 1 deletion Form/FormStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public struct FormStyle: Style {

public struct DynamicFormStyle: DynamicStyle {
public var styleGenerator: (UITraitCollection) -> FormStyle
public init(generateStyle : @escaping (UITraitCollection) -> FormStyle) {
public init(generateStyle: @escaping (UITraitCollection) -> FormStyle) {
self.styleGenerator = generateStyle
}
}
Expand Down
2 changes: 1 addition & 1 deletion Form/FormView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public extension FormView {
return visibleViews
}

//swiftlint:disable:next unused_setter_value
// swiftlint:disable superfluous_disable_command unused_setter_value
set { /* Always computed */ }
}

Expand Down
2 changes: 1 addition & 1 deletion Form/HeaderFooterStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public struct HeaderFooterStyle: Style {

public struct DynamicHeaderFooterStyle: DynamicStyle {
public var styleGenerator: (UITraitCollection) -> HeaderFooterStyle
public init(generateStyle : @escaping (UITraitCollection) -> HeaderFooterStyle) {
public init(generateStyle: @escaping (UITraitCollection) -> HeaderFooterStyle) {
self.styleGenerator = generateStyle
}
}
Expand Down
2 changes: 1 addition & 1 deletion Form/ParentChildRelational.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public extension ParentChildRelational {
}
}

///Returns the first ancestor of type `type` if any.
/// Returns the first ancestor of type `type` if any.
func firstAncestor<T>(ofType type: T.Type) -> T? {
guard let parent = parent else { return nil }
if let matching = parent as? T {
Expand Down
2 changes: 1 addition & 1 deletion Form/SectionStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public extension SectionStyle {

public struct DynamicSectionStyle: DynamicStyle {
public var styleGenerator: (UITraitCollection) -> SectionStyle
public init(generateStyle : @escaping (UITraitCollection) -> SectionStyle) {
public init(generateStyle: @escaping (UITraitCollection) -> SectionStyle) {
self.styleGenerator = generateStyle
}
}
Expand Down
2 changes: 1 addition & 1 deletion Form/SectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public extension SectionView {
return elements
}

//swiftlint:disable:next unused_setter_value
// swiftlint:disable superfluous_disable_command unused_setter_value
set { /* Always computed */ }
}

Expand Down
2 changes: 1 addition & 1 deletion Form/UIScrollView+Keyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public extension UIScrollView {
}

public extension UIScrollView {
/// Will dynamically adjust the content offset of `self` to reveal first responders.
/// Will dynamically adjust the content offset of `self` to reveal first responders.
/// Parameter adjustInsets: Function to adjust the frame of the first responder view used to calculate the content offset. Defaults to `alignToRow`.
/// - Returns: A disposable that will stop adjustments when being disposed.
func scrollToRevealFirstResponder(_ adjustInsets: @escaping (UIView) -> UIEdgeInsets = alignToRow) -> Disposable {
Expand Down
4 changes: 2 additions & 2 deletions Form/UIScrollView+Pinning.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ private extension UIScrollView {
switch edge {
case .bottom:
// FIXME: enable for iOS 11 if we can remove the re-pin hack
//precondition(self[insets: insetKey].bottom == 0, "Only one view can be pinned to bottom")
// precondition(self[insets: insetKey].bottom == 0, "Only one view can be pinned to bottom")
bag += viewHeight.atOnce().onValue { height in
self[insets: insetKey].bottom = height
}
Expand Down Expand Up @@ -223,7 +223,7 @@ private extension UIScrollView {

case .top:
// FIXME: enable for iOS 11 if we can remove the re-pin hack
//precondition(self[insets: insetKey].bottom == 0, "Only one view can be pinned to top")
// precondition(self[insets: insetKey].bottom == 0, "Only one view can be pinned to top")
bag += viewHeight.atOnce().onValue { height in
self[insets: insetKey].top = height
}
Expand Down
1 change: 1 addition & 0 deletions Form/UIScrollView+Spacing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public extension UIScrollView {
disembedBag += { deactivate(constraints) }

// .equalSpacing gives ambigious layout on iOS < 11, help out by calculating spacing manually.
// swiftlint:disable:next unavailable_condition
if #available(iOS 11, *) {} else if !orderedViews.isEmpty {
let contentHeight = signal(for: \.contentSize)[\.height].toVoid().atValue {
for view in orderedViews { view.layoutIfNeeded() }
Expand Down
10 changes: 4 additions & 6 deletions Form/UITableViewCell+Utilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,8 @@ public extension UITableViewCell {

extension UITableViewCell {
var reorderControlView: UIView? {
for view in subviews as [UIView] {
if type(of: view).description() == "UITableViewCellReorderControl" {
return view
}
for view in subviews as [UIView] where type(of: view).description() == "UITableViewCellReorderControl" {
return view
}
return nil
}
Expand Down Expand Up @@ -208,8 +206,8 @@ private extension UITableViewCell {
// Passing through touches if the touch doesn't hit a subview
private class TapThroughView: UIView {
fileprivate override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
for subview in subviews {
if subview.point(inside: convert(point, to: subview), with: event) { return true }
for subview in subviews where subview.point(inside: convert(point, to: subview), with: event) {
return true
}
return false
}
Expand Down
4 changes: 2 additions & 2 deletions Form/ValueField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public final class ValueField<Value>: UIControl, UIKeyInput {
get {
editor.accessibilityValue
}
//swiftlint:disable:next unused_setter_value
// swiftlint:disable superfluous_disable_command unused_setter_value
set { /* accessibilityValue is always read from the editor. */ }
}

Expand All @@ -191,7 +191,7 @@ public final class ValueField<Value>: UIControl, UIKeyInput {
/// Always use `.no` autocorrection as the system keyboard will be confused if it is used.
public dynamic var autocorrectionType: UITextAutocorrectionType {
get { return .no }
//swiftlint:disable:next unused_setter_value
// swiftlint:disable:next unused_setter_value
set { /* ignore */ }
}

Expand Down
Loading

0 comments on commit c497055

Please sign in to comment.