-
Notifications
You must be signed in to change notification settings - Fork 4
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
Removed Yinbi #271
Conversation
android:screenOrientation="portrait" | ||
/> | ||
|
||
<activity |
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.
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": |
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.
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); |
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.
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<>(); |
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.
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<>(); |
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.
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; |
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.
Drive-by linter fix
@@ -265,7 +264,7 @@ public void formatCost() { | |||
} | |||
|
|||
public String getFormatPriceWithBonus(Context context, boolean useNumber) { | |||
String durationFormat = ""; | |||
String durationFormat; |
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.
Drive-by linter fix
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 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 :)
Thanks @Crdzbird ! |
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.