-
Notifications
You must be signed in to change notification settings - Fork 295
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
Deprecation Lines for BTPayPalNativeCheckout Module #1341
Conversation
37fdd07
to
1a51dd5
Compare
CHANGELOG.md
Outdated
* BraintreePayPalNativeCheckout | ||
* Add deprecated warning in public classes and methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* BraintreePayPalNativeCheckout | |
* Add deprecated warning in public classes and methods | |
* BraintreePayPalNativeCheckout (DEPRECATED) | |
* **Note:** This module is deprecated and will be removed in a future version of the SDK | |
* Add deprecated warning message to all public classes and methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed here: 59485d6
@@ -2,6 +2,7 @@ import Foundation | |||
import UIKit | |||
import BraintreePayPalNativeCheckout | |||
|
|||
@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is our demo app, we don't need a deprecation message here, just in the public classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but I got lint errors from referencing MXO classes here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have a linter on Braintree. Do you mean Cocoapods pod lib lint
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. I think so. I saw a cocoapods test failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/braintree/braintree_ios/actions/runs/9614991255/job/26521134948
Oh maybe it was just the other non public classes and protocols that was causing the error.
I know on PPCP, I had failure without annotation on demo app files, so I conflated the two things.
I'll delete that line, I do see the lint warnings locally without that line there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok without the line there! Are we ok with the lint warning here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed here: 991982b
@@ -37,6 +39,7 @@ import PayPalCheckout | |||
self.nativeCheckoutProvider = nativeCheckoutProvider | |||
} | |||
|
|||
@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should move this one above the docstring instead of above the mark
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch! Addressed here: 6e51baf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Summary of changes
@available(*, deprecated, message: "BraintreePayPalNativeCheckout Module is deprecated, use BraintreePayPal Module instead") for all public classes and enums for BraintreePayPalNativeCheckout module
Checklist
Authors