-
Notifications
You must be signed in to change notification settings - Fork 37
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
Privacy Pro Free Trials Core Implementation #1144
Conversation
d734685
to
b37b625
Compare
@federicocappelli, looping you in to be aware of these incoming changes |
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.
Just a cosmetic comment, other than that all looks solid.
enum StoreSubscriptionConstants { | ||
/// The suffix appended to subscription identifiers to indicate that the subscription includes a free trial. | ||
static let freeTrialSuffix = ".freetrial" | ||
} |
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.
Minor comment to that:
- I would drop the
.
from the value as it is semantic connector for identifier - It is called a suffix but technically not used as one:
- in l:56-57
.dev
is appended - elsewhere is checked with
id.contains(StoreSubscriptionConstants.freeTrialSuffix)
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.
Agree, thanks @miasma13. Have updated based on feedback.
"ios.subscription.1month\(StoreSubscriptionConstants.freeTrialSuffix).dev", | ||
"ios.subscription.1year\(StoreSubscriptionConstants.freeTrialSuffix).dev"], |
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.
Why the .dev
part? Couldn't we reuse the original names and append it with suffix? The multitude of subscriptions is not helpful so sticking to some consistency can be helpful.
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.
(Chatted with @miasma13 on MM). The staging subscriptions here are not ideally named. However, as the production subs too follow convention, we are ok with leaving this for now.
9bac893
to
b02485c
Compare
Please review the release process for BrowserServicesKit here.
Required:
Task/Issue URL: https://app.asana.com/0/0/1208767141940868/f
iOS PR: Privacy Pro Free Trials Core Implementation
macOS PR: Privacy Pro Free Trials Core Implementation (BSK Bump Only, No macOS Impacts)
What kind of version bump will this require?: Minor
Tech Design URL: https://app.asana.com/0/1206488453854252/1208916720468103/f
Description: This PR adds additional changes to support Privacy Pro Free Trials on iOS, specifically:
/confirm
backend APISteps to test this PR:
Internal references:
Software Engineering Expectations
Technical Design Template