From b271e499dc25e972902d986145be91d0c7ecd7fd Mon Sep 17 00:00:00 2001 From: Roy Marmelstein Date: Sun, 1 Nov 2015 09:54:22 +0000 Subject: [PATCH] Release 0.1.3 --- PhoneNumberKit.podspec | 2 +- PhoneNumberKit.xcodeproj/project.pbxproj | 8 ++++---- PhoneNumberKit/Info.plist | 4 ++-- PhoneNumberKitTests/Info.plist | 4 ++-- examples/PhoneBook/Sample/ViewController.swift | 4 +++- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/PhoneNumberKit.podspec b/PhoneNumberKit.podspec index 96ed3cb93..1783e8bad 100644 --- a/PhoneNumberKit.podspec +++ b/PhoneNumberKit.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = "PhoneNumberKit" - s.version = "0.1.2" + s.version = "0.1.3" s.summary = "Swift framework for working with phone numbers" # This description is used to generate tags and improve search results. diff --git a/PhoneNumberKit.xcodeproj/project.pbxproj b/PhoneNumberKit.xcodeproj/project.pbxproj index 699a4ca28..e23c42ebd 100644 --- a/PhoneNumberKit.xcodeproj/project.pbxproj +++ b/PhoneNumberKit.xcodeproj/project.pbxproj @@ -293,7 +293,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 4; + CURRENT_PROJECT_VERSION = 5; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -343,7 +343,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 4; + CURRENT_PROJECT_VERSION = 5; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -373,7 +373,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4; + DYLIB_CURRENT_VERSION = 5; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = PhoneNumberKit/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; @@ -392,7 +392,7 @@ CLANG_ENABLE_MODULES = YES; DEFINES_MODULE = YES; DYLIB_COMPATIBILITY_VERSION = 1; - DYLIB_CURRENT_VERSION = 4; + DYLIB_CURRENT_VERSION = 5; DYLIB_INSTALL_NAME_BASE = "@rpath"; INFOPLIST_FILE = PhoneNumberKit/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; diff --git a/PhoneNumberKit/Info.plist b/PhoneNumberKit/Info.plist index 5c8d14e35..806b321c4 100644 --- a/PhoneNumberKit/Info.plist +++ b/PhoneNumberKit/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 0.1.2 + 0.1.3 CFBundleSignature ???? CFBundleVersion - 4 + 5 NSPrincipalClass diff --git a/PhoneNumberKitTests/Info.plist b/PhoneNumberKitTests/Info.plist index a76817c48..12db74c7c 100644 --- a/PhoneNumberKitTests/Info.plist +++ b/PhoneNumberKitTests/Info.plist @@ -15,10 +15,10 @@ CFBundlePackageType BNDL CFBundleShortVersionString - 0.1.2 + 0.1.3 CFBundleSignature ???? CFBundleVersion - 4 + 5 diff --git a/examples/PhoneBook/Sample/ViewController.swift b/examples/PhoneBook/Sample/ViewController.swift index ee2323119..a03b9b246 100644 --- a/examples/PhoneBook/Sample/ViewController.swift +++ b/examples/PhoneBook/Sample/ViewController.swift @@ -13,6 +13,8 @@ import PhoneNumberKit class ViewController: UIViewController, CNContactPickerDelegate { + let phoneNumberKit = PhoneNumberKit() + @IBOutlet weak var parsedNumberLabel: UILabel! @IBOutlet weak var parsedCountryCodeLabel: UILabel! @IBOutlet weak var parsedCountryLabel: UILabel! @@ -53,7 +55,7 @@ class ViewController: UIViewController, CNContactPickerDelegate { let phoneNumber = try PhoneNumber(rawNumber: number) parsedNumberLabel.text = phoneNumber.toInternational() parsedCountryCodeLabel.text = String(phoneNumber.countryCode) - let regionCode = PhoneNumberKit().mainCountryForCode(phoneNumber.countryCode) + let regionCode = phoneNumberKit.mainCountryForCode(phoneNumber.countryCode) let country = NSLocale.currentLocale().displayNameForKey(NSLocaleCountryCode, value: regionCode!) parsedCountryLabel.text = country }