From 07d15ca920faa71d40464e5029e69296dce1754c Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Sat, 23 Dec 2023 11:01:48 +0330 Subject: [PATCH 1/5] Fix bugs --- lib/bootstrap.dart | 3 +- lib/core/analytics/analytics_controller.dart | 72 +++++++++++--------- lib/features/common/general_pref_tiles.dart | 6 +- lib/features/intro/widget/intro_page.dart | 4 +- 4 files changed, 47 insertions(+), 38 deletions(-) diff --git a/lib/bootstrap.dart b/lib/bootstrap.dart index 7cafdc82..16b0f8b7 100644 --- a/lib/bootstrap.dart +++ b/lib/bootstrap.dart @@ -65,7 +65,8 @@ Future lazyBootstrap( () => container.read(sharedPreferencesProvider.future), ); - final enableAnalytics = container.read(analyticsControllerProvider); + final enableAnalytics = + await container.read(analyticsControllerProvider.future); if (enableAnalytics) { await _init( "analytics", diff --git a/lib/core/analytics/analytics_controller.dart b/lib/core/analytics/analytics_controller.dart index e9157b5c..9c8e6948 100644 --- a/lib/core/analytics/analytics_controller.dart +++ b/lib/core/analytics/analytics_controller.dart @@ -19,7 +19,7 @@ bool _testCrashReport = false; @Riverpod(keepAlive: true) class AnalyticsController extends _$AnalyticsController with AppLogger { @override - bool build() { + Future build() async { return _preferences.getBool(enableAnalyticsPrefKey) ?? true; } @@ -27,41 +27,47 @@ class AnalyticsController extends _$AnalyticsController with AppLogger { ref.read(sharedPreferencesProvider).requireValue; Future enableAnalytics() async { - loggy.debug("enabling analytics"); - if (!state) { - await _preferences.setBool(enableAnalyticsPrefKey, true); + if (state case AsyncData(value: final enabled)) { + loggy.debug("enabling analytics"); + state = const AsyncLoading(); + if (!enabled) { + await _preferences.setBool(enableAnalyticsPrefKey, true); + } + + final env = ref.read(environmentProvider); + final appInfo = await ref.read(appInfoProvider.future); + final dsn = !kDebugMode || _testCrashReport ? Environment.sentryDSN : ""; + final sentryLogger = SentryLoggyIntegration(); + LoggerController.instance.addPrinter("analytics", sentryLogger); + + await SentryFlutter.init( + (options) { + options.dsn = dsn; + options.environment = env.name; + options.dist = appInfo.release.name; + options.debug = kDebugMode; + options.enableNativeCrashHandling = true; + options.enableNdkScopeSync = true; + options.attachThreads = true; + options.tracesSampleRate = 0.20; + options.enableUserInteractionTracing = true; + options.addIntegration(sentryLogger); + options.beforeSend = sentryBeforeSend; + }, + ); + + state = const AsyncData(true); } - - final env = ref.read(environmentProvider); - final appInfo = await ref.read(appInfoProvider.future); - final dsn = !kDebugMode || _testCrashReport ? Environment.sentryDSN : ""; - final sentryLogger = SentryLoggyIntegration(); - LoggerController.instance.addPrinter("analytics", sentryLogger); - - await SentryFlutter.init( - (options) { - options.dsn = dsn; - options.environment = env.name; - options.dist = appInfo.release.name; - options.debug = kDebugMode; - options.enableNativeCrashHandling = true; - options.enableNdkScopeSync = true; - options.attachThreads = true; - options.tracesSampleRate = 0.20; - options.enableUserInteractionTracing = true; - options.addIntegration(sentryLogger); - options.beforeSend = sentryBeforeSend; - }, - ); - - state = true; } Future disableAnalytics() async { - loggy.debug("disabling analytics"); - await _preferences.setBool(enableAnalyticsPrefKey, false); - await Sentry.close(); - LoggerController.instance.removePrinter("analytics"); - state = false; + if (state case AsyncData()) { + loggy.debug("disabling analytics"); + state = const AsyncLoading(); + await _preferences.setBool(enableAnalyticsPrefKey, false); + await Sentry.close(); + LoggerController.instance.removePrinter("analytics"); + state = const AsyncData(false); + } } } diff --git a/lib/features/common/general_pref_tiles.dart b/lib/features/common/general_pref_tiles.dart index bd202c82..8d67c725 100644 --- a/lib/features/common/general_pref_tiles.dart +++ b/lib/features/common/general_pref_tiles.dart @@ -104,7 +104,7 @@ class EnableAnalyticsPrefTile extends HookConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final t = ref.watch(translationsProvider); - final autoReport = ref.watch(analyticsControllerProvider); + final enabled = ref.watch(analyticsControllerProvider).requireValue; return SwitchListTile( title: Text(t.settings.general.enableAnalytics), @@ -113,12 +113,12 @@ class EnableAnalyticsPrefTile extends HookConsumerWidget { style: Theme.of(context).textTheme.bodySmall, ), secondary: const Icon(Icons.bug_report), - value: autoReport, + value: enabled, onChanged: (value) async { if (onChanged != null) { return onChanged!(value); } - if (autoReport) { + if (enabled) { await ref .read(analyticsControllerProvider.notifier) .disableAnalytics(); diff --git a/lib/features/intro/widget/intro_page.dart b/lib/features/intro/widget/intro_page.dart index e08ba753..4880b3b3 100644 --- a/lib/features/intro/widget/intro_page.dart +++ b/lib/features/intro/widget/intro_page.dart @@ -73,7 +73,9 @@ class IntroPage extends HookConsumerWidget with PresLogger { onPressed: () async { if (isStarting.value) return; isStarting.value = true; - if (!ref.read(analyticsControllerProvider)) { + if (!ref + .read(analyticsControllerProvider) + .requireValue) { loggy.info("disabling analytics per user request"); try { await ref From 31c4d1b7443fcac60dcc81cab1b358c42d0ef0e9 Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Sat, 23 Dec 2023 11:04:31 +0330 Subject: [PATCH 2/5] Update core (sing-box v1.7.6) --- dependencies.properties | 2 +- libcore | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dependencies.properties b/dependencies.properties index 8b4083da..79900b7c 100644 --- a/dependencies.properties +++ b/dependencies.properties @@ -1 +1 @@ -core.version=0.9.1 \ No newline at end of file +core.version=0.9.2 \ No newline at end of file diff --git a/libcore b/libcore index 8e9d5239..540c736c 160000 --- a/libcore +++ b/libcore @@ -1 +1 @@ -Subproject commit 8e9d5239f49a7b452cb4c25121f3e3826e22e0a5 +Subproject commit 540c736cc1857099da7d05cb2d7398a9d06e7f75 From 7251c16c28e32adc7cb9279932ee5d512baafc52 Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Sat, 23 Dec 2023 11:26:48 +0330 Subject: [PATCH 3/5] Update dependencies --- ios/Podfile.lock | 20 +++++++-------- macos/Podfile.lock | 14 +++++----- pubspec.lock | 64 +++++++++++++++++++++++----------------------- pubspec.yaml | 42 +++++++++++++++--------------- 4 files changed, 70 insertions(+), 70 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 46b6f3d0..91f3f34c 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -6,7 +6,7 @@ PODS: - Flutter (1.0.0) - flutter_native_splash (0.0.1): - Flutter - - GoogleDataTransport (9.2.5): + - GoogleDataTransport (9.3.0): - GoogleUtilities/Environment (~> 7.7) - nanopb (< 2.30910.0, >= 2.30908.0) - PromisesObjC (< 3.0, >= 1.2) @@ -70,13 +70,13 @@ PODS: - PromisesObjC (2.3.1) - protocol_handler (0.0.1): - Flutter - - Sentry/HybridSDK (8.15.2): - - SentryPrivate (= 8.15.2) + - Sentry/HybridSDK (8.17.2): + - SentryPrivate (= 8.17.2) - sentry_flutter (0.0.1): - Flutter - FlutterMacOS - - Sentry/HybridSDK (= 8.15.2) - - SentryPrivate (8.15.2) + - Sentry/HybridSDK (= 8.17.2) + - SentryPrivate (8.17.2) - share_plus (0.0.1): - Flutter - shared_preferences_foundation (0.0.1): @@ -166,7 +166,7 @@ SPEC CHECKSUMS: device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6 Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 flutter_native_splash: 52501b97d1c0a5f898d687f1646226c1f93c56ef - GoogleDataTransport: 54dee9d48d14580407f8f5fbf2f496e92437a2f2 + GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe GoogleMLKit: 2bd0dc6253c4d4f227aad460f69215a504b2980e GoogleToolboxForMac: 8bef7c7c5cf7291c687cf5354f39f9db6399ad34 GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34 @@ -182,9 +182,9 @@ SPEC CHECKSUMS: path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 protocol_handler: ae9efcf3b307f3fdffcd9d5252775b9f7d9f0d09 - Sentry: 6f5742b4c47c17c9adcf265f6f328cf4a0ed1923 - sentry_flutter: 2c309a1d4b45e59d02cfa15795705687f1e2081b - SentryPrivate: b2f7996f37781080f04a946eb4e377ff63c64195 + Sentry: 64a9f9c3637af913adcf53deced05bbe452d1410 + sentry_flutter: 57912cf425e09398bdf47f38842a1fcb9836f1be + SentryPrivate: 024c6fed507ac39ae98e6d087034160f942920d5 share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 sqlite3: 6e2d4a4879854d0ec86b476bf3c3e30870bac273 @@ -193,4 +193,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 70f411ab18983c65d4dc48b9a20148f13632ec38 -COCOAPODS: 1.14.2 +COCOAPODS: 1.14.3 diff --git a/macos/Podfile.lock b/macos/Podfile.lock index ef91338c..3f1ccc2a 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -15,13 +15,13 @@ PODS: - FlutterMacOS - screen_retriever (0.0.1): - FlutterMacOS - - Sentry/HybridSDK (8.15.2): - - SentryPrivate (= 8.15.2) + - Sentry/HybridSDK (8.17.2): + - SentryPrivate (= 8.17.2) - sentry_flutter (0.0.1): - Flutter - FlutterMacOS - - Sentry/HybridSDK (= 8.15.2) - - SentryPrivate (8.15.2) + - Sentry/HybridSDK (= 8.17.2) + - SentryPrivate (8.17.2) - share_plus (0.0.1): - FlutterMacOS - shared_preferences_foundation (0.0.1): @@ -113,9 +113,9 @@ SPEC CHECKSUMS: path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943 protocol_handler: 587e1caf6c0b92ce351ab14081968dae49cb8cc6 screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38 - Sentry: 6f5742b4c47c17c9adcf265f6f328cf4a0ed1923 - sentry_flutter: 2c309a1d4b45e59d02cfa15795705687f1e2081b - SentryPrivate: b2f7996f37781080f04a946eb4e377ff63c64195 + Sentry: 64a9f9c3637af913adcf53deced05bbe452d1410 + sentry_flutter: 57912cf425e09398bdf47f38842a1fcb9836f1be + SentryPrivate: 024c6fed507ac39ae98e6d087034160f942920d5 share_plus: 76dd39142738f7a68dd57b05093b5e8193f220f7 shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126 sqlite3: 6e2d4a4879854d0ec86b476bf3c3e30870bac273 diff --git a/pubspec.lock b/pubspec.lock index b98fcfc0..39c08520 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -13,10 +13,10 @@ packages: dependency: "direct main" description: name: accessibility_tools - sha256: "0a16adc8dfa3a7ebd38775135d86443011a65d4ecbb438913e4992b5d29135fe" + sha256: deca88d9f181ad6fdd12df9c5fa952c763264da14336ca1c0e4124525725b174 url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.1" analyzer: dependency: transitive description: @@ -357,18 +357,18 @@ packages: dependency: "direct main" description: name: drift - sha256: e27a96acab5686c5b4ae38fbe8a05e76c37411bd15ae35497dac9c404111b5ec + sha256: "05363b695885c72036ed5c76287125bfc6f1deda20cb3aa044a09fe22792f81b" url: "https://pub.dev" source: hosted - version: "2.14.0" + version: "2.14.1" drift_dev: dependency: "direct dev" description: name: drift_dev - sha256: b2f9a29aa4b40379e6836646555dc793d827bfb597a380f3c7d50d2781413472 + sha256: "50c14b8248d133d36b41c1b08ceed138be869b5b98ccaf3af16c9b88c7adc54e" url: "https://pub.dev" source: hosted - version: "2.14.0" + version: "2.14.1" equatable: dependency: transitive description: @@ -495,10 +495,10 @@ packages: dependency: "direct main" description: name: flutter_native_splash - sha256: c4d899312b36e7454bedfd0a4740275837b99e532d81c8477579d8183db1de6c + sha256: "141b20f15a2c4fe6e33c49257ca1bc114fc5c500b04fcbc8d75016bb86af672f" url: "https://pub.dev" source: hosted - version: "2.3.6" + version: "2.3.8" flutter_riverpod: dependency: transitive description: @@ -537,10 +537,10 @@ packages: dependency: "direct dev" description: name: freezed - sha256: "21bf2825311de65501d22e563e3d7605dff57fb5e6da982db785ae5372ff018a" + sha256: "6c5031daae12c7072b3a87eff98983076434b4889ef2a44384d0cae3f82372ba" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "2.4.6" freezed_annotation: dependency: "direct main" description: @@ -585,18 +585,18 @@ packages: dependency: "direct main" description: name: go_router - sha256: c247a4f76071c3b97bb5ae8912968870d5565644801c5e09f3bc961b4d874895 + sha256: ca7e4a2249f96773152f1853fa25933ac752495cdd7fdf5dafb9691bd05830fd url: "https://pub.dev" source: hosted - version: "12.1.1" + version: "13.0.0" go_router_builder: dependency: "direct dev" description: name: go_router_builder - sha256: a4820cf40c647d674aa9305cdac2eaa6d03a795bb8f6b30c0469939417f7c4d8 + sha256: c1a643f7efafe01ac0a19be5297e414c5f65aede38b83b203f7f420d8c911471 url: "https://pub.dev" source: hosted - version: "2.3.4" + version: "2.4.0" graphs: dependency: transitive description: @@ -761,10 +761,10 @@ packages: dependency: "direct dev" description: name: lint - sha256: "77b3777e8e9adca8e942da1e835882ae3248dfa00488a2ebbdbc1f1a4aa3f4a7" + sha256: d758a5211fce7fd3f5e316f804daefecdc34c7e53559716125e6da7388ae8565 url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.3.0" logging: dependency: transitive description: @@ -1017,10 +1017,10 @@ packages: dependency: "direct main" description: name: protocol_handler - sha256: be85285f5cdc2541bb5ae5368f1c9924eeaae8d28e74c7235b7cd2c02521d760 + sha256: fb1882bd6cf767114f46b4708d1794fcd662e0a9b9b4512519adeaff3f931d7d url: "https://pub.dev" source: hosted - version: "0.1.5" + version: "0.1.6" pub_semver: dependency: transitive description: @@ -1145,10 +1145,10 @@ packages: dependency: transitive description: name: sentry - sha256: e7ded42974bac5f69e4ca4ddc57d30499dd79381838f24b7e8fd9aa4139e7b79 + sha256: "89e426587b0879e53c46a0aae0eb312696d9d2d803ba14b252a65cc24b1416a2" url: "https://pub.dev" source: hosted - version: "7.13.2" + version: "7.14.0" sentry_dart_plugin: dependency: "direct main" description: @@ -1161,10 +1161,10 @@ packages: dependency: "direct main" description: name: sentry_flutter - sha256: d6f55ec7a1f681784165021f749007712a72ff57eadf91e963331b6ae326f089 + sha256: fd089ee4e75a927be037c56815a0a54af5a519f52b803a5ffecb589bb36e2401 url: "https://pub.dev" source: hosted - version: "7.13.2" + version: "7.14.0" share_plus: dependency: "direct main" description: @@ -1270,26 +1270,26 @@ packages: dependency: "direct main" description: name: slang - sha256: fe73e995287db77a32ef5a4ab8247bd20adc7a27ba2a4ba373a8132164eba654 + sha256: "77fd99f7b0da15e671ef0289b24a0a63e74f693c58a0ca54111388e4c0ddb1dd" url: "https://pub.dev" source: hosted - version: "3.26.1" + version: "3.28.0" slang_build_runner: dependency: "direct dev" description: name: slang_build_runner - sha256: "72364adbb8d682b48b72402fd67f84e1b62fd96424eae98477a8fe58faec280c" + sha256: "387a3d569da4490b1fffbf31f203021fbfd34f15228d83e14a0f40bc940966fa" url: "https://pub.dev" source: hosted - version: "3.26.1" + version: "3.28.0" slang_flutter: dependency: "direct main" description: name: slang_flutter - sha256: df1d6e5a7237028bcf94f7401d575fdfee8c9ca066b3e9a02acdcd5096e2a25a + sha256: "57817bb15553bb5df37aed3bac497286bdd8c2eab6763f4de6815efe2c0becee" url: "https://pub.dev" source: hosted - version: "3.26.1" + version: "3.28.0" sliver_tools: dependency: "direct main" description: @@ -1502,10 +1502,10 @@ packages: dependency: "direct main" description: name: url_launcher - sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba + sha256: e9aa5ea75c84cf46b3db4eea212523591211c3cf2e13099ee4ec147f54201c86 url: "https://pub.dev" source: hosted - version: "6.2.1" + version: "6.2.2" url_launcher_android: dependency: transitive description: @@ -1566,10 +1566,10 @@ packages: dependency: "direct main" description: name: uuid - sha256: df5a4d8f22ee4ccd77f8839ac7cb274ebc11ef9adcce8b92be14b797fe889921 + sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" url: "https://pub.dev" source: hosted - version: "4.2.1" + version: "4.2.2" vclibs: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index f2751eea..450c1afe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -13,17 +13,17 @@ dependencies: flutter_localizations: sdk: flutter intl: ^0.18.1 - slang: ^3.25.0 - slang_flutter: ^3.25.0 + slang: ^3.28.0 + slang_flutter: ^3.28.0 timeago: ^3.6.0 fpdart: ^1.1.0 freezed_annotation: ^2.4.1 json_annotation: ^4.8.1 - hooks_riverpod: ^2.4.8 + hooks_riverpod: ^2.4.9 flutter_hooks: ^0.20.3 - riverpod_annotation: ^2.3.2 + riverpod_annotation: ^2.3.3 rxdart: ^0.27.7 - drift: ^2.13.2 + drift: ^2.14.1 sqlite3_flutter_libs: ^0.5.18 shared_preferences: ^2.2.2 dio: ^5.4.0 @@ -31,16 +31,16 @@ dependencies: ffi: ^2.1.0 path_provider: ^2.1.1 mobile_scanner: ^3.5.5 - protocol_handler: ^0.1.5 - flutter_native_splash: ^2.3.6 + protocol_handler: ^0.1.6 + flutter_native_splash: ^2.3.8 share_plus: ^7.2.1 window_manager: ^0.3.7 tray_manager: ^0.2.0 package_info_plus: ^5.0.1 - url_launcher: ^6.2.1 + url_launcher: ^6.2.2 vclibs: ^0.1.0 launch_at_startup: ^0.2.2 - sentry_flutter: ^7.13.2 + sentry_flutter: ^7.14.0 sentry_dart_plugin: ^1.6.3 combine: ^0.5.6 path: ^1.8.3 @@ -48,13 +48,13 @@ dependencies: flutter_loggy: ^2.0.2 meta: ^1.10.0 dartx: ^1.2.0 - uuid: ^4.2.1 + uuid: ^4.2.2 tint: ^2.0.1 - accessibility_tools: ^1.0.0 + accessibility_tools: ^1.0.1 neat_periodic_task: ^2.0.1 retry: ^3.1.2 watcher: ^1.1.0 - go_router: ^12.1.1 + go_router: ^13.0.0 flex_color_scheme: ^7.3.1 flutter_animate: ^4.3.0 flutter_svg: ^2.0.9 @@ -63,7 +63,7 @@ dependencies: sliver_tools: ^0.2.12 flutter_adaptive_scaffold: ^0.1.7+1 humanizer: ^2.2.0 - upgrader: ^8.3.0 + upgrader: ^8.4.0 toastification: ^1.1.0 version: ^3.0.2 posix: ^6.0.1 @@ -74,19 +74,19 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - lint: ^2.2.0 + lint: ^2.3.0 build_runner: ^2.4.7 json_serializable: ^6.7.1 - freezed: ^2.4.5 - riverpod_generator: ^2.3.8 - drift_dev: ^2.13.2 + freezed: ^2.4.6 + riverpod_generator: ^2.3.9 + drift_dev: ^2.14.1 ffigen: ^8.0.2 - slang_build_runner: ^3.25.0 + slang_build_runner: ^3.28.0 flutter_gen_runner: ^5.3.2 - go_router_builder: ^2.3.4 + go_router_builder: ^2.4.0 custom_lint: ^0.5.7 - riverpod_lint: ^2.3.6 - icons_launcher: ^2.1.5 + riverpod_lint: ^2.3.7 + icons_launcher: ^2.1.6 flutter: uses-material-design: true From e92be8be560ae85034b322145dc4c645a68d1ec0 Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Sat, 23 Dec 2023 11:46:20 +0330 Subject: [PATCH 4/5] Remove native http client (temporarily) --- lib/core/http_client/http_client_provider.dart | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/core/http_client/http_client_provider.dart b/lib/core/http_client/http_client_provider.dart index 0798a9d4..d9edbf3c 100644 --- a/lib/core/http_client/http_client_provider.dart +++ b/lib/core/http_client/http_client_provider.dart @@ -1,9 +1,5 @@ -import 'dart:io'; - import 'package:dio/dio.dart'; import 'package:hiddify/core/app_info/app_info_provider.dart'; -import 'package:hiddify/core/preferences/general_preferences.dart'; -import 'package:native_dio_adapter/native_dio_adapter.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; part 'http_client_provider.g.dart'; @@ -20,9 +16,11 @@ Dio httpClient(HttpClientRef ref) { }, ), ); - final debug = ref.read(debugModeNotifierProvider); - if (debug && (Platform.isAndroid || Platform.isIOS || Platform.isMacOS)) { - dio.httpClientAdapter = NativeAdapter(); - } + // https://github.com/dart-lang/http/issues/1047 + // https://github.com/cfug/dio/issues/2042 + // final debug = ref.read(debugModeNotifierProvider); + // if (debug && (Platform.isAndroid || Platform.isIOS || Platform.isMacOS)) { + // dio.httpClientAdapter = NativeAdapter(); + // } return dio; } From 175e2a8f307a614647d5abd87b7d191ddc11f79c Mon Sep 17 00:00:00 2001 From: problematicconsumer Date: Sat, 23 Dec 2023 13:21:40 +0330 Subject: [PATCH 5/5] release: version 0.12.2 --- CHANGELOG.md | 23 +++++++++++++++++++++++ pubspec.yaml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc067c5a..c3e45507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## [0.12.2] - 2023-12-23 + +### New Features and Improvements + +- Updated Sing-box to Version 1.7.6 + +### Bug Fixes + +- Fixed app log file not including stacktrace +- Fixed initialization process failing for non-essential dependencies +- Fixed analytics preferences requiring app restart + +## [0.12.1] - 2023-12-21 + +### Bug Fixes + +- Fixed Android service mode +- Fixed [preferences initialization error on Windows and Linux](https://github.com/flutter/flutter/issues/89211) +- Fixed incorrect privacy policy URL +- Bumped Android compile and target SDK version (34) + ## [0.12.0] - 2023-12-20 ### New Features and Improvements @@ -99,6 +120,8 @@ - Fixed localization mistakes in Russian. [PR#95](https://github.com/hiddify/hiddify-next/pull/95) by [solokot](https://github.com/solokot) - Fixed localization mistakes in Russian. [PR#74](https://github.com/hiddify/hiddify-next/pull/74) by [Elshad Guseynov](https://github.com/lifeindarkside) +[0.12.2]: https://github.com/hiddify/hiddify-next/releases/tag/v0.12.2 +[0.12.1]: https://github.com/hiddify/hiddify-next/releases/tag/v0.12.1 [0.12.0]: https://github.com/hiddify/hiddify-next/releases/tag/v0.12.0 [0.11.1]: https://github.com/hiddify/hiddify-next/releases/tag/v0.11.1 [0.11.0]: https://github.com/hiddify/hiddify-next/releases/tag/v0.11.0 diff --git a/pubspec.yaml b/pubspec.yaml index 450c1afe..81fae8a5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: hiddify description: Cross Platform Multi Protocol Proxy Frontend. publish_to: "none" -version: 0.12.1+1210 +version: 0.12.2+1220 environment: sdk: ">=3.2.0 <4.0.0"