Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the product name to 'libPhoneNumber' for all targets #235

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions MetadataGenerator/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ - (BOOL)application:(UIApplication *)application
}

- (void)testForGetSupportedRegions {
NBPhoneNumberUtil *phoneUtil = [NBPhoneNumberUtil sharedInstance];
NBPhoneNumberUtility *phoneUtil = [NBPhoneNumberUtility sharedInstance];
NSLog(@"%@", [phoneUtil getSupportedRegions]);
}

Expand Down Expand Up @@ -69,7 +69,7 @@ - (void)testWithRealData {

// Unit test for isValidNumber is failing some valid numbers. #7

NBPhoneNumberUtil *phoneUtil = [NBPhoneNumberUtil sharedInstance];
NBPhoneNumberUtility *phoneUtil = [NBPhoneNumberUtility sharedInstance];

{
NSError *error = nil;
Expand Down Expand Up @@ -215,7 +215,7 @@ - (NSString *)randomRegion {
}

- (void)testForMultithread {
NBPhoneNumberUtil *aUtil = [NBPhoneNumberUtil sharedInstance];
NBPhoneNumberUtility *aUtil = [NBPhoneNumberUtility sharedInstance];
NSString *testRegion = [self randomRegion];

if (!testRegion) {
Expand Down Expand Up @@ -269,7 +269,7 @@ - (void)testCarrierRegion {
}

- (NSString *)getPhoneNumberFormatted:(NSString *)phoneNumber {
NBPhoneNumberUtil *phoneUtil = [NBPhoneNumberUtil sharedInstance];
NBPhoneNumberUtility *phoneUtil = [NBPhoneNumberUtility sharedInstance];
NSString *retValue;
NBPhoneNumber *phoneNumberFormatted =
[phoneUtil parseWithPhoneCarrierRegion:phoneNumber error:nil];
Expand All @@ -280,7 +280,7 @@ - (NSString *)getPhoneNumberFormatted:(NSString *)phoneNumber {

// FIXME: This unit test ALWAYS FAIL ... until google libPhoneNumber fix this issue
- (void)testAustriaNationalNumberParsing {
NBPhoneNumberUtil *phoneUtil = [NBPhoneNumberUtil sharedInstance];
NBPhoneNumberUtility *phoneUtil = [NBPhoneNumberUtility sharedInstance];

NSError *anError = nil;

Expand All @@ -297,7 +297,7 @@ - (void)testAustriaNationalNumberParsing {
}

- (void)testForiOS7 {
NBPhoneNumberUtil *phoneUtil = [NBPhoneNumberUtil sharedInstance];
NBPhoneNumberUtility *phoneUtil = [NBPhoneNumberUtility sharedInstance];

NSError *anError = nil;
NBPhoneNumber *myNumber = [phoneUtil parse:@"0174 2340XXX" defaultRegion:@"DE" error:&anError];
Expand Down
2 changes: 1 addition & 1 deletion libPhoneNumber-iOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ DESC
s.tvos.deployment_target = "9.0"
s.requires_arc = true
s.private_header_files = 'libPhoneNumber/NBGeneratedPhoneNumberMetaData.h'
s.source_files = 'libPhoneNumber/NBPhoneNumberDefines.{h,m}', 'libPhoneNumber/NBPhoneNumber.{h,m}', 'libPhoneNumber/NBNumberFormat.{h,m}', 'libPhoneNumber/NBPhoneNumberDesc.{h,m}', 'libPhoneNumber/NBPhoneMetaData.{h,m}', 'libPhoneNumber/NBPhoneNumberUtil.{h,m}', 'libPhoneNumber/NBMetadataHelper.{h,m}', 'libPhoneNumber/NBAsYouTypeFormatter.{h,m}', 'libPhoneNumber/NSArray+NBAdditions.{h,m}', 'libPhoneNumber/NBGeneratedPhoneNumberMetaData.h'
s.source_files = 'libPhoneNumber/NBPhoneNumberDefines.{h,m}', 'libPhoneNumber/NBPhoneNumber.{h,m}', 'libPhoneNumber/NBNumberFormat.{h,m}', 'libPhoneNumber/NBPhoneNumberDesc.{h,m}', 'libPhoneNumber/NBPhoneMetaData.{h,m}', 'libPhoneNumber/NBPhoneNumberUtility.{h,m}', 'libPhoneNumber/NBMetadataHelper.{h,m}', 'libPhoneNumber/NBAsYouTypeFormatter.{h,m}', 'libPhoneNumber/NSArray+NBAdditions.{h,m}', 'libPhoneNumber/NBGeneratedPhoneNumberMetaData.h'
end
2 changes: 1 addition & 1 deletion libPhoneNumber-iOS/NBTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ open class NBTextField: UITextField
{
// MARK: Options/Variables for phone number formatting

let phoneNumberUtility: NBPhoneNumberUtil = NBPhoneNumberUtil()
let phoneNumberUtility: NBPhoneNumberUtility = NBPhoneNumberUtility()
var phoneNumberFormatter: NBAsYouTypeFormatter?

var shouldCheckValidationForInputText: Bool = true
Expand Down
6 changes: 6 additions & 0 deletions libPhoneNumber-iOS/iOS_module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module libPhoneNumber {
umbrella header "libPhoneNumberiOS.h"

export *
module * { export * }
}
2 changes: 1 addition & 1 deletion libPhoneNumber-iOS/libPhoneNumberiOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FOUNDATION_EXPORT const unsigned char libPhoneNumber_iOSVersionString[];

// Features
#import "NBAsYouTypeFormatter.h"
#import "NBPhoneNumberUtil.h"
#import "NBPhoneNumberUtility.h"

// Metadata
#import "NBMetadataHelper.h"
Expand Down
2 changes: 1 addition & 1 deletion libPhoneNumber-macOS/libPhoneNumbermacOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FOUNDATION_EXPORT const unsigned char libPhoneNumbermacOSVersionString[];

// Features
#import "NBAsYouTypeFormatter.h"
#import "NBPhoneNumberUtil.h"
#import "NBPhoneNumberUtility.h"

// Metadata
#import "NBMetadataHelper.h"
Expand Down
6 changes: 6 additions & 0 deletions libPhoneNumber-macOS/macOS_module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module libPhoneNumber {
umbrella header "libPhoneNumbermacOS.h"

export *
module * { export * }
}
2 changes: 1 addition & 1 deletion libPhoneNumber-tvOS/libPhoneNumbertvOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FOUNDATION_EXPORT const unsigned char libPhoneNumber_tvOSVersionString[];

// Features
#import "NBAsYouTypeFormatter.h"
#import "NBPhoneNumberUtil.h"
#import "NBPhoneNumberUtility.h"

// Metadata
#import "NBMetadataCore.h"
Expand Down
6 changes: 6 additions & 0 deletions libPhoneNumber-tvOS/tvOS_module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module libPhoneNumber {
umbrella header "libPhoneNumbertvOS.h"

export *
module * { export * }
}
2 changes: 1 addition & 1 deletion libPhoneNumber-watchOS/libPhoneNumberwatchOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ FOUNDATION_EXPORT const unsigned char libPhoneNumber_watchOSVersionString[];

// Features
#import "NBAsYouTypeFormatter.h"
#import "NBPhoneNumberUtil.h"
#import "NBPhoneNumberUtility.h"

// Metadata
#import "NBMetadataCore.h"
Expand Down
6 changes: 6 additions & 0 deletions libPhoneNumber-watchOS/watchOS_module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module libPhoneNumber {
umbrella header "libPhoneNumberwatchOS.h"

export *
module * { export * }
}
Loading