From 7655f4eff440acd050ba45affe4eb7a7f005c006 Mon Sep 17 00:00:00 2001 From: NikeKov Date: Thu, 5 Sep 2024 20:53:02 +0300 Subject: [PATCH] Autochanges xcode and warning fixes. (#87) --- .../project.pbxproj | 49 ++++++++++++++++--- .../xcschemes/LGAlertViewFramework.xcscheme | 6 +-- LGAlertView/LGAlertView.h | 6 +-- LGAlertView/LGAlertViewButtonProperties.h | 2 +- LGAlertView/LGAlertViewHelper.h | 2 +- LGAlertView/LGAlertViewHelper.m | 2 +- 6 files changed, 48 insertions(+), 19 deletions(-) diff --git a/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj b/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj index 7caeaf0..7968d28 100644 --- a/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj +++ b/Framework/LGAlertViewFramework.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 46; + objectVersion = 54; objects = { /* Begin PBXBuildFile section */ @@ -189,7 +189,8 @@ 4AF138E51BF383530037B073 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0820; + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1540; ORGANIZATIONNAME = "Grigory Lutkov"; TargetAttributes = { 4AF138ED1BF383540037B073 = { @@ -253,18 +254,28 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -274,6 +285,7 @@ DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -302,18 +314,28 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; @@ -323,6 +345,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -344,18 +367,23 @@ 4AF138F71BF383540037B073 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + CODE_SIGN_IDENTITY = ""; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; INFOPLIST_FILE = LGAlertViewFramework/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); MODULEMAP_FILE = LGAlertViewFramework/module.modulemap; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11"; PRODUCT_BUNDLE_IDENTIFIER = "com.Friend-LGA.LGAlertViewFramework"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -365,18 +393,23 @@ 4AF138F81BF383540037B073 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - CODE_SIGN_IDENTITY = "iPhone Developer"; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; + CODE_SIGN_IDENTITY = ""; DEFINES_MODULE = YES; DEVELOPMENT_TEAM = ""; DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; + ENABLE_MODULE_VERIFIER = YES; INFOPLIST_FILE = LGAlertViewFramework/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); MODULEMAP_FILE = LGAlertViewFramework/module.modulemap; + MODULE_VERIFIER_SUPPORTED_LANGUAGE_STANDARDS = "gnu99 gnu++11"; PRODUCT_BUNDLE_IDENTIFIER = "com.Friend-LGA.LGAlertViewFramework"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; diff --git a/Framework/LGAlertViewFramework.xcodeproj/xcshareddata/xcschemes/LGAlertViewFramework.xcscheme b/Framework/LGAlertViewFramework.xcodeproj/xcshareddata/xcschemes/LGAlertViewFramework.xcscheme index cede9ac..7a046b9 100644 --- a/Framework/LGAlertViewFramework.xcodeproj/xcshareddata/xcschemes/LGAlertViewFramework.xcscheme +++ b/Framework/LGAlertViewFramework.xcodeproj/xcshareddata/xcschemes/LGAlertViewFramework.xcscheme @@ -1,6 +1,6 @@ - - - - -#import "LGAlertViewButtonProperties.h" -#import "LGAlertViewShared.h" +#import +#import @class LGAlertView; @protocol LGAlertViewDelegate; @@ -59,7 +59,7 @@ extern NSString * _Nonnull const kLGAlertViewAnimationDuration; #pragma mark - Types -typedef void (^ _Nullable LGAlertViewCompletionHandler)(); +typedef void (^ _Nullable LGAlertViewCompletionHandler)(void); typedef void (^ _Nullable LGAlertViewHandler)(LGAlertView * _Nonnull alertView); typedef void (^ _Nullable LGAlertViewActionHandler)(LGAlertView * _Nonnull alertView, NSUInteger index, NSString * _Nullable title); typedef void (^ _Nullable LGAlertViewTextFieldsSetupHandler)(UITextField * _Nonnull textField, NSUInteger index); diff --git a/LGAlertView/LGAlertViewButtonProperties.h b/LGAlertView/LGAlertViewButtonProperties.h index 9f409d5..7c5fb73 100644 --- a/LGAlertView/LGAlertViewButtonProperties.h +++ b/LGAlertView/LGAlertViewButtonProperties.h @@ -28,7 +28,7 @@ // #import -#import "LGAlertViewShared.h" +#import @interface LGAlertViewButtonProperties : NSObject diff --git a/LGAlertView/LGAlertViewHelper.h b/LGAlertView/LGAlertViewHelper.h index 62eefcd..93ab1ba 100644 --- a/LGAlertView/LGAlertViewHelper.h +++ b/LGAlertView/LGAlertViewHelper.h @@ -42,7 +42,7 @@ extern CGFloat const LGAlertViewButtonImageOffsetFromTitle; @interface LGAlertViewHelper : NSObject + (void)animateWithDuration:(NSTimeInterval)duration - animations:(void(^)())animations + animations:(void(^)(void))animations completion:(void(^)(BOOL finished))completion; + (void)keyboardAnimateWithNotificationUserInfo:(NSDictionary *)notificationUserInfo diff --git a/LGAlertView/LGAlertViewHelper.m b/LGAlertView/LGAlertViewHelper.m index e5c2c6e..a73587c 100644 --- a/LGAlertView/LGAlertViewHelper.m +++ b/LGAlertView/LGAlertViewHelper.m @@ -41,7 +41,7 @@ @implementation LGAlertViewHelper + (void)animateWithDuration:(NSTimeInterval)duration - animations:(void(^)())animations + animations:(void(^)(void))animations completion:(void(^)(BOOL finished))completion { [UIView animateWithDuration:duration delay:0.0