Skip to content

Commit 88f9f93

Browse files
authored
Implement SPM support (#646)
1 parent e5c28dc commit 88f9f93

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+126
-10
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ examples/**/Pods/
3131
# Carthage
3232
Carthage/
3333

34+
# SPM
35+
.swiftpm
36+
.build
37+
Package.resolved
38+
3439
#Fabric
3540
.fabric_key
3641

App/ViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class ViewController: UIViewController {
105105
.withOptions {
106106
applyDefaultOptions(&$0)
107107
$0.allow = [.Login]
108-
$0.usernameStyle = [.Email]
108+
$0.usernameStyle = [.Username]
109109
}
110110
.withConnections { connections in
111111
connections.database(name: "Username-Password-Authentication", requiresUsername: true)
@@ -116,6 +116,7 @@ class ViewController: UIViewController {
116116
.classic()
117117
.withOptions {
118118
applyDefaultOptions(&$0)
119+
$0.usernameStyle = [.Username]
119120
}
120121
.withConnections { connections in
121122
connections.social(name: "apple", style: .Apple)

Lock/AuthPresenter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// THE SOFTWARE.
2222

2323
import Foundation
24+
import UIKit
2425

2526
class AuthPresenter: Presentable, Loggable {
2627

Lock/CustomTextField.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// THE SOFTWARE.
2222

2323
import Foundation
24+
import UIKit
2425

2526
public struct CustomTextField {
2627

Lock/EnterpriseDomainPresenter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// THE SOFTWARE.
2222

2323
import Foundation
24+
import UIKit
2425

2526
class EnterpriseDomainPresenter: Presentable, Loggable {
2627

Lock/Extensions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// THE SOFTWARE.
2222

2323
import Foundation
24+
import UIKit
2425

2526
extension Optional {
2627

Lock/Layout.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// THE SOFTWARE.
2222

2323
import Foundation
24+
import UIKit
2425

2526
// MARK: - NSLayoutXAxisAnchor
2627
@discardableResult func constraintEqual<C: NSLayoutAnchor<NSLayoutXAxisAnchor>>(anchor: C, toAnchor anotherAnchor: C, constant: CGFloat? = nil, priority: UILayoutPriority = UILayoutPriority.priorityRequired) -> NSLayoutConstraint {

Lock/LazyImage.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// THE SOFTWARE.
2222

2323
import Foundation
24+
import UIKit
2425

2526
/**
2627
* Convenience struct to hold an image reference to a `NSBundle` without loading the `UIImage`.

Lock/Lock.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// THE SOFTWARE.
2222

2323
import Foundation
24+
import UIKit
2425
import Auth0
2526

2627
/// Lock main class to configure and show the native widget

Lock/MessageView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
// THE SOFTWARE.
2222

23+
import Foundation
2324
import UIKit
2425

2526
class MessageView: UIView {

0 commit comments

Comments
 (0)