Hide two months free text for playstore

This commit is contained in:
Neeraj Gupta 2023-06-29 16:58:59 +05:30
parent 796046bd9f
commit ac246ef51f
2 changed files with 9 additions and 1 deletions

View file

@ -128,6 +128,13 @@ class UpdateService {
return _packageInfo.packageName.startsWith("io.ente.photos.fdroid");
}
bool isPlayStoreFlavor() {
if (Platform.isIOS) {
return false;
}
return !isIndependentFlavor() && !isFdroidFlavor();
}
// getRateDetails returns details about the place
Tuple2<String, String> getRateDetails() {
if (isFdroidFlavor() || isIndependentFlavor()) {

View file

@ -13,6 +13,7 @@ import 'package:photos/models/billing_plan.dart';
import 'package:photos/models/subscription.dart';
import 'package:photos/models/user_details.dart';
import 'package:photos/services/billing_service.dart';
import "package:photos/services/update_service.dart";
import 'package:photos/services/user_service.dart';
import "package:photos/theme/colors.dart";
import "package:photos/theme/ente_theme.dart";
@ -405,7 +406,7 @@ class _StoreSubscriptionPageState extends State<StoreSubscriptionPage> {
],
),
),
_isFreePlanUser()
_isFreePlanUser() && !UpdateService.instance.isPlayStoreFlavor()
? Text(
S.of(context).twoMonthsFreeOnYearlyPlans,
style: getEnteTextTheme(context).miniMuted,