π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[photos] Remove feature flags for shared albums in widget, guest view, and QR code sharing
Neerajdc2dc19559a1
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arbindex 86e93eff5d..771e6823fc 100644--- a/mobile/apps/photos/lib/l10n/intl_en.arb+++ b/mobile/apps/photos/lib/l10n/intl_en.arb@@ -237,6 +237,7 @@"shareWithNonenteUsers": "Share with non-Ente users","createPublicLink": "Create public link","sendLink": "Send link",+ "sendQrCode": "Send QR code","copyLink": "Copy link","linkHasExpired": "Link has expired","publicLinkEnabled": "Public link enabled",diff --git a/mobile/apps/photos/lib/services/collections_service.dart b/mobile/apps/photos/lib/services/collections_service.dartindex 4ff91ed7a0..1f8bd4fc6f 100644--- a/mobile/apps/photos/lib/services/collections_service.dart+++ b/mobile/apps/photos/lib/services/collections_service.dart@@ -535,7 +535,7 @@ class CollectionsService {Future<List<Collection>> getCollectionForWidgetSelection() async {final AlbumSortKey sortKey = localSettings.albumSortKey();final AlbumSortDirection sortDirection = localSettings.albumSortDirection();- final bool includeShared = flagService.widgetSharedAlbums;+ const bool includeShared = true;final List<Collection> collections = CollectionsService.instance.getCollectionsForUI(includedShared: includeShared);final bool hasFavorites = FavoritesService.instance.hasFavorites();diff --git a/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart b/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dartindex cd411bea0e..bc38a6e27f 100644--- a/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart+++ b/mobile/apps/photos/lib/ui/sharing/manage_links_widget.dart@@ -320,17 +320,17 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {);},isTopBorderRadiusRemoved: true,- isBottomBorderRadiusRemoved: flagService.internalUser,+ isBottomBorderRadiusRemoved: true,),- if (!url.isExpired && flagService.internalUser)+ if (!url.isExpired)DividerWidget(dividerType: DividerType.menu,bgColor: getEnteColorScheme(context).fillFaint,),- if (!url.isExpired && flagService.internalUser)+ if (!url.isExpired)MenuItemWidget(- captionedTextWidget: const CaptionedTextWidget(- title: "Send QR Code (i)",+ captionedTextWidget: CaptionedTextWidget(+ title: AppLocalizations.of(context).sendQrCode,makeTextBold: true,),leadingIcon: Icons.qr_code_outlined,diff --git a/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dartindex c9608a2367..63b90bb090 100644--- a/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart+++ b/mobile/apps/photos/lib/ui/sharing/share_collection_page.dart@@ -6,7 +6,6 @@ import "package:photos/extensions/user_extension.dart";import "package:photos/generated/l10n.dart";import "package:photos/models/api/collection/user.dart";import 'package:photos/models/collection/collection.dart';-import 'package:photos/service_locator.dart';import 'package:photos/services/collections_service.dart';import 'package:photos/theme/ente_theme.dart';import 'package:photos/ui/actions/collection/collection_sharing_actions.dart';@@ -217,17 +216,15 @@ class _ShareCollectionPageState extends State<ShareCollectionPage> {);},isTopBorderRadiusRemoved: true,- isBottomBorderRadiusRemoved: flagService.internalUser,+ isBottomBorderRadiusRemoved: true,),- if (flagService.internalUser)- DividerWidget(- dividerType: DividerType.menu,- bgColor: getEnteColorScheme(context).fillFaint,- ),- if (flagService.internalUser)- MenuItemWidget(- captionedTextWidget: const CaptionedTextWidget(- title: "Send QR Code (i)",+ DividerWidget(+ dividerType: DividerType.menu,+ bgColor: getEnteColorScheme(context).fillFaint,+ ),+ MenuItemWidget(+ captionedTextWidget: CaptionedTextWidget(+ title: AppLocalizations.of(context).sendQrCode,makeTextBold: true,),leadingIcon: Icons.qr_code_outlined,diff --git a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dartindex e7cf0fc1ea..2c58550361 100644--- a/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart+++ b/mobile/apps/photos/lib/ui/viewer/gallery/gallery_app_bar_widget.dart@@ -551,10 +551,10 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {? Icons.visibility_outlined: Icons.visibility_off_outlined,),- // Gallery Guest View option - Internal user only- if (flagService.albumGuestView && widget.collection != null)+ // Gallery Guest View option+ if (widget.collection != null)EntePopupMenuItem(- AppLocalizations.of(context).guestView + " (i)",+ AppLocalizations.of(context).guestView,value: AlbumPopupAction.galleryGuestView,iconWidget: SvgPicture.asset("assets/icons/guest_view_icon.svg",@@ -705,8 +705,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {editLocation();} else if (value == AlbumPopupAction.deleteLocation) {await deleteLocation();- } else if (value == AlbumPopupAction.galleryGuestView &&- flagService.albumGuestView) {+ } else if (value == AlbumPopupAction.galleryGuestView) {await _onGalleryGuestViewClick();} else {showToast(context, AppLocalizations.of(context).somethingWentWrong);@@ -1115,8 +1114,6 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {}Future<void> _onGalleryGuestViewClick() async {- if (!flagService.albumGuestView) return;-if (await LocalAuthentication().isDeviceSupported()) {// Get all files from the collection with proper sort orderlate final List<EnteFile> collectionFiles;diff --git a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dartindex fc85347b30..8c613d4560 100644--- a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart+++ b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart@@ -64,13 +64,9 @@ class FlagService {String get customDomain => flags.customDomain;- bool get albumGuestView => internalUser;-bool get textDetection => internalUser && Platform.isIOS;-- bool get addToAlbumFeature => internalUser;- bool get widgetSharedAlbums => internalUser;+ bool get addToAlbumFeature => internalUser;bool hasSyncedAccountFlags() {return _prefs.containsKey("remote_flags");diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txtindex 32e4807dd8..ad2d9d296d 100644--- a/mobile/apps/photos/scripts/internal_changes.txt+++ b/mobile/apps/photos/scripts/internal_changes.txt@@ -4,13 +4,13 @@- Prateek: Ensure comprehensive cache clearing on logout- Neeraj: Simplify location display in file info - show "Location" title with "Add location" chip- Laurens: Fix edge case bug in similar images cache when user hasn't indexed ML yet-- Neeraj: (i) Show shared albums in widget selection screen+- Neeraj: Show shared albums in widget selection screen- Neeraj: (i) Add to album option in file overflow menu and file details [#3291](https://github.com/ente-io/ente/discussions/3291)-- Neeraj: (i) Add collection-level guest view option in album overflow menu+- Neeraj: Add collection-level guest view option in album overflow menu- Neeraj: Fix IDN domain display in public URLs [#7079](https://github.com/ente-io/ente/issues/7079)- Neeraj: (i) Add allow joining album option in manage links- Neeraj: Fix lock error + improve logViewer- Laurens: text embedding caching for memories and discover-- Neeraj: (i) Option to send qr for link+- Neeraj: Option to send qr for link- Neeraj: (i) Debug option to enable logViewer- Neeraj: Potential fix for ios in-app payment