Backup before removing hiddify references

This commit is contained in:
Hiddify User
2026-01-15 12:28:40 +03:00
parent f54603d129
commit 36d9e31236
231 changed files with 6648 additions and 1832 deletions

View File

@@ -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;
},