Skip to content

Releases: iziz/libPhoneNumber-iOS

1.7.2

04 Jun 06:05

Choose a tag to compare

Update Google libphonenumber metadata to v9.0.32.

  • Refresh main phone-number metadata and optional carrier/timezone metadata bundles.
  • Keep testing, short-number, and geocoding metadata unchanged after regeneration.
  • Publish metadata-only patch release 1.7.2 across podspecs.

Validation:

  • Metadata freshness, upstream JS test parity, upstream JS API parity, version consistency, SwiftPM tests, Korean locale SwiftPM tests, release build, whitespace check, and CocoaPods lint passed.
  • CocoaPods trunk returned transient internal server/API timeout errors during publication; retry and visibility checks completed successfully, and all 13 podspec versions are present on trunk.

1.7.1

22 May 17:53

Choose a tag to compare

Update Google libphonenumber metadata to v9.0.31 and resolve Uganda +256 794 mobile range validation for issue #447.

1.7.0

12 May 12:19

Choose a tag to compare

What's New

  • Added opt-in carrier metadata modules: libPhoneNumberCarrier and libPhoneNumberSwiftCarrier.
  • Added opt-in timezone metadata modules: libPhoneNumberTimeZones and libPhoneNumberSwiftTimeZones.
  • Added libPhoneNumberSwiftUIEnrichment to connect carrier and timezone metadata to SwiftUI phone field state without making the default SwiftUI module heavier.
  • Added deterministic carrier/timezone metadata update scripts and review artifacts.
  • Added CocoaPods podspecs for the new Objective-C and Swift facade modules.

Metadata

  • Carrier metadata generated from Google libphonenumber v9.0.30: 31,001 prefix rows and 107 mobile-portable regions.
  • Timezone metadata generated from Google libphonenumber v9.0.30: 3,294 prefix rows.

Validation

  • swift test passed: 229 tests.
  • LC_ALL=ko_KR.UTF-8 LANG=ko_KR.UTF-8 swift test passed: 229 tests.
  • swift build -c release passed.
  • swift scripts/checkVersionConsistency.swift passed for 1.7.0.
  • git diff --check passed.
  • New CocoaPods podspec lint passed for carrier, timezone, Swift carrier, Swift timezone, and SwiftUI enrichment modules.

1.6.1 - Swift umbrella module rename

12 May 10:30

Choose a tag to compare

Summary

This patch release corrects the Swift umbrella module name introduced in 1.6.0.

libPhoneNumberSwift is not owned by this project, so the Swift Package Manager umbrella product and CocoaPods module name now use libPhoneNumberIOSSwift instead. The CocoaPods package name remains libPhoneNumber-iOS-Swift.

Changes

  • Renamed the Swift umbrella SPM product and target from libPhoneNumberSwift to libPhoneNumberIOSSwift.
  • Renamed the umbrella source and test directories to libPhoneNumberIOSSwift and libPhoneNumberIOSSwiftTests.
  • Updated libPhoneNumber-iOS-Swift.podspec to expose module name libPhoneNumberIOSSwift.
  • Removed exact libPhoneNumberSwift references from README, docs, scripts, and package metadata.
  • Kept split Swift facade modules unchanged:
    • libPhoneNumberSwiftCore
    • libPhoneNumberSwiftGeocoding
    • libPhoneNumberSwiftShortNumber
    • libPhoneNumberSwiftUI

Installation

Swift Package Manager

Use the umbrella module only when you want core, geocoding, and short-number Swift facades together:

.product(name: "libPhoneNumberIOSSwift", package: "libPhoneNumber")

Prefer smaller modules for new Swift apps when possible:

.product(name: "libPhoneNumberSwiftCore", package: "libPhoneNumber")
.product(name: "libPhoneNumberSwiftGeocoding", package: "libPhoneNumber")
.product(name: "libPhoneNumberSwiftShortNumber", package: "libPhoneNumber")
.product(name: "libPhoneNumberSwiftUI", package: "libPhoneNumber")

CocoaPods

pod 'libPhoneNumber-iOS-Swift', '~> 1.6'
pod 'libPhoneNumber-iOS-SwiftCore', '~> 1.6'
pod 'libPhoneNumber-iOS-SwiftGeocoding', '~> 1.6'
pod 'libPhoneNumber-iOS-SwiftShortNumber', '~> 1.6'
pod 'libPhoneNumber-iOS-SwiftUI', '~> 1.6'

Import the umbrella CocoaPods module as:

import libPhoneNumberIOSSwift

Validation

  • swift scripts/checkVersionConsistency.swift
  • swift test
  • LC_ALL=ko_KR.UTF-8 LANG=ko_KR.UTF-8 swift test
  • swift build -c release
  • pod lib lint for all shipped podspecs
  • CocoaPods trunk publish verified for all 1.6.1 podspecs

1.5.0

12 May 09:03

Choose a tag to compare

Release 1.5.0

1.4.0 - Update Metadata to v. 9.0.25

09 Mar 14:40
89d037a

Choose a tag to compare

Enhancements

  • #442 - Update to Google libPhoneNumber v. 9.0.25

Fixes

  • Address issue with MacOS unit tests failing due to inability to find the testing bundle
    • Improved the bundle finding logic to treat folders as bundles when searching

Full Changelog: 1.3.1...1.4.0

1.3.1 - Fix SPM & Cocoapods Issues

05 Dec 17:51
cc78d1f

Choose a tag to compare

Fixes

  • #436 - Add missing Foundation import to libPhoneNumber.h
  • #435 - Fix Cocoapod inclusion of Privacy Manifest
    • Change to include via library specific bundle
  • #438 - Fix Package.swift parse errors
    • When running on older swift versions

Enhancements

  • #439 - New scripts to help with releasing new versions

Full Changelog: 1.3.0...1.3.1