Skip to content

Commit

Permalink
Release 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
marmelroy committed Nov 1, 2015
1 parent 7338d79 commit b271e49
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion PhoneNumberKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 4 additions & 4 deletions PhoneNumberKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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";
Expand All @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions PhoneNumberKit/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.1.2</string>
<string>0.1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>4</string>
<string>5</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions PhoneNumberKitTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>0.1.2</string>
<string>0.1.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>4</string>
<string>5</string>
</dict>
</plist>
4 changes: 3 additions & 1 deletion examples/PhoneBook/Sample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit b271e49

Please sign in to comment.