Skip to content

Support new WordPressAuthenticator configuration and API methods#9714

Merged
mindgraffiti merged 19 commits intodevelopfrom
feature/wpauth-compatibility
Jul 11, 2018
Merged

Support new WordPressAuthenticator configuration and API methods#9714
mindgraffiti merged 19 commits intodevelopfrom
feature/wpauth-compatibility

Conversation

@mindgraffiti
Copy link
Copy Markdown
Contributor

@mindgraffiti mindgraffiti commented Jul 6, 2018

This task allows WordPress-iOS to support the new configuration and API method changes found in wordpress-mobile/WordPressAuthenticator-iOS#10

To test login changes

  1. Clean project
  2. pod install
  3. Run project

Expected Behavior
There should be no changes to the Login UI in WordPress-iOS. If there are, then a style definition was incorrectly applied or incorrectly defined in WordPressAuthenticator-iOS.

To test Aztec FancyAlert prompt changes

  1. Revert the HACK2 commit
  2. pod install
  3. Run project
  4. Go to a test blog or throwaway blog account
  5. Attempt to write a post
  6. A "confirm email" prompt should appear

Expected Behavior
The confirm email prompt buttons should remain styled the same as they were before.

Before changes:

After changes:
after copy

@mindgraffiti mindgraffiti added this to the 10.5 milestone Jul 6, 2018
@mindgraffiti mindgraffiti self-assigned this Jul 6, 2018
google_id = value
elsif k == "GOOGLE_LOGIN_SERVER_ID"
google_login_server = value
elsif k == "GOOGLE_AUTH_SCHEME"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be GOOGLE_LOGIN_SCHEME_ID

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

Copy link
Copy Markdown
Contributor

@nheagy nheagy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great.

I've got two minor comments below, and one more tweak to make the buttons the same as before. Looks like shadows/borders and corner radius changed just a bit:

button shadow differences

Podfile Outdated
pod 'WordPress-Aztec-iOS', '1.0.0-beta.22'
pod 'WordPress-Editor-iOS', '1.0.0-beta.22'
pod 'WordPressUI', '1.0.4'
pod 'WordPressUI', '~> 1.0'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This project doesn't use ~>. A a specific version is preferred (in this case 1.0.5?).

At least that's been the guideline before we broke out the separate pods…

if ([WordPressAuthenticator isGoogleAuthURLWithUrl:url
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
annotation:options[UIApplicationOpenURLOptionsAnnotationKey]]) {
if ([WordPressAuthenticator.shared handleGoogleAuthUrl:url sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] annotation:options[UIApplicationOpenURLOptionsAnnotationKey]]) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we leave this broken onto multiple lines?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️

@mindgraffiti
Copy link
Copy Markdown
Contributor Author

Tweaked the corner radius to match the same size as the original design. Per p1531239322000162-slack-C6H8C3G23, I'm going with the stronger shadow, offset height 2.

Tweaked the font styling - I found the original inherited font settings for the titleLabel.

offset2 copy

Copy link
Copy Markdown
Contributor

@nheagy nheagy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

🎉

@mindgraffiti
Copy link
Copy Markdown
Contributor Author

Hound is stuck. rake lint in command line produced no errors. Merging.

@mindgraffiti mindgraffiti merged commit 2f6b288 into develop Jul 11, 2018
@mindgraffiti mindgraffiti deleted the feature/wpauth-compatibility branch July 11, 2018 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants