Skip to content

Commit

Permalink
[auth] Bump version & hide import from gallery for external users (#4664
Browse files Browse the repository at this point in the history
)

## Description

## Tests
  • Loading branch information
ua741 authored Jan 11, 2025
2 parents 18f398f + df30a3e commit 9306a4d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion auth/lib/ui/home/home_empty_state.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:ente_auth/l10n/l10n.dart';
import 'package:ente_auth/services/auth_feature_flag.dart';
import 'package:ente_auth/theme/ente_theme.dart';
import 'package:ente_auth/ui/settings/data/import_page.dart';
import 'package:ente_auth/utils/navigation_util.dart';
Expand Down Expand Up @@ -52,7 +53,9 @@ class HomeEmptyStateWidget extends StatelessWidget {
),
),
const SizedBox(height: 18),
if (PlatformUtil.isMobile())
if (PlatformUtil.isMobile() &&
FeatureFlagService.instance
.isInternalUserOrDebugBuild())
SizedBox(
width: 400,
child: OutlinedButton(
Expand Down
4 changes: 3 additions & 1 deletion auth/lib/ui/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import 'package:ente_auth/models/code.dart';
import 'package:ente_auth/onboarding/model/tag_enums.dart';
import 'package:ente_auth/onboarding/view/common/tag_chip.dart';
import 'package:ente_auth/onboarding/view/setup_enter_secret_key_page.dart';
import 'package:ente_auth/services/auth_feature_flag.dart';
import 'package:ente_auth/services/preference_service.dart';
import 'package:ente_auth/services/user_service.dart';
import 'package:ente_auth/store/code_display_store.dart';
Expand Down Expand Up @@ -750,7 +751,8 @@ class _HomePageState extends State<HomePage> {
labelWidget: SpeedDialLabelWidget(context.l10n.scanAQrCode),
onTap: _redirectToScannerPage,
),
if (PlatformUtil.isMobile())
if (PlatformUtil.isMobile() &&
FeatureFlagService.instance.isInternalUserOrDebugBuild())
SpeedDialChild(
child: const Icon(Icons.image),
foregroundColor: Theme.of(context).colorScheme.fabForegroundColor,
Expand Down
2 changes: 1 addition & 1 deletion auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

name: ente_auth
description: ente two-factor authenticator
version: 4.2.3+423
version: 4.2.4+424
publish_to: none

environment:
Expand Down

0 comments on commit 9306a4d

Please sign in to comment.