Explorar o código

Merge pull request #794 from ente-io/hide_debug_section

Hide debug section for external users
Neeraj Gupta %!s(int64=2) %!d(string=hai) anos
pai
achega
a85b489caf
Modificáronse 2 ficheiros con 4 adicións e 2 borrados
  1. 3 1
      lib/ui/settings_page.dart
  2. 1 1
      pubspec.yaml

+ 3 - 1
lib/ui/settings_page.dart

@@ -5,6 +5,7 @@ import 'package:flutter/material.dart';
 import 'package:photos/core/configuration.dart';
 import 'package:photos/core/event_bus.dart';
 import 'package:photos/events/opened_settings_event.dart';
+import 'package:photos/services/feature_flag_service.dart';
 import 'package:photos/theme/colors.dart';
 import 'package:photos/theme/ente_theme.dart';
 import 'package:photos/ui/settings/about_section_widget.dart';
@@ -99,7 +100,8 @@ class SettingsPage extends StatelessWidget {
       const AboutSectionWidget(),
     ]);
 
-    if (hasLoggedIn) {
+    if (hasLoggedIn &&
+        FeatureFlagService.instance.isInternalUserOrDebugBuild()) {
       contents.addAll([sectionSpacing, const DebugSectionWidget()]);
     }
     contents.add(const AppVersionWidget());

+ 1 - 1
pubspec.yaml

@@ -12,7 +12,7 @@ description: ente photos application
 # Read more about iOS versioning at
 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
 
-version: 0.7.6+406
+version: 0.7.7+407
 
 environment:
   sdk: '>=2.17.0 <3.0.0'