From d212ec69a6bbb09e14c35b8cb6643b9cf1ae7b37 Mon Sep 17 00:00:00 2001 From: Ciprian Redinciuc Date: Mon, 12 Jun 2017 16:54:39 +0300 Subject: [PATCH 1/4] Fix module imports. --- .../project.pbxproj | 23 ++++++++---- .../AKNumericFormatter-Prefix.pch | 7 +++- .../UITextField+AKNumericFormatter.h | 9 ++++- .../AKNumericFormatterTests-Info.plist | 37 +++++++++---------- .../AKNumericFormatterTests.m | 4 ++ 5 files changed, 51 insertions(+), 29 deletions(-) diff --git a/AKNumericFormatter/AKNumericFormatter.xcodeproj/project.pbxproj b/AKNumericFormatter/AKNumericFormatter.xcodeproj/project.pbxproj index 5ce670e..24d9746 100644 --- a/AKNumericFormatter/AKNumericFormatter.xcodeproj/project.pbxproj +++ b/AKNumericFormatter/AKNumericFormatter.xcodeproj/project.pbxproj @@ -176,7 +176,7 @@ AF345437FEE113DA3E99D66C /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0500; + LastUpgradeCheck = 0830; ORGANIZATIONNAME = "Aleksey Kozhevnikov"; }; buildConfigurationList = AF345A0A9A5DE462FED285D0 /* Build configuration list for PBXProject "AKNumericFormatter" */; @@ -253,7 +253,6 @@ AF345139BBBD675A652B4291 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; FRAMEWORK_SEARCH_PATHS = ( "$(SDKROOT)/Developer/Library/Frameworks", "$(inherited)", @@ -261,6 +260,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AKNumericFormatter/AKNumericFormatter-Prefix.pch"; INFOPLIST_FILE = "AKNumericFormatterTests/AKNumericFormatterTests-Info.plist"; + PRODUCT_BUNDLE_IDENTIFIER = "me.akozhevnikov.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = xctest; }; @@ -269,7 +269,6 @@ AF34515084F33504F2653EAD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; DSTROOT = /tmp/AKNumericFormatter.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AKNumericFormatter/AKNumericFormatter-Prefix.pch"; @@ -292,12 +291,18 @@ 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_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", @@ -310,7 +315,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; @@ -329,19 +334,24 @@ 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_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = YES; ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 7.0; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; @@ -350,7 +360,6 @@ AF345B7BA0B49D5CEE5C2F79 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; DSTROOT = /tmp/AKNumericFormatter.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AKNumericFormatter/AKNumericFormatter-Prefix.pch"; @@ -363,7 +372,6 @@ AF345BB2E145268599E02AE3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; FRAMEWORK_SEARCH_PATHS = ( "$(SDKROOT)/Developer/Library/Frameworks", "$(inherited)", @@ -371,6 +379,7 @@ GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AKNumericFormatter/AKNumericFormatter-Prefix.pch"; INFOPLIST_FILE = "AKNumericFormatterTests/AKNumericFormatterTests-Info.plist"; + PRODUCT_BUNDLE_IDENTIFIER = "me.akozhevnikov.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = xctest; }; diff --git a/AKNumericFormatter/AKNumericFormatter/AKNumericFormatter-Prefix.pch b/AKNumericFormatter/AKNumericFormatter/AKNumericFormatter-Prefix.pch index 4b6a1b8..daf5269 100644 --- a/AKNumericFormatter/AKNumericFormatter/AKNumericFormatter-Prefix.pch +++ b/AKNumericFormatter/AKNumericFormatter/AKNumericFormatter-Prefix.pch @@ -5,5 +5,10 @@ // #ifdef __OBJC__ +#if __has_feature(modules) @import Foundation; -#endif \ No newline at end of file +#else +#import +#endif +#endif + diff --git a/AKNumericFormatter/AKNumericFormatter/UITextField+AKNumericFormatter.h b/AKNumericFormatter/AKNumericFormatter/UITextField+AKNumericFormatter.h index 67e62b8..da1f978 100644 --- a/AKNumericFormatter/AKNumericFormatter/UITextField+AKNumericFormatter.h +++ b/AKNumericFormatter/AKNumericFormatter/UITextField+AKNumericFormatter.h @@ -3,7 +3,14 @@ // file 'LICENSE', which is part of this source code package. // +#if __has_feature(modules) @import UIKit; +#else +#import +#endif + + + @class AKNumericFormatter; @interface UITextField(AKNumericFormatter) @@ -17,4 +24,4 @@ // when replacementString's length is zero. -(void)alertDeleteBackwards; -@end \ No newline at end of file +@end diff --git a/AKNumericFormatter/AKNumericFormatterTests/AKNumericFormatterTests-Info.plist b/AKNumericFormatter/AKNumericFormatterTests/AKNumericFormatterTests-Info.plist index 65cfd92..169b6f7 100644 --- a/AKNumericFormatter/AKNumericFormatterTests/AKNumericFormatterTests-Info.plist +++ b/AKNumericFormatter/AKNumericFormatterTests/AKNumericFormatterTests-Info.plist @@ -2,24 +2,21 @@ - - CFBundleIdentifier - me.akozhevnikov.${PRODUCT_NAME:rfc1034identifier} - - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleInfoDictionaryVersion - 6.0 - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - CFBundleDevelopmentRegion - en - CFBundlePackageType - BNDL - CFBundleSignature - ???? - + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 - \ No newline at end of file + diff --git a/AKNumericFormatter/AKNumericFormatterTests/AKNumericFormatterTests.m b/AKNumericFormatter/AKNumericFormatterTests/AKNumericFormatterTests.m index 377d2f4..fa9e8e4 100644 --- a/AKNumericFormatter/AKNumericFormatterTests/AKNumericFormatterTests.m +++ b/AKNumericFormatter/AKNumericFormatterTests/AKNumericFormatterTests.m @@ -3,7 +3,11 @@ // file 'LICENSE', which is part of this source code package. // +#if __has_feature(modules) @import XCTest; +#else +#import +#endif #import "AKNumericFormatter.h" From 18970e017c5b7fcd2382ac2eb5522379f249d594 Mon Sep 17 00:00:00 2001 From: custompods Date: Mon, 12 Jun 2017 16:55:35 +0300 Subject: [PATCH 2/4] Create AKNumericFormatter.podspec --- AKNumericFormatter.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AKNumericFormatter.podspec b/AKNumericFormatter.podspec index 3dd3a03..23828e9 100644 --- a/AKNumericFormatter.podspec +++ b/AKNumericFormatter.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "AKNumericFormatter" s.platform = :ios - s.version = "0.0.2" + s.version = "0.0.3" s.summary = "Formatter for numerical fields and UITextField category to use it easily while editing." s.homepage = "https://github.com/blackm00n/AKNumericFormatter" s.license = 'MIT' From 3a8770acc7d4e14e7e5532877c222b4c31fad9d9 Mon Sep 17 00:00:00 2001 From: Alex Bartis Date: Wed, 11 Oct 2017 12:36:44 +0300 Subject: [PATCH 3/4] Built with Xcode 9 --- .../project.pbxproj | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/AKNumericFormatter/AKNumericFormatter.xcodeproj/project.pbxproj b/AKNumericFormatter/AKNumericFormatter.xcodeproj/project.pbxproj index 24d9746..6b6043f 100644 --- a/AKNumericFormatter/AKNumericFormatter.xcodeproj/project.pbxproj +++ b/AKNumericFormatter/AKNumericFormatter.xcodeproj/project.pbxproj @@ -176,7 +176,7 @@ AF345437FEE113DA3E99D66C /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0830; + LastUpgradeCheck = 0900; ORGANIZATIONNAME = "Aleksey Kozhevnikov"; }; buildConfigurationList = AF345A0A9A5DE462FED285D0 /* Build configuration list for PBXProject "AKNumericFormatter" */; @@ -269,9 +269,11 @@ AF34515084F33504F2653EAD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_CXX_LIBRARY = "compiler-default"; DSTROOT = /tmp/AKNumericFormatter.dst; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AKNumericFormatter/AKNumericFormatter-Prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -286,14 +288,20 @@ 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_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_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + 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; @@ -315,7 +323,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; }; @@ -329,14 +337,20 @@ 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_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_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + 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; @@ -351,7 +365,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 9.0; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; @@ -360,9 +374,12 @@ AF345B7BA0B49D5CEE5C2F79 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CLANG_CXX_LIBRARY = "compiler-default"; DSTROOT = /tmp/AKNumericFormatter.dst; + GCC_OPTIMIZATION_LEVEL = 1; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "AKNumericFormatter/AKNumericFormatter-Prefix.pch"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; OTHER_LDFLAGS = "-ObjC"; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; From 586f93f6e84412f6295cdb7aa9f5624e5155f51b Mon Sep 17 00:00:00 2001 From: Alex Bartis Date: Thu, 12 Oct 2017 09:51:01 +0300 Subject: [PATCH 4/4] Updated version --- .gitignore | 1 + AKNumericFormatter.podspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9944beb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +AKNumericFormatter/AKNumericFormatter.xcodeproj/project.xcworkspace diff --git a/AKNumericFormatter.podspec b/AKNumericFormatter.podspec index 23828e9..e8cae38 100644 --- a/AKNumericFormatter.podspec +++ b/AKNumericFormatter.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "AKNumericFormatter" s.platform = :ios - s.version = "0.0.3" + s.version = "0.0.4" s.summary = "Formatter for numerical fields and UITextField category to use it easily while editing." s.homepage = "https://github.com/blackm00n/AKNumericFormatter" s.license = 'MIT'