diff --git a/.swift-version b/.swift-version deleted file mode 100644 index 8012ebb..0000000 --- a/.swift-version +++ /dev/null @@ -1 +0,0 @@ -4.2 \ No newline at end of file diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..d1b7267 --- /dev/null +++ b/Package.swift @@ -0,0 +1,26 @@ +// swift-tools-version:5.3 +import PackageDescription + +let package = Package( + name: "SwiftPhoneNumberFormatter", + platforms: [.iOS(.v9)], + products: [ + .library( + name: "PhoneNumberFormatter", + targets: ["PhoneNumberFormatter"]), + ], + dependencies: [ + ], + targets: [ + .target( + name: "PhoneNumberFormatter", + dependencies: [], + path: "PhoneNumberFormatter/Sources" + ), + .testTarget( + name: "PhoneNumberFormatterTests", + dependencies: ["PhoneNumberFormatter"] + ), + ], + swiftLanguageVersions: [.v5] +) diff --git a/PhoneNumberFormatter.podspec b/PhoneNumberFormatter.podspec new file mode 100644 index 0000000..8ff498c --- /dev/null +++ b/PhoneNumberFormatter.podspec @@ -0,0 +1,13 @@ +Pod::Spec.new do |s| + s.name = "PhoneNumberFormatter" + s.version = "1.5.rc.1" + s.summary = "PhoneNumberFormatter for iOS" + s.homepage = "https://github.com/Nixon506E/PhoneNumberFormatter" + s.license = 'MIT' + s.author = { "Sergei Shatunov" => "sshatunov@gmail.com" } + s.source = { :git => "https://github.com/Nixon506E/PhoneNumberFormatter.git", :tag => s.version.to_s } + s.platform = :ios, '9.0' + s.swift_versions = ['5.0'] + s.source_files = 'PhoneNumberFormatter/Sources/**/*.{swift}' + s.requires_arc = true +end diff --git a/PhoneNumberFormatter/Sources/PhoneFormattedTextField.swift b/PhoneNumberFormatter/Sources/PhoneFormattedTextField.swift index 83c1af7..12fa395 100644 --- a/PhoneNumberFormatter/Sources/PhoneFormattedTextField.swift +++ b/PhoneNumberFormatter/Sources/PhoneFormattedTextField.swift @@ -11,7 +11,7 @@ import UIKit /** UITextField subclass to handle phone numbers formats */ -public class PhoneFormattedTextField: UITextField { +open class PhoneFormattedTextField: UITextField { private let formatProxy: FormattedTextFieldDelegate private let formatter: PhoneFormatter diff --git a/SwiftPhoneNumberFormatter.podspec b/SwiftPhoneNumberFormatter.podspec deleted file mode 100644 index 54ad406..0000000 --- a/SwiftPhoneNumberFormatter.podspec +++ /dev/null @@ -1,12 +0,0 @@ -Pod::Spec.new do |s| - s.name = "SwiftPhoneNumberFormatter" - s.version = "1.5" - s.summary = "PhoneNumberFormatter for iOS" - s.homepage = "https://github.com/Serheo/PhoneNumberFormatter" - s.license = 'MIT' - s.author = { "Sergei Shatunov" => "sshatunov@gmail.com" } - s.source = { :git => "https://github.com/Serheo/PhoneNumberFormatter.git", :tag => s.version.to_s } - s.platform = :ios, '9.0' - s.source_files = 'PhoneNumberFormatter/Sources/**/*.{swift}' - s.requires_arc = true -end \ No newline at end of file