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
Added explicit parameter name to checkTrialOrIntroDiscountEligibility
for consistency
#1362
Added explicit parameter name to checkTrialOrIntroDiscountEligibility
for consistency
#1362
Conversation
This will require a minor version bump ( |
994fcac
to
f162613
Compare
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!
This would break compilation, right? If so it requires a major bump, minors are for new APIs. I realize that Xcode provides an auto-fix it, but I still think this could be a surprise to developers who upgrade to 4.1 without expecting compilation to break, or who have their CI set up to automatically update to the latest minor |
Oh duh of course. I think there's 3 options then:
|
yeah a deprecation with an auto-fix it seems solid to me 👍 |
f162613
to
2b9f450
Compare
// Deprecations.swift | ||
// | ||
// Created by Nacho Soto on 3/8/22. | ||
|
||
import Foundation | ||
import StoreKit | ||
|
||
// swiftlint:disable line_length missing_docs |
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.
I've created this similarly to Obsoletions.swift
where we can put all these.
I think the swiftlint:disable
helps, we could have probably done the same in Obsoletions.swift
. Easier to read with long lines instead of breaking every platform, and we don't actually want to document these. What do you all think?
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.
yeah, good call 👍
2b9f450
to
881e8fd
Compare
// Deprecations.swift | ||
// | ||
// Created by Nacho Soto on 3/8/22. | ||
|
||
import Foundation | ||
import StoreKit | ||
|
||
// swiftlint:disable line_length missing_docs |
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.
yeah, good call 👍
881e8fd
to
db4cc3d
Compare
…y` for consistency Fixes [CF-287] Now we have `checkTrialOrIntroDiscountEligibility(product:)` and `checkTrialOrIntroDiscountEligibility(productIdentifiers:)`
dffa84a
to
8774bb7
Compare
Fixes CF-287
Now we have
checkTrialOrIntroDiscountEligibility(product:)
andcheckTrialOrIntroDiscountEligibility(productIdentifiers:)