Backup before removing hiddify references
This commit is contained in:
@@ -20,7 +20,8 @@ bool _testCrashReport = false;
|
||||
class AnalyticsController extends _$AnalyticsController with AppLogger {
|
||||
@override
|
||||
Future<bool> build() async {
|
||||
return _preferences.getBool(enableAnalyticsPrefKey) ?? true;
|
||||
// UMBRIX: По умолчанию ВЫКЛЮЧЕНО для приватности
|
||||
return _preferences.getBool(enableAnalyticsPrefKey) ?? false;
|
||||
}
|
||||
|
||||
SharedPreferences get _preferences => ref.read(sharedPreferencesProvider).requireValue;
|
||||
@@ -45,13 +46,21 @@ class AnalyticsController extends _$AnalyticsController with AppLogger {
|
||||
options.environment = env.name;
|
||||
options.dist = appInfo.release.name;
|
||||
options.debug = kDebugMode;
|
||||
|
||||
// UMBRIX: Только fatal crashes, никакой аналитики
|
||||
options.enableNativeCrashHandling = true;
|
||||
options.enableNdkScopeSync = true;
|
||||
// options.attachScreenshot = true;
|
||||
|
||||
// UMBRIX: Отключаем всю трассировку и слежку
|
||||
options.tracesSampleRate = 0.0; // Было 0.20
|
||||
options.enableUserInteractionTracing = false; // Было true
|
||||
options.enableAutoPerformanceTracing = false;
|
||||
options.attachScreenshot = false;
|
||||
options.attachViewHierarchy = false;
|
||||
|
||||
// UMBRIX: Максимальная анонимизация
|
||||
options.serverName = "";
|
||||
options.attachThreads = true;
|
||||
options.tracesSampleRate = 0.20;
|
||||
options.enableUserInteractionTracing = true;
|
||||
options.attachThreads = false; // Было true
|
||||
options.addIntegration(sentryLogger);
|
||||
options.beforeSend = sentryBeforeSend;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user