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

Feature/spm support #3

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
13 changes: 0 additions & 13 deletions InputMask.podspec

This file was deleted.

33 changes: 33 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "input-mask-ios",
platforms: [
.iOS(.v12)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "input-mask-ios",
targets: ["input-mask-ios"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "input-mask-ios",
path: "Source/InputMask/InputMask"),
.testTarget(
name: "input-mask-iosTests",
dependencies: ["input-mask-ios"],
path: "Source/InputMask/InputMaskTests"),
],
swiftLanguageVersions: [.v5]
)
634 changes: 0 additions & 634 deletions Source/InputMask/InputMask.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions Source/InputMask/InputMask/Classes/InputMask.h

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public extension MaskedTextFieldDelegate {
Consider using ```MaskedTextFieldDelegate.listener``` property from your source code instead of
```MaskedTextFieldDelegate.delegate``` outlet.
*/
@IBOutlet public var delegate: NSObject? {
@IBOutlet var delegate: NSObject? {
get {
return self.listener as? NSObject
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ open class MaskedTextFieldDelegate: NSObject, UITextFieldDelegate {
private var _maskFormat: String
private var _autocomplete: Bool
private var _autocompleteOnFocus: Bool
private var _defaultAttribues = [NSAttributedStringKey: Any]()
private var _defaultAttribues = [NSAttributedString.Key: Any]()
private var _oldCaretPosition = 0
private var _fieldValue = ""
private var _minimumTextLength = 0
Expand Down Expand Up @@ -103,7 +103,7 @@ open class MaskedTextFieldDelegate: NSObject, UITextFieldDelegate {
if let field = field {
_defaultAttribues.reserveCapacity(field.defaultTextAttributes.count)
for attribute in field.defaultTextAttributes {
_defaultAttribues[NSAttributedStringKey(rawValue: attribute.key)] = attribute.value
_defaultAttribues[NSAttributedString.Key(rawValue: attribute.key.rawValue)] = attribute.value
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import Foundation
import UIKit


/**
### PolyMaskTextFieldDelegate

Expand Down
26 changes: 0 additions & 26 deletions Source/InputMask/InputMask/Supporting Files/Info.plist

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import InputMask
@testable import input_mask_ios


class DayMonthYearCase: MaskTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import InputMask
@testable import input_mask_ios


class DayMonthYearShortCase: MaskTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import InputMask
@testable import input_mask_ios


class MaskTestCase: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import InputMask
@testable import input_mask_ios


class MonthYearCase: MaskTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import InputMask
@testable import input_mask_ios


class MonthYearDoubledoubleShashCase: MaskTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
@testable import InputMask
@testable import input_mask_ios


class PhoneCase: MaskTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
@testable import InputMask
@testable import input_mask_ios


class YearACCase: MaskTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
@testable import InputMask
@testable import input_mask_ios


class YearCase: MaskTestCase {
Expand Down
24 changes: 0 additions & 24 deletions Source/InputMask/InputMaskTests/Supporting Files/Info.plist

This file was deleted.

1 change: 0 additions & 1 deletion Source/Sample/Cartfile.resolved

This file was deleted.

13 changes: 0 additions & 13 deletions Source/Sample/Podfile

This file was deleted.

Loading