Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Removed Yinbi #271

Merged
merged 1 commit into from
Aug 3, 2021
Merged

Removed Yinbi #271

merged 1 commit into from
Aug 3, 2021

Conversation

oxtoacart
Copy link

@oxtoacart oxtoacart commented Aug 2, 2021

For getlantern/engineering#653. Although we mostly respect the yinbiEnabled setting from the pro-server, our account menu does not respect that flag. I confirmed with @atavism and @Derekf5 that we don't need to display anything Yinbi related in the application anymore, including popup ads, so I've removed everything Yinbi related.

Since this touches the plans/checkout flow, I tested purchasing using Stripe and confirmed that it works.

  • If you refactored existing code, have you tested the refactored functionality against the old version to make sure you didn't break anything?
  • Do the tests pass? Consistently?
  • Did this change improve test coverage?
  • Is the code in question being linted? If not, consider adding a linter step to CI. If yes, make sure the linter is happy.
  • Have you logged tickets for related technical debt with the label “techdebt”?

@oxtoacart oxtoacart requested a review from Crdzbird August 2, 2021 19:55
android:screenOrientation="portrait"
/>

<activity
Copy link
Author

Choose a reason for hiding this comment

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

Drive-by, this was unused anyway.

@@ -486,12 +485,6 @@ private void openPaymentProvider(final String email, final boolean bulkCodes) {
case "paymentwall":
activityClass = PaymentWallActivity_.class;
break;
case "bulk-codes":
Copy link
Author

Choose a reason for hiding this comment

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

Bulk-codes are for Yinbi only.

@@ -236,7 +235,7 @@ private String getFormattedPrice(Map<String, Long> price, boolean formatFloat) {
}
} else {
if (formatFloat) {
formattedPrice = String.valueOf(String.format(Locale.getDefault(), "%.2f", currencyPrice / 100f));
formattedPrice = String.format(Locale.getDefault(), "%.2f", currencyPrice / 100f);
Copy link
Author

Choose a reason for hiding this comment

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

Drive-by linter fix

@@ -116,7 +115,7 @@ public Integer numYears() {
public String formatRenewalBonusExpected(Context context) {
Integer bonusMonths = renewalBonusExpected.get("months");
Integer bonusDays = renewalBonusExpected.get("days");
List<String> bonusParts = new ArrayList();
List<String> bonusParts = new ArrayList<>();
Copy link
Author

Choose a reason for hiding this comment

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

Drive-by linter fix

@@ -57,7 +56,7 @@ public ProPlan(String id, Map<String, Long> price, Map<String, Long> priceWithou
this.id = id;
this.price = price;
this.priceWithoutTax = priceWithoutTax;
this.tax = new HashMap<String, Long>();
this.tax = new HashMap<>();
Copy link
Author

Choose a reason for hiding this comment

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

Drive-by linter fix

@@ -68,7 +67,7 @@ public ProPlan(String id, Map<String, Long> price, Map<String, Long> priceWithou
if (specificPriceWithoutTax == null) {
specificPriceWithoutTax = priceWithTax;
}
Long tax = priceWithTax - specificPriceWithoutTax;
long tax = priceWithTax - specificPriceWithoutTax;
Copy link
Author

Choose a reason for hiding this comment

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

Drive-by linter fix

@@ -265,7 +264,7 @@ public void formatCost() {
}

public String getFormatPriceWithBonus(Context context, boolean useNumber) {
String durationFormat = "";
String durationFormat;
Copy link
Author

Choose a reason for hiding this comment

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

Drive-by linter fix

Copy link

@Crdzbird Crdzbird left a comment

Choose a reason for hiding this comment

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

This was quite a enormous pr 🤯 luckily it was just elimination of files and updates of the classes that implement something of that deleted files, the app works fine and linter doesn't have any issue. So this is ready to go :)

@oxtoacart
Copy link
Author

Thanks @Crdzbird !

@oxtoacart oxtoacart merged commit 4dc0fee into main Aug 3, 2021
@oxtoacart oxtoacart deleted the ox/issue254 branch August 3, 2021 00:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants