Skip to content
Merged
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
10 changes: 5 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import PackageDescription
let package = Package(
name: "libPhoneNumber",
platforms: [
.macOS(.v10_13),
.macCatalyst(.v13),
.iOS(.v12),
.tvOS(.v12),
.watchOS(.v4)
.macOS(.v12),
.macCatalyst(.v15),
.iOS(.v15),
.tvOS(.v15),
.watchOS("9.0")
],
products: [
.library(
Expand Down
44 changes: 29 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ Use the Objective-C API when you need source-compatible legacy integration. Use
- Swift Package Manager and CocoaPods are both supported.
- Metadata updates are tracked against Google libphonenumber with parity checks and review artifacts.

## Requirements

| Platform | Minimum version |
| --- | --- |
| iOS | 15.0 |
| macCatalyst | 15.0 |
| tvOS | 15.0 |
| watchOS | 9.0 |
| macOS | 12.0 |

These are the lowest deployment targets Xcode 27 accepts. Version 1.7.x
supports iOS 12, tvOS 12, watchOS 4, and macOS 10.13, but cannot be built
with Xcode 27.

## Recommended Setup

For most Swift apps, start with the core Swift facade:
Expand Down Expand Up @@ -45,13 +59,13 @@ Use the umbrella product when you want one non-UI import for core, geocoding, an
For CocoaPods Swift apps:

```ruby
pod 'libPhoneNumber-iOS-SwiftCore', '~> 1.7'
pod 'libPhoneNumber-iOS-SwiftCore', '~> 2.0'
```

For the CocoaPods umbrella facade:

```ruby
pod 'libPhoneNumber-iOS-Swift', '~> 1.7'
pod 'libPhoneNumber-iOS-Swift', '~> 2.0'
```

Then import the umbrella module as:
Expand Down Expand Up @@ -120,34 +134,34 @@ Objective-C-compatible products are also available:
Core Objective-C API:

```ruby
pod 'libPhoneNumber-iOS', '~> 1.7'
pod 'libPhoneNumber-iOS', '~> 2.0'
```

Swift facade modules:

```ruby
pod 'libPhoneNumber-iOS-SwiftCore', '~> 1.7'
pod 'libPhoneNumber-iOS-SwiftGeocoding', '~> 1.7'
pod 'libPhoneNumber-iOS-SwiftShortNumber', '~> 1.7'
pod 'libPhoneNumber-iOS-SwiftCarrier', '~> 1.7'
pod 'libPhoneNumber-iOS-SwiftTimeZones', '~> 1.7'
pod 'libPhoneNumber-iOS-SwiftUI', '~> 1.7'
pod 'libPhoneNumber-iOS-SwiftUIEnrichment', '~> 1.7'
pod 'libPhoneNumber-iOS-SwiftCore', '~> 2.0'
pod 'libPhoneNumber-iOS-SwiftGeocoding', '~> 2.0'
pod 'libPhoneNumber-iOS-SwiftShortNumber', '~> 2.0'
pod 'libPhoneNumber-iOS-SwiftCarrier', '~> 2.0'
pod 'libPhoneNumber-iOS-SwiftTimeZones', '~> 2.0'
pod 'libPhoneNumber-iOS-SwiftUI', '~> 2.0'
pod 'libPhoneNumber-iOS-SwiftUIEnrichment', '~> 2.0'
```

Swift umbrella facade:

```ruby
pod 'libPhoneNumber-iOS-Swift', '~> 1.7'
pod 'libPhoneNumber-iOS-Swift', '~> 2.0'
```

Objective-C optional modules:

```ruby
pod 'libPhoneNumberGeocoding', '~> 1.7'
pod 'libPhoneNumberShortNumber', '~> 1.7'
pod 'libPhoneNumberCarrier', '~> 1.7'
pod 'libPhoneNumberTimeZones', '~> 1.7'
pod 'libPhoneNumberGeocoding', '~> 2.0'
pod 'libPhoneNumberShortNumber', '~> 2.0'
pod 'libPhoneNumberCarrier', '~> 2.0'
pod 'libPhoneNumberTimeZones', '~> 2.0'
```

### Carthage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.7.8;
CURRENT_PROJECT_VERSION = 2.0.0;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -287,8 +287,8 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
MARKETING_VERSION = 1.7.8;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 2.0.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -326,7 +326,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.7.8;
CURRENT_PROJECT_VERSION = 2.0.0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -337,8 +337,8 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
MARKETING_VERSION = 1.7.8;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 2.0.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.7.8;
CURRENT_PROJECT_VERSION = 2.0.0;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -323,8 +323,8 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
MARKETING_VERSION = 1.7.8;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 2.0.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -363,7 +363,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.7.8;
CURRENT_PROJECT_VERSION = 2.0.0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -374,8 +374,8 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.5;
MARKETING_VERSION = 1.7.8;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 2.0.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.7.8;
CURRENT_PROJECT_VERSION = 2.0.0;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -334,7 +334,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MARKETING_VERSION = 1.7.8;
MARKETING_VERSION = 2.0.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -376,7 +376,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.7.8;
CURRENT_PROJECT_VERSION = 2.0.0;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
Expand All @@ -389,7 +389,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MARKETING_VERSION = 1.7.8;
MARKETING_VERSION = 2.0.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
Expand Down
16 changes: 8 additions & 8 deletions libPhoneNumber-iOS-Swift.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "libPhoneNumber-iOS-Swift"
s.module_name = "libPhoneNumberIOSSwift"
s.version = "1.7.8"
s.version = "2.0.0"
s.summary = "Swift-first umbrella facade for libPhoneNumber-iOS"
s.description = "Swift-first umbrella facade over the stable Objective-C libPhoneNumber-iOS core and optional geocoding and short-number modules."
s.homepage = "https://github.com/iziz/libPhoneNumber-iOS.git"
Expand All @@ -17,17 +17,17 @@ Pod::Spec.new do |s|
:tag => s.version.to_s
}

s.ios.deployment_target = "12.0"
s.osx.deployment_target = "10.13"
s.watchos.deployment_target = "4.0"
s.tvos.deployment_target = "12.0"
s.ios.deployment_target = "15.0"
s.osx.deployment_target = "12.0"
s.watchos.deployment_target = "9.0"
s.tvos.deployment_target = "15.0"

s.swift_version = "5.5"
s.requires_arc = true

s.dependency 'libPhoneNumber-iOS-SwiftCore', '~> 1.7.8'
s.dependency 'libPhoneNumber-iOS-SwiftGeocoding', '~> 1.7.8'
s.dependency 'libPhoneNumber-iOS-SwiftShortNumber', '~> 1.7.8'
s.dependency 'libPhoneNumber-iOS-SwiftCore', '~> 2.0.0'
s.dependency 'libPhoneNumber-iOS-SwiftGeocoding', '~> 2.0.0'
s.dependency 'libPhoneNumber-iOS-SwiftShortNumber', '~> 2.0.0'

s.source_files = [
'libPhoneNumberIOSSwift/**/*.swift',
Expand Down
14 changes: 7 additions & 7 deletions libPhoneNumber-iOS-SwiftCarrier.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "libPhoneNumber-iOS-SwiftCarrier"
s.module_name = "libPhoneNumberSwiftCarrier"
s.version = "1.7.8"
s.version = "2.0.0"
s.summary = "Swift-first carrier facade for libPhoneNumber-iOS"
s.description = "Swift-first carrier metadata facade over libPhoneNumberCarrier."
s.homepage = "https://github.com/iziz/libPhoneNumber-iOS.git"
Expand All @@ -17,16 +17,16 @@ Pod::Spec.new do |s|
:tag => s.version.to_s
}

s.ios.deployment_target = "12.0"
s.osx.deployment_target = "10.13"
s.watchos.deployment_target = "4.0"
s.tvos.deployment_target = "12.0"
s.ios.deployment_target = "15.0"
s.osx.deployment_target = "12.0"
s.watchos.deployment_target = "9.0"
s.tvos.deployment_target = "15.0"

s.swift_version = "5.5"
s.requires_arc = true

s.dependency 'libPhoneNumber-iOS-SwiftCore', '~> 1.7.8'
s.dependency 'libPhoneNumberCarrier', '~> 1.7.8'
s.dependency 'libPhoneNumber-iOS-SwiftCore', '~> 2.0.0'
s.dependency 'libPhoneNumberCarrier', '~> 2.0.0'

s.source_files = [
'libPhoneNumberSwiftCarrier/**/*.swift',
Expand Down
12 changes: 6 additions & 6 deletions libPhoneNumber-iOS-SwiftCore.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "libPhoneNumber-iOS-SwiftCore"
s.module_name = "libPhoneNumberSwiftCore"
s.version = "1.7.8"
s.version = "2.0.0"
s.summary = "Swift-first core facade for libPhoneNumber-iOS"
s.description = "Swift-first core facade over the stable Objective-C libPhoneNumber-iOS parser, formatter, and validator."
s.homepage = "https://github.com/iziz/libPhoneNumber-iOS.git"
Expand All @@ -17,15 +17,15 @@ Pod::Spec.new do |s|
:tag => s.version.to_s
}

s.ios.deployment_target = "12.0"
s.osx.deployment_target = "10.13"
s.watchos.deployment_target = "4.0"
s.tvos.deployment_target = "12.0"
s.ios.deployment_target = "15.0"
s.osx.deployment_target = "12.0"
s.watchos.deployment_target = "9.0"
s.tvos.deployment_target = "15.0"

s.swift_version = "5.5"
s.requires_arc = true

s.dependency 'libPhoneNumber-iOS', '~> 1.7.8'
s.dependency 'libPhoneNumber-iOS', '~> 2.0.0'

s.source_files = [
'libPhoneNumberSwiftCore/**/*.swift',
Expand Down
14 changes: 7 additions & 7 deletions libPhoneNumber-iOS-SwiftGeocoding.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "libPhoneNumber-iOS-SwiftGeocoding"
s.module_name = "libPhoneNumberSwiftGeocoding"
s.version = "1.7.8"
s.version = "2.0.0"
s.summary = "Swift-first geocoding facade for libPhoneNumber-iOS"
s.description = "Swift-first geocoding facade over libPhoneNumberGeocoding."
s.homepage = "https://github.com/iziz/libPhoneNumber-iOS.git"
Expand All @@ -17,16 +17,16 @@ Pod::Spec.new do |s|
:tag => s.version.to_s
}

s.ios.deployment_target = "12.0"
s.osx.deployment_target = "10.13"
s.watchos.deployment_target = "4.0"
s.tvos.deployment_target = "12.0"
s.ios.deployment_target = "15.0"
s.osx.deployment_target = "12.0"
s.watchos.deployment_target = "9.0"
s.tvos.deployment_target = "15.0"

s.swift_version = "5.5"
s.requires_arc = true

s.dependency 'libPhoneNumber-iOS-SwiftCore', '~> 1.7.8'
s.dependency 'libPhoneNumberGeocoding', '~> 1.7.8'
s.dependency 'libPhoneNumber-iOS-SwiftCore', '~> 2.0.0'
s.dependency 'libPhoneNumberGeocoding', '~> 2.0.0'

s.source_files = [
'libPhoneNumberSwiftGeocoding/**/*.swift',
Expand Down
14 changes: 7 additions & 7 deletions libPhoneNumber-iOS-SwiftShortNumber.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "libPhoneNumber-iOS-SwiftShortNumber"
s.module_name = "libPhoneNumberSwiftShortNumber"
s.version = "1.7.8"
s.version = "2.0.0"
s.summary = "Swift-first short-number facade for libPhoneNumber-iOS"
s.description = "Swift-first short-number facade over libPhoneNumberShortNumber."
s.homepage = "https://github.com/iziz/libPhoneNumber-iOS.git"
Expand All @@ -17,16 +17,16 @@ Pod::Spec.new do |s|
:tag => s.version.to_s
}

s.ios.deployment_target = "12.0"
s.osx.deployment_target = "10.13"
s.watchos.deployment_target = "4.0"
s.tvos.deployment_target = "12.0"
s.ios.deployment_target = "15.0"
s.osx.deployment_target = "12.0"
s.watchos.deployment_target = "9.0"
s.tvos.deployment_target = "15.0"

s.swift_version = "5.5"
s.requires_arc = true

s.dependency 'libPhoneNumber-iOS-SwiftCore', '~> 1.7.8'
s.dependency 'libPhoneNumberShortNumber', '~> 1.7.8'
s.dependency 'libPhoneNumber-iOS-SwiftCore', '~> 2.0.0'
s.dependency 'libPhoneNumberShortNumber', '~> 2.0.0'

s.source_files = [
'libPhoneNumberSwiftShortNumber/**/*.swift',
Expand Down
Loading