From c6817c8b2844a39dfe9ad915e70c61dcc4b985c5 Mon Sep 17 00:00:00 2001 From: Jakub Olejnik Date: Fri, 3 Nov 2023 12:49:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20recommended=20build=20sett?= =?UTF-8?q?ings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ACKategories-iOS/UIView+Spacer.swift | 11 +++++------ ACKategories.xcodeproj/project.pbxproj | 7 ++++++- .../xcshareddata/xcschemes/ACKategories-iOS.xcscheme | 2 +- .../xcshareddata/xcschemes/ACKategoriesCore.xcscheme | 2 +- .../xcschemes/ACKategoriesExample.xcscheme | 2 +- ACKategoriesCore/Combine+Concurrency.swift | 1 - 6 files changed, 14 insertions(+), 11 deletions(-) diff --git a/ACKategories-iOS/UIView+Spacer.swift b/ACKategories-iOS/UIView+Spacer.swift index 7fad1855..9d7e4ec4 100644 --- a/ACKategories-iOS/UIView+Spacer.swift +++ b/ACKategories-iOS/UIView+Spacer.swift @@ -5,7 +5,7 @@ import UIKit public extension UIView { private final class Spacer: UIView { fileprivate var observation: NSKeyValueObservation? - + init( size: CGFloat, axis: NSLayoutConstraint.Axis, @@ -18,9 +18,9 @@ public extension UIView { height: axis == .vertical ? size : 0 ) )) - + translatesAutoresizingMaskIntoConstraints = false - + switch axis { case .horizontal: let constraint = widthAnchor.constraint(equalToConstant: size) @@ -33,12 +33,12 @@ public extension UIView { default: assertionFailure("Unknown axis \(axis)") } } - + required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } } - + private func createSpacer(_ size: CGFloat, axis: NSLayoutConstraint.Axis, priority: Float) -> UIView { let spacer = Spacer(size: size, axis: axis, priority: priority) spacer.isHidden = isHidden @@ -58,4 +58,3 @@ public extension UIView { createSpacer(width, axis: .horizontal, priority: priority) } } - diff --git a/ACKategories.xcodeproj/project.pbxproj b/ACKategories.xcodeproj/project.pbxproj index 6efa608f..2080bdf5 100644 --- a/ACKategories.xcodeproj/project.pbxproj +++ b/ACKategories.xcodeproj/project.pbxproj @@ -785,8 +785,9 @@ 69E819DF23C773010054687B /* Project object */ = { isa = PBXProject; attributes = { + BuildIndependentTargetsInParallel = YES; LastSwiftUpdateCheck = 1130; - LastUpgradeCheck = 1400; + LastUpgradeCheck = 1500; TargetAttributes = { 695096D723C7908B00E8F457 = { CreatedOnToolsVersion = 11.3; @@ -1208,6 +1209,7 @@ DEAD_CODE_STRIPPING = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; @@ -1246,6 +1248,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; DEAD_CODE_STRIPPING = YES; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES; @@ -1587,6 +1590,7 @@ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; @@ -1668,6 +1672,7 @@ CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = ""; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 1; diff --git a/ACKategories.xcodeproj/xcshareddata/xcschemes/ACKategories-iOS.xcscheme b/ACKategories.xcodeproj/xcshareddata/xcschemes/ACKategories-iOS.xcscheme index bad8fc3f..944dd746 100644 --- a/ACKategories.xcodeproj/xcshareddata/xcschemes/ACKategories-iOS.xcscheme +++ b/ACKategories.xcodeproj/xcshareddata/xcschemes/ACKategories-iOS.xcscheme @@ -1,6 +1,6 @@