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

feat: update leo annual ios product id #2659

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion services/skus/skus.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func skuNameByMobileName(subID string) (string, error) {
return "brave-leo-premium-year", nil

// iOS Leo Annual.
case "braveleo.yearly", "nightly.braveleo.yearly":
case "braveleo.yearly", "nightly.braveleo.yearly", "braveleo.yearly.2", "braveleo2.yearly":
return "brave-leo-premium-year", nil

// Android VPN Monthly.
Expand Down
12 changes: 12 additions & 0 deletions services/skus/skus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ func TestSKUNameByMobileName(t *testing.T) {
exp: tcExpected{sku: "brave-leo-premium-year"},
},

{
name: "ios_leo_annual_release_new",
given: "braveleo2.yearly",
exp: tcExpected{sku: "brave-leo-premium-year"},
},

{
name: "ios_leo_annual_release_new2",
given: "braveleo.yearly.2",
exp: tcExpected{sku: "brave-leo-premium-year"},
},

{
name: "android_vpn_monthly_release",
given: "brave.vpn.monthly",
Expand Down
Loading