From c3074160bb9482a2272a1b76460c1f492f3811ef Mon Sep 17 00:00:00 2001 From: Pavel Vasilenko Date: Sun, 29 May 2016 21:49:14 +0300 Subject: [PATCH 1/3] No visible @interface for 'NSString' declares the selector 'unsignedIntValue' --- .../Helpers/NSString+Utilities.h | 2 ++ .../Helpers/NSString+Utilities.m | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.h b/Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.h index 0e230d7..2f82b47 100644 --- a/Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.h +++ b/Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.h @@ -40,4 +40,6 @@ - (BOOL)isEmpty; +- (NSUInteger)unsignedIntValue; + @end \ No newline at end of file diff --git a/Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.m b/Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.m index 7e8c75e..ee63729 100644 --- a/Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.m +++ b/Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.m @@ -124,6 +124,18 @@ - (BOOL)isEmpty return (0 == [filtered length]); } +- (NSUInteger)unsignedIntValue { + static NSNumberFormatter *formatter = nil; + if (!formatter) { + formatter = [[NSNumberFormatter alloc] init]; + formatter.formatterBehavior = NSNumberFormatterBehavior10_4; + formatter.groupingSeparator = @""; + } + NSNumber *unsignedInt = [formatter numberFromString:self]; + if (!unsignedInt) return 0; + return unsignedInt.unsignedIntValue; +} + #pragma mark - Methods for internal usage - (BOOL)possibleToCompareStrings:(NSString *)string @@ -137,4 +149,5 @@ - (BOOL)possibleToCompareStrings:(NSString *)string } + @end \ No newline at end of file From 9d9e46a69d279745acd8b4ae45d84cb12a17b525 Mon Sep 17 00:00:00 2001 From: Pavel Vasilenko Date: Sun, 29 May 2016 22:14:27 +0300 Subject: [PATCH 2/3] podspec added --- Vkontakte-iOS-SDK-LV.podspec.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Vkontakte-iOS-SDK-LV.podspec.json diff --git a/Vkontakte-iOS-SDK-LV.podspec.json b/Vkontakte-iOS-SDK-LV.podspec.json new file mode 100644 index 0000000..fcfd018 --- /dev/null +++ b/Vkontakte-iOS-SDK-LV.podspec.json @@ -0,0 +1,25 @@ +{ + "name": "Vkontakte-iOS-SDK-LV", + "version": "4.7.15", + "summary": "Powerful & flexible Vkontakte iOS SDK, fork from https://github.com/AndrewShmig/Vkontakte-iOS-SDK-LV.git with one bug fixed", + "homepage": "https://github.com/userow/Vkontakte-iOS-SDK-LV", + "license": { + "type": "MIT", + "file": "Project/Vkontakte-iOS-SDK-LV/LICENSE.txt" + }, + "authors": { + "Andrew Shmig": "andrewshmig@yandex.ru" + }, + "source": { + "git": "https://github.com/userow/Vkontakte-iOS-SDK-LV.git", + "tag": "v4.7.15" + }, + "source_files": "Project/Vkontakte-iOS-SDK-LV/**/*.{h,m}", + "requires_arc": true, + "platforms": { + "ios": "5.0" + }, + "ios": { + "frameworks": "Foundation" + } +} \ No newline at end of file From 915d3e6aa3cc8e4cca7425c3ce714d229fa81c9b Mon Sep 17 00:00:00 2001 From: Pavel Vasilenko Date: Sun, 29 May 2016 22:16:45 +0300 Subject: [PATCH 3/3] podspec added + ver - 4.7.14 --- Vkontakte-iOS-SDK-LV.podspec.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vkontakte-iOS-SDK-LV.podspec.json b/Vkontakte-iOS-SDK-LV.podspec.json index fcfd018..e58c63e 100644 --- a/Vkontakte-iOS-SDK-LV.podspec.json +++ b/Vkontakte-iOS-SDK-LV.podspec.json @@ -1,6 +1,6 @@ { "name": "Vkontakte-iOS-SDK-LV", - "version": "4.7.15", + "version": "4.7.14", "summary": "Powerful & flexible Vkontakte iOS SDK, fork from https://github.com/AndrewShmig/Vkontakte-iOS-SDK-LV.git with one bug fixed", "homepage": "https://github.com/userow/Vkontakte-iOS-SDK-LV", "license": { @@ -12,7 +12,7 @@ }, "source": { "git": "https://github.com/userow/Vkontakte-iOS-SDK-LV.git", - "tag": "v4.7.15" + "tag": "v4.7.14" }, "source_files": "Project/Vkontakte-iOS-SDK-LV/**/*.{h,m}", "requires_arc": true,