π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Enable local backup for all users via feature flag
Prateek Sunal9f13dd7b6aae
diff --git a/mobile/apps/auth/lib/services/flagservice.dart b/mobile/apps/auth/lib/services/flagservice.dartindex 830e430aef..e20ee3aa03 100644--- a/mobile/apps/auth/lib/services/flagservice.dart+++ b/mobile/apps/auth/lib/services/flagservice.dart@@ -4,14 +4,18 @@ import 'package:flutter/foundation.dart';class FeatureFlagService {static bool isInternalUserOrDebugBuild() {if (kDebugMode) return true;-+final String? email = Configuration.instance.getEmail();final userID = Configuration.instance.getUserID();-+if (email == null || userID == null) {return false;}-+return email.endsWith("@ente.io") || (userID <= 6);}++ static bool isLocalBackupEnabled() {+ return true;+ }}diff --git a/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dart b/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dartindex a4bb7aad2e..a1faf00489 100644--- a/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dart+++ b/mobile/apps/auth/lib/ui/settings/data/data_section_widget.dart@@ -92,11 +92,11 @@ class DataSectionWidget extends StatelessWidget {);},),- if (FeatureFlagService.isInternalUserOrDebugBuild()) ...[+ if (FeatureFlagService.isLocalBackupEnabled()) ...[sectionOptionSpacing,MenuItemWidget(captionedTextWidget: CaptionedTextWidget(- title: "${l10n.localBackupSidebarTitle}(i)",+ title: l10n.localBackupSidebarTitle,),pressedColor: getEnteColorScheme(context).fillFaint,trailingIcon: Icons.chevron_right_outlined,diff --git a/mobile/apps/auth/scripts/internal_changes.txt b/mobile/apps/auth/scripts/internal_changes.txtindex 2f3905971b..e8f5e6c830 100644--- a/mobile/apps/auth/scripts/internal_changes.txt+++ b/mobile/apps/auth/scripts/internal_changes.txt@@ -1,4 +1,5 @@-- Prateek: Automatic local backup feature - creates one backup per day when app is opened, retains up to 5 backups, UI improvements (fixed spinner during toggle, updated layout and spacing, renamed "Change folder" to "Set backup folder", restricted max width for settings pages, fixed backup type when changing folder)+- Prateek: Automatic local backup feature - creates one backup per day when app is opened, retains up to 5 backups, UI improvements (fixed spinner during toggle, updated layout and spacing, renamed "Change folder" to "Set backup folder", fixed backup type when changing folder)+- Prateek: Restricted max width (700px) for settings pages and centered horizontally- Prateek: Fix toggle color/styling in local backup settings- Prateek: Add new onboarding, update button radius, update tags style- ExtendedGuru4883: Quick Settings tile for android