Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
86539d3
Merge pull request #195 from wordpress-mobile/merge-release-1.10.9-in…
loremattei Mar 9, 2020
3ce8b87
Update pod file to point to wordpresskit-ios branch
mindgraffiti Mar 9, 2020
3fe86b1
Update podfile.lock to use new branch and version of wpkit (4.6.0-bet…
mindgraffiti Mar 9, 2020
2976ebb
Update podspec dependency (wpkit) and version number (1.11.0-beta.1)
mindgraffiti Mar 9, 2020
92f3b6b
Revert podspec dependency until wpkit 4.6.0-beta.1 is published
mindgraffiti Mar 9, 2020
5c9e4bd
Update podspec dependency declaration to wpkit 4.6.0-beta.1
mindgraffiti Mar 9, 2020
2826e6c
Update podfile to point to published beta version of WordPressKit pod
mindgraffiti Mar 10, 2020
99b9722
Update podfile.lock checksums
mindgraffiti Mar 10, 2020
71c5a96
Merge pull request #196 from wordpress-mobile/issue/update-wpkit-to-v…
mindgraffiti Mar 10, 2020
6da66b6
Update to version 1.11.0-beta.2
Mar 10, 2020
b24e5de
Increases the WordPressKit version and this pod's version.
diegoreymendez Mar 10, 2020
fee7b5b
Updates the Podfile.lock.
diegoreymendez Mar 10, 2020
38f977e
Merge pull request #197 from wordpress-mobile/feature/update-gridicon…
Gio2018 Mar 10, 2020
d0f61c0
Updated the authenticator pod version to 1.11.0-beta.3.
diegoreymendez Mar 10, 2020
435c5eb
Merged the latest from develop.
diegoreymendez Mar 11, 2020
52164a7
Merge pull request #198 from wordpress-mobile/try/integrate-wpkit-216…
diegoreymendez Mar 11, 2020
06264d4
Update NUX buttons when light/dark mode toggled.
ScoutHarris Mar 11, 2020
2afa04a
Merge pull request #199 from wordpress-mobile/fix/12441-update_nux_bu…
ScoutHarris Mar 12, 2020
3ecb89c
Update version of NSURL+IDN to 0.4
Mar 12, 2020
5453822
Point to updated WordPressKit 4.6.0-beta.2 -> 4.6.0-beta.6
mindgraffiti Mar 12, 2020
baf20c3
Update podspec to beta.6
mindgraffiti Mar 12, 2020
59d97b4
Merge pull request #200 from wordpress-mobile/feature/Update-NSURL-ID…
Gio2018 Mar 12, 2020
2186095
Update NSURL+IDN dependency in podspec
Mar 12, 2020
aafbbb4
Merge branch 'develop' into issue/update-wpkit-to-4.6.0-beta.6
mindgraffiti Mar 13, 2020
392de8e
Update podfile to point to published WordPressKit version 4.6.0-beta.6
mindgraffiti Mar 13, 2020
1e53327
Merge pull request #201 from wordpress-mobile/issue/update-wpkit-to-4…
mindgraffiti Mar 13, 2020
738125d
Update WP signup button style.
ScoutHarris Mar 13, 2020
19aef00
Merge branch 'develop' into fix/13441-update_signup_button_style
ScoutHarris Mar 13, 2020
fed7054
Updating pod version.
ScoutHarris Mar 13, 2020
ad39c00
Update podspec version and dependency versions
mindgraffiti Mar 16, 2020
4cf71ce
Update podfile.lock - dependency versions and checksums
mindgraffiti Mar 16, 2020
e676bbb
Update Lottie pod
mindgraffiti Mar 16, 2020
2bd7f8c
Migrate from Lottie 2.5.2 -> 3.1.6
mindgraffiti Mar 16, 2020
41258f1
Correct autolayout warnings in Login.storyboard
mindgraffiti Mar 16, 2020
ebd7f1e
Update podspec dependency for Lottie and podspec version
mindgraffiti Mar 16, 2020
7acdd79
Merge pull request #202 from wordpress-mobile/fix/13441-update_signup…
ScoutHarris Mar 16, 2020
5007467
Merge branch 'develop' into fix/update-pods
mindgraffiti Mar 16, 2020
6b66a8f
Fix shifted view that caused an autolayout warning
mindgraffiti Mar 16, 2020
db817ea
Merge pull request #203 from wordpress-mobile/fix/update-pods
mindgraffiti Mar 16, 2020
662a401
Merge branch 'develop' into issue/84-update-lottie
mindgraffiti Mar 16, 2020
82e958b
Merge pull request #204 from wordpress-mobile/issue/84-update-lottie
mindgraffiti Mar 16, 2020
ea6b6d3
Add NSObject helper - return a class name without spaces
mindgraffiti Mar 16, 2020
fa5ef8b
Add UIStoryboard helper - return storyboard instance and instantiate VCs
mindgraffiti Mar 16, 2020
55e8540
Add UIViewController helper - instantiate a VC from a given storyboard
mindgraffiti Mar 16, 2020
6586789
Update LoginEmailViewController storyboard ID to be class name
mindgraffiti Mar 16, 2020
ac575e5
Update SignupEmailViewController storyboardID to be class name
mindgraffiti Mar 16, 2020
49c1204
Update segue references
mindgraffiti Mar 16, 2020
efc15db
Navigate to the LoginEmailViewController programmatically
mindgraffiti Mar 16, 2020
0b6f8c3
Updating magic link instruction text.
ScoutHarris Mar 16, 2020
1e74b21
Navigate to view controllers using navControllers instead of segues
mindgraffiti Mar 16, 2020
01aa6a1
Instantiate the view controller using the new convenience method
mindgraffiti Mar 16, 2020
be766d6
Remove `showEmailLogin` segues from storyboards
mindgraffiti Mar 16, 2020
b2540ca
Remove `showEmailLogin` from SegueIdentifier enum
mindgraffiti Mar 16, 2020
099b8d0
Remove `emailEntry` reference IDs and use VC class names
mindgraffiti Mar 16, 2020
abf40f9
Update podspec to beta.11
mindgraffiti Mar 16, 2020
c128a18
Update text.
ScoutHarris Mar 16, 2020
2a508db
Merge pull request #206 from wordpress-mobile/issue/13664-update_magi…
ScoutHarris Mar 16, 2020
c245042
Fixes an error in the email checking logic.
diegoreymendez Mar 17, 2020
30660d5
Merge branch 'develop' into issue/204-remove-showLoginEmail
mindgraffiti Mar 17, 2020
6085481
Improves checkEmailAvailability.
diegoreymendez Mar 17, 2020
9caab9b
Increments the pod version.
diegoreymendez Mar 17, 2020
bd8f659
Updates the WPKit dependency.
diegoreymendez Mar 17, 2020
c49021e
Merge pull request #208 from wordpress-mobile/try/fix-signup-issue
diegoreymendez Mar 17, 2020
4f51a12
Adding method to create attributed strings containing the Google logo.
ScoutHarris Mar 17, 2020
88f78a9
Adding method to configure NUX button for Google.
ScoutHarris Mar 17, 2020
a7f5b7c
Show Google logo on Google buttons.
ScoutHarris Mar 17, 2020
114caa6
Updating pod version.
ScoutHarris Mar 17, 2020
ce6fc3c
Merge branch 'develop' into issue/204-remove-showLoginEmail
mindgraffiti Mar 17, 2020
24a60bb
Bump podspec. beta.11 is already taken
mindgraffiti Mar 17, 2020
484171f
Pass login fields to the next view controller
mindgraffiti Mar 17, 2020
9f985c0
Bump podspec. beta.12 is taken
mindgraffiti Mar 17, 2020
1a495ad
Merge pull request #209 from wordpress-mobile/issue/13620-google_butt…
ScoutHarris Mar 18, 2020
50926c1
Update to Gridicons 1.0
frosty Mar 18, 2020
4f24cc2
Bump podspec version
frosty Mar 18, 2020
6d3bfe0
Updated 1PasswordExtension to v. 1.8.6 that removes the support for U…
pmusolino Mar 18, 2020
c5e5519
Merge pull request #210 from wordpress-mobile/update/1password_1_8_6
pmusolino Mar 18, 2020
1c1cc7e
Merge branch 'develop' into issue/204-remove-showLoginEmail
mindgraffiti Mar 18, 2020
0cddefa
Bump podspec, as beta.13 is already taken
mindgraffiti Mar 18, 2020
b4adea9
Repair autolayout to remove constraints warning
mindgraffiti Mar 18, 2020
c5b1e15
Use new convenience method
mindgraffiti Mar 18, 2020
3035059
Restore original login.storyboard settings
mindgraffiti Mar 18, 2020
6fe1522
Pass the login fields to the next VC
mindgraffiti Mar 18, 2020
01725ec
Remove a segue to the LoginEmailViewController
mindgraffiti Mar 18, 2020
5322663
Pass in the correct loginField data
mindgraffiti Mar 18, 2020
35167dc
Revert "Pass in the correct loginField data"
mindgraffiti Mar 18, 2020
77aa17a
Merge branch 'develop' into update/gridicons-1.0
frosty Mar 18, 2020
5d8d0dd
Updated Gridicons pod requirement
frosty Mar 19, 2020
ded818f
Adding Apple icons.
ScoutHarris Mar 19, 2020
582edf6
Show SIWA button with Apple logo.
ScoutHarris Mar 19, 2020
7dd9421
Update button view and buttons layout.
ScoutHarris Mar 19, 2020
e251f20
Add a Style color for the button view background.
ScoutHarris Mar 19, 2020
12b1e5d
Update Apple logo when dark/light mode toggled.
ScoutHarris Mar 19, 2020
90cb24b
Updating pod version.
ScoutHarris Mar 19, 2020
2b7283a
Bumped podspec version
frosty Mar 19, 2020
b3f6b21
Merge pull request #212 from wordpress-mobile/update/gridicons-1.0
frosty Mar 19, 2020
a3dc545
Bump podspec
mindgraffiti Mar 19, 2020
155908c
Update dependencies to match `develop`
mindgraffiti Mar 19, 2020
6a5018e
Merge branch 'develop' into issue/204-remove-showLoginEmail
mindgraffiti Mar 19, 2020
2293402
Adjusting size and position of logos.
ScoutHarris Mar 19, 2020
7a653c8
Bump podspec to beta.14
mindgraffiti Mar 20, 2020
55feb3f
Merge pull request #207 from wordpress-mobile/issue/204-remove-showLo…
mindgraffiti Mar 20, 2020
1d231f5
Move icon down a smidge.
ScoutHarris Mar 20, 2020
accd9fe
Merge branch 'develop' into issue/13620-apple_button_appearance
ScoutHarris Mar 20, 2020
47dee33
Merge pull request #213 from wordpress-mobile/issue/13620-apple_butto…
ScoutHarris Mar 20, 2020
d7e8380
Bump version for release
loremattei Mar 23, 2020
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
17 changes: 9 additions & 8 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,22 @@ def wordpress_authenticator_pods
## Automattic libraries
## ====================
##
pod 'Gridicons', '~> 0.15'
pod 'WordPressUI', '~> 1.4-beta.1'
pod 'WordPressKit', '~> 4.5.9-beta'
# pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :branch => 'issue/apple_2fa_auth'
pod 'WordPressShared', '~> 1.8.13'
pod 'Gridicons', '~> 1.0'
pod 'WordPressUI', '~> 1.5.2'
pod 'WordPressKit', '~> 4.6.0'
#pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :branch => ''
#pod 'WordPressKit', :git => 'https://github.com/wordpress-mobile/WordPressKit-iOS.git', :commit => ''
pod 'WordPressShared', '~> 1.8.16'

## Third party libraries
## =====================
##
pod '1PasswordExtension', '1.8.5'
pod '1PasswordExtension', '1.8.6'
pod 'Alamofire', '4.8'
pod 'CocoaLumberjack', '3.5.2'
pod 'GoogleSignIn', '4.4.0'
pod 'lottie-ios', '2.5.2'
pod 'NSURL+IDN', '0.3'
pod 'lottie-ios', '3.1.6'
pod 'NSURL+IDN', '0.4'
pod 'SVProgressHUD', '2.2.5'
end

Expand Down
84 changes: 42 additions & 42 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- 1PasswordExtension (1.8.5)
- 1PasswordExtension (1.8.6)
- Alamofire (4.8.0)
- CocoaLumberjack (3.5.2):
- CocoaLumberjack/Core (= 3.5.2)
Expand All @@ -12,20 +12,20 @@ PODS:
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
- "GoogleToolboxForMac/NSString+URLArguments (~> 2.1)"
- GTMSessionFetcher/Core (~> 1.1)
- GoogleToolboxForMac/DebugUtils (2.2.1):
- GoogleToolboxForMac/Defines (= 2.2.1)
- GoogleToolboxForMac/Defines (2.2.1)
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.2.1)":
- GoogleToolboxForMac/DebugUtils (= 2.2.1)
- GoogleToolboxForMac/Defines (= 2.2.1)
- "GoogleToolboxForMac/NSString+URLArguments (= 2.2.1)"
- "GoogleToolboxForMac/NSString+URLArguments (2.2.1)"
- Gridicons (0.19)
- GTMSessionFetcher/Core (1.2.2)
- lottie-ios (2.5.2)
- NSObject-SafeExpectations (0.0.3)
- "NSURL+IDN (0.3)"
- OCMock (3.4.3)
- GoogleToolboxForMac/DebugUtils (2.2.2):
- GoogleToolboxForMac/Defines (= 2.2.2)
- GoogleToolboxForMac/Defines (2.2.2)
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.2.2)":
- GoogleToolboxForMac/DebugUtils (= 2.2.2)
- GoogleToolboxForMac/Defines (= 2.2.2)
- "GoogleToolboxForMac/NSString+URLArguments (= 2.2.2)"
- "GoogleToolboxForMac/NSString+URLArguments (2.2.2)"
- Gridicons (1.0)
- GTMSessionFetcher/Core (1.3.1)
- lottie-ios (3.1.6)
- NSObject-SafeExpectations (0.0.4)
- "NSURL+IDN (0.4)"
- OCMock (3.6)
- OHHTTPStubs (8.0.0):
- OHHTTPStubs/Default (= 8.0.0)
- OHHTTPStubs/Core (8.0.0)
Expand All @@ -44,36 +44,36 @@ PODS:
- Specta (1.0.7)
- SVProgressHUD (2.2.5)
- UIDeviceIdentifier (1.4.0)
- WordPressKit (4.5.9-beta.2):
- WordPressKit (4.6.0):
- Alamofire (~> 4.8.0)
- CocoaLumberjack (~> 3.4)
- NSObject-SafeExpectations (= 0.0.3)
- NSObject-SafeExpectations (= 0.0.4)
- UIDeviceIdentifier (~> 1)
- WordPressShared (~> 1.8.13-beta)
- wpxmlrpc (= 0.8.4)
- WordPressShared (1.8.13):
- WordPressShared (~> 1.8.16)
- wpxmlrpc (= 0.8.5)
- WordPressShared (1.8.16):
- CocoaLumberjack (~> 3.4)
- FormatterKit/TimeIntervalFormatter (= 1.8.2)
- WordPressUI (1.4-beta.1)
- wpxmlrpc (0.8.4)
- WordPressUI (1.5.2)
- wpxmlrpc (0.8.5)

DEPENDENCIES:
- 1PasswordExtension (= 1.8.5)
- 1PasswordExtension (= 1.8.6)
- Alamofire (= 4.8)
- CocoaLumberjack (= 3.5.2)
- Expecta (= 1.0.6)
- GoogleSignIn (= 4.4.0)
- Gridicons (~> 0.15)
- lottie-ios (= 2.5.2)
- "NSURL+IDN (= 0.3)"
- Gridicons (~> 1.0)
- lottie-ios (= 3.1.6)
- "NSURL+IDN (= 0.4)"
- OCMock (~> 3.4)
- OHHTTPStubs (= 8.0.0)
- OHHTTPStubs/Swift (= 8.0.0)
- Specta (= 1.0.7)
- SVProgressHUD (= 2.2.5)
- WordPressKit (~> 4.5.9-beta)
- WordPressShared (~> 1.8.13)
- WordPressUI (~> 1.4-beta.1)
- WordPressKit (~> 4.6.0)
- WordPressShared (~> 1.8.16)
- WordPressUI (~> 1.5.2)

SPEC REPOS:
trunk:
Expand All @@ -100,28 +100,28 @@ SPEC REPOS:
- wpxmlrpc

SPEC CHECKSUMS:
1PasswordExtension: 0e95bdea64ec8ff2f4f693be5467a09fac42a83d
1PasswordExtension: f97cc80ae58053c331b2b6dc8843ba7103b33794
Alamofire: 3ec537f71edc9804815215393ae2b1a8ea33a844
CocoaLumberjack: 118bf4a820efc641f79fa487b75ed928dccfae23
Expecta: 3b6bd90a64b9a1dcb0b70aa0e10a7f8f631667d5
FormatterKit: 4b8f29acc9b872d5d12a63efb560661e8f2e1b98
GoogleSignIn: 7ff245e1a7b26d379099d3243a562f5747e23d39
GoogleToolboxForMac: b3553629623a3b1bff17f555e736cd5a6d95ad55
Gridicons: dc92efbe5fd60111d2e8ea051d84a60cca552abc
GTMSessionFetcher: 61bb0f61a4cb560030f1222021178008a5727a23
lottie-ios: 3fef45d3fabe63e3c7c2eb603dd64ddfffc73062
NSObject-SafeExpectations: b989b68a8a9b7b9f2b264a8b52ba9d7aab8f3129
"NSURL+IDN": 82355a0afd532fe1de08f6417c134b49b1a1c4b3
OCMock: 43565190abc78977ad44a61c0d20d7f0784d35ab
GoogleToolboxForMac: 800648f8b3127618c1b59c7f97684427630c5ea3
Gridicons: f032dbc3350f8648e0fabe3e531b72cf97d428a9
GTMSessionFetcher: cea130bbfe5a7edc8d06d3f0d17288c32ffe9925
lottie-ios: 85ce835dd8c53e02509f20729fc7d6a4e6645a0a
NSObject-SafeExpectations: ab8fe623d36b25aa1f150affa324e40a2f3c0374
"NSURL+IDN": afc873e639c18138a1589697c3add197fe8679ca
OCMock: 5ea90566be239f179ba766fd9fbae5885040b992
OHHTTPStubs: 9cbce6364bec557cc3439aa6bb7514670d780881
Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66
SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
UIDeviceIdentifier: 44f805037d21b94394821828f4fcaba34b38c2d0
WordPressKit: 54b1c041c59b871e91a331f24a2fb5d347e070b0
WordPressShared: fde9523bd00696fc1dfa45ed5299e16de111ebcc
WordPressUI: 35b144885c8e5817ba6874b68accc200bda61ee1
wpxmlrpc: 6ba55c773cfa27083ae4a2173e69b19f46da98e2
WordPressKit: 767cc17ae08894f73f08c852fe124c865a62fb3d
WordPressShared: 1bc316ed162f42af4e0fa2869437e9e28b532b01
WordPressUI: 70cc58a253c352330b23cd8fa6dd6a2021570e18
wpxmlrpc: 6a9bdd6ab9d1b159b384b0df0f3f39de9af4fecf

PODFILE CHECKSUM: c8429d9d1b129c0d3f037b246b2a63567bf0f654
PODFILE CHECKSUM: 0c5d1d0787a9afe633ecb5f3e47cde5666a6d0c7

COCOAPODS: 1.8.4
16 changes: 8 additions & 8 deletions WordPressAuthenticator.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WordPressAuthenticator"
s.version = "1.10.9"
s.version = "1.11.0"
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."

s.description = <<-DESC
Expand Down Expand Up @@ -30,16 +30,16 @@ Pod::Spec.new do |s|
s.static_framework = true # This is needed because GoogleSignIn vendors a static framework
s.header_dir = 'WordPressAuthenticator'

s.dependency '1PasswordExtension', '1.8.5'
s.dependency '1PasswordExtension', '1.8.6'
s.dependency 'Alamofire', '4.8'
s.dependency 'CocoaLumberjack', '~> 3.5'
s.dependency 'lottie-ios', '2.5.2'
s.dependency 'NSURL+IDN', '0.3'
s.dependency 'lottie-ios', '3.1.6'
s.dependency 'NSURL+IDN', '0.4'
s.dependency 'SVProgressHUD', '2.2.5'

s.dependency 'Gridicons', '~> 0.15'
s.dependency 'Gridicons', '~> 1.0'
s.dependency 'GoogleSignIn', '~> 4.4'
s.dependency 'WordPressUI', '~> 1.4-beta.1'
s.dependency 'WordPressKit', '~> 4.5.9-beta'
s.dependency 'WordPressShared', '~> 1.8.13-beta'
s.dependency 'WordPressUI', '~> 1.5.2'
s.dependency 'WordPressKit', '~> 4.6.0'
s.dependency 'WordPressShared', '~> 1.8.16'
end
12 changes: 12 additions & 0 deletions WordPressAuthenticator.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
CE30A2A722579F4100DF3CDA /* LoginUsernamePasswordViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE30A2A622579F4100DF3CDA /* LoginUsernamePasswordViewController.swift */; };
CE30A2A92257C60500DF3CDA /* WordPressOrgCredentials.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE30A2A82257C60500DF3CDA /* WordPressOrgCredentials.swift */; };
CE30A2AD2257CECC00DF3CDA /* AuthenticatorCredentials.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE30A2AC2257CECC00DF3CDA /* AuthenticatorCredentials.swift */; };
CEDE0D93242011E000CB3345 /* NSObject+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEDE0D92242011E000CB3345 /* NSObject+Helpers.swift */; };
CEDE0D952420121D00CB3345 /* UIStoryboard+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEDE0D942420121D00CB3345 /* UIStoryboard+Helpers.swift */; };
CEDE0D972420126900CB3345 /* UIViewController+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEDE0D962420126900CB3345 /* UIViewController+Helpers.swift */; };
E8AF6B9EF50902F2117DFAF9 /* Pods_WordPressAuthenticatorTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A441EC80D2B8D2209C2E228 /* Pods_WordPressAuthenticatorTests.framework */; };
FF629D9622393500004C4106 /* WordPressAuthenticator.podspec in Resources */ = {isa = PBXBuildFile; fileRef = FF629D9522393500004C4106 /* WordPressAuthenticator.podspec */; };
/* End PBXBuildFile section */
Expand Down Expand Up @@ -270,6 +273,9 @@
CE30A2A622579F4100DF3CDA /* LoginUsernamePasswordViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LoginUsernamePasswordViewController.swift; sourceTree = "<group>"; };
CE30A2A82257C60500DF3CDA /* WordPressOrgCredentials.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WordPressOrgCredentials.swift; sourceTree = "<group>"; };
CE30A2AC2257CECC00DF3CDA /* AuthenticatorCredentials.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AuthenticatorCredentials.swift; sourceTree = "<group>"; };
CEDE0D92242011E000CB3345 /* NSObject+Helpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSObject+Helpers.swift"; sourceTree = "<group>"; };
CEDE0D942420121D00CB3345 /* UIStoryboard+Helpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIStoryboard+Helpers.swift"; sourceTree = "<group>"; };
CEDE0D962420126900CB3345 /* UIViewController+Helpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+Helpers.swift"; sourceTree = "<group>"; };
E9414A95E29F3297555AC92B /* Pods-WordPressAuthenticator.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WordPressAuthenticator.debug.xcconfig"; path = "Pods/Target Support Files/Pods-WordPressAuthenticator/Pods-WordPressAuthenticator.debug.xcconfig"; sourceTree = "<group>"; };
FF475C5056EB60A277696BA9 /* Pods-WordPressAuthenticatorTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WordPressAuthenticatorTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-WordPressAuthenticatorTests/Pods-WordPressAuthenticatorTests.release.xcconfig"; sourceTree = "<group>"; };
FF629D9522393500004C4106 /* WordPressAuthenticator.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = WordPressAuthenticator.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
Expand Down Expand Up @@ -511,6 +517,9 @@
B56090EE208A527000399AE4 /* String+Underline.swift */,
B56090EC208A527000399AE4 /* WPStyleGuide+Login.swift */,
B5CDBED320B4714500BC1EF2 /* UIImage+Assets.swift */,
CEDE0D92242011E000CB3345 /* NSObject+Helpers.swift */,
CEDE0D942420121D00CB3345 /* UIStoryboard+Helpers.swift */,
CEDE0D962420126900CB3345 /* UIViewController+Helpers.swift */,
);
path = Extensions;
sourceTree = "<group>";
Expand Down Expand Up @@ -918,10 +927,12 @@
B56090E2208A4F9D00399AE4 /* WPNUXSecondaryButton.m in Sources */,
B56090E6208A4F9D00399AE4 /* WPNUXPrimaryButton.m in Sources */,
B5609135208A563800399AE4 /* LoginWPComViewController.swift in Sources */,
CEDE0D972420126900CB3345 /* UIViewController+Helpers.swift in Sources */,
B5609119208A555600399AE4 /* SiteInfoHeaderView.swift in Sources */,
B560913E208A563800399AE4 /* SigninEditingState.swift in Sources */,
B56090CF208A4F5400399AE4 /* NUXCollectionViewController.swift in Sources */,
1A21EE9822832BC300C940C6 /* WordPressComOAuthClientFacade+Swift.swift in Sources */,
CEDE0D952420121D00CB3345 /* UIStoryboard+Helpers.swift in Sources */,
B5ED7920207E993E00A8FD8C /* WPAuthenticatorLogging.m in Sources */,
B5609138208A563800399AE4 /* LoginSiteAddressViewController.swift in Sources */,
B560910B208A54F800399AE4 /* LoginFacade.m in Sources */,
Expand All @@ -931,6 +942,7 @@
3F550D5323DA4AC6007E5897 /* URLHandler.swift in Sources */,
98C9195B2308E3DA00A90E12 /* AppleAuthenticator.swift in Sources */,
B56090F9208A533200399AE4 /* WordPressAuthenticator+Events.swift in Sources */,
CEDE0D93242011E000CB3345 /* NSObject+Helpers.swift in Sources */,
020BE74A23B0BD2E007FE54C /* WordPressAuthenticatorDisplayImages.swift in Sources */,
B560913A208A563800399AE4 /* LoginLinkRequestViewController.swift in Sources */,
B560910C208A54F800399AE4 /* WordPressComOAuthClientFacade.m in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1130"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B5ED78F3207E976500A8FD8C"
BuildableName = "WordPressAuthenticator.framework"
BlueprintName = "WordPressAuthenticator"
ReferencedContainer = "container:WordPressAuthenticator.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -39,17 +48,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B5ED78F3207E976500A8FD8C"
BuildableName = "WordPressAuthenticator.framework"
BlueprintName = "WordPressAuthenticator"
ReferencedContainer = "container:WordPressAuthenticator.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -70,8 +68,6 @@
ReferencedContainer = "container:WordPressAuthenticator.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ import AuthenticationServices
trackOpenedLogin()
}

let storyboard = UIStoryboard(name: "Login", bundle: bundle)
let storyboard = Storyboard.login.instance
if let controller = storyboard.instantiateInitialViewController() {
if let childController = controller.children.first as? LoginPrologueViewController {
childController.loginFields.restrictToWPCom = restrictToWPCom
Expand All @@ -164,8 +164,7 @@ import AuthenticationServices
trackOpenedLogin()
}

let storyboard = UIStoryboard(name: "Login", bundle: bundle)
guard let controller = storyboard.instantiateViewController(withIdentifier: "emailEntry") as? LoginEmailViewController else {
guard let controller = LoginEmailViewController.instantiate(from: .login) else {
return
}

Expand Down Expand Up @@ -231,8 +230,7 @@ import AuthenticationServices
/// This allows the host app to configure the controller's features.
///
public class func signinForWPCom() -> LoginEmailViewController {
let storyboard = UIStoryboard(name: "Login", bundle: bundle)
guard let controller = storyboard.instantiateViewController(withIdentifier: "emailEntry") as? LoginEmailViewController else {
guard let controller = LoginEmailViewController.instantiate(from: .login) else {
fatalError()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public struct WordPressAuthenticatorStyle {

public let textFieldBackgroundColor: UIColor

// If not specified, falls back to viewControllerBackgroundColor.
public let buttonViewBackgroundColor: UIColor

/// Style: nav bar
///
public let navBarImage: UIImage
Expand All @@ -79,7 +82,7 @@ public struct WordPressAuthenticatorStyle {

/// Designated initializer
///
public init(primaryNormalBackgroundColor: UIColor, primaryNormalBorderColor: UIColor?, primaryHighlightBackgroundColor: UIColor, primaryHighlightBorderColor: UIColor?, secondaryNormalBackgroundColor: UIColor, secondaryNormalBorderColor: UIColor, secondaryHighlightBackgroundColor: UIColor, secondaryHighlightBorderColor: UIColor, disabledBackgroundColor: UIColor, disabledBorderColor: UIColor, primaryTitleColor: UIColor, secondaryTitleColor: UIColor, disabledTitleColor: UIColor, textButtonColor: UIColor, textButtonHighlightColor: UIColor, instructionColor: UIColor, subheadlineColor: UIColor, placeholderColor: UIColor, viewControllerBackgroundColor: UIColor, textFieldBackgroundColor: UIColor, navBarImage: UIImage, navBarBadgeColor: UIColor, prologueBackgroundColor: UIColor = WPStyleGuide.wordPressBlue(), prologueTitleColor: UIColor = .white, statusBarStyle: UIStatusBarStyle = .lightContent) {
public init(primaryNormalBackgroundColor: UIColor, primaryNormalBorderColor: UIColor?, primaryHighlightBackgroundColor: UIColor, primaryHighlightBorderColor: UIColor?, secondaryNormalBackgroundColor: UIColor, secondaryNormalBorderColor: UIColor, secondaryHighlightBackgroundColor: UIColor, secondaryHighlightBorderColor: UIColor, disabledBackgroundColor: UIColor, disabledBorderColor: UIColor, primaryTitleColor: UIColor, secondaryTitleColor: UIColor, disabledTitleColor: UIColor, textButtonColor: UIColor, textButtonHighlightColor: UIColor, instructionColor: UIColor, subheadlineColor: UIColor, placeholderColor: UIColor, viewControllerBackgroundColor: UIColor, textFieldBackgroundColor: UIColor, buttonViewBackgroundColor: UIColor? = nil, navBarImage: UIImage, navBarBadgeColor: UIColor, prologueBackgroundColor: UIColor = WPStyleGuide.wordPressBlue(), prologueTitleColor: UIColor = .white, statusBarStyle: UIStatusBarStyle = .lightContent) {
self.primaryNormalBackgroundColor = primaryNormalBackgroundColor
self.primaryNormalBorderColor = primaryNormalBorderColor
self.primaryHighlightBackgroundColor = primaryHighlightBackgroundColor
Expand All @@ -100,6 +103,7 @@ public struct WordPressAuthenticatorStyle {
self.placeholderColor = placeholderColor
self.viewControllerBackgroundColor = viewControllerBackgroundColor
self.textFieldBackgroundColor = textFieldBackgroundColor
self.buttonViewBackgroundColor = buttonViewBackgroundColor ?? viewControllerBackgroundColor
self.navBarImage = navBarImage
self.navBarBadgeColor = navBarBadgeColor
self.prologueBackgroundColor = prologueBackgroundColor
Expand Down
14 changes: 14 additions & 0 deletions WordPressAuthenticator/Extensions/NSObject+Helpers.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

import Foundation


// MARK - NSObject Helper Methods
//
extension NSObject {

/// Returns the receiver's classname as a string, not including the namespace.
///
class var classNameWithoutNamespaces: String {
return String(describing: self)
}
}
Loading