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

Fix PKAddress warnings #913

Merged
merged 5 commits into from
Mar 20, 2018
Merged

Fix PKAddress warnings #913

merged 5 commits into from
Mar 20, 2018

Conversation

bg-stripe
Copy link
Contributor

@bg-stripe bg-stripe commented Mar 20, 2018

r? @danj-stripe

Silences the deprecation warnings in STPAddress.h and adds a new objc installation test to catch regressions.

I also did some cleanup on the cocoapods installation projects:

  • renamed the directories _objc/_swift
  • updated to Xcode 9 project settings
  • turned on treat warnings as errors in the project + pods

//

#import "ViewController.h"
#import <Stripe/Stripe.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

I wasn't sure whether we wanted to use #import or @import - they both seemed to reproduce the warning. Is there a good reason to prefer one or the other here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think they're effectively identical – #import maps to @import if modules are enabled, which is on by default in new projects.

https://stackoverflow.com/a/18947634

@@ -220,7 +220,10 @@ extern STPContactField const STPContactFieldName;
@return The closest representation of the billing address requirement as
a PKAddressField value.
*/
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this should go before the documentation comment, build is failing because jazzy thinks these two methods are undocumented.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 fixed in da1cbea

@danj-stripe danj-stripe assigned bg-stripe and unassigned danj-stripe Mar 20, 2018
@bg-stripe bg-stripe removed their assignment Mar 20, 2018
Copy link
Contributor

@danj-stripe danj-stripe left a comment

Choose a reason for hiding this comment

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

Looks great!

@bg-stripe bg-stripe merged commit 3b82649 into master Mar 20, 2018
@bg-stripe bg-stripe deleted the bg-fix-pkaddress-warnings branch March 20, 2018 22:36
@bg-stripe
Copy link
Contributor Author

Fixes #912

csabol-stripe pushed a commit that referenced this pull request Mar 29, 2022
* Customize link inline sign up appearance

* Styleize region placeholder

* Change text color for legal view

* Update from PR feedback

* set font lastt

* One more little hack

* Call super and fix border color

* update snapshots

* update more snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants