From a016b91ee591462b4f5d3ed84175fe6a1e94a061 Mon Sep 17 00:00:00 2001 From: Hiddify Date: Thu, 22 Feb 2024 10:06:04 +0100 Subject: [PATCH] add timezone based region detection --- libcore | 2 +- macos/Flutter/GeneratedPluginRegistrant.swift | 2 ++ pubspec.lock | 24 +++++++++++++++++++ pubspec.yaml | 1 + 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/libcore b/libcore index aa825f7f..21ac2d1d 160000 --- a/libcore +++ b/libcore @@ -1 +1 @@ -Subproject commit aa825f7fe7d4efef947601d1f7269754fa717df6 +Subproject commit 21ac2d1d1144a6c83638c2b3e037d1f7fe5b04c3 diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index 820b90c2..caa49dda 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -6,6 +6,7 @@ import FlutterMacOS import Foundation import device_info_plus +import flutter_timezone import mobile_scanner import package_info_plus import path_provider_foundation @@ -21,6 +22,7 @@ import window_manager func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) + FlutterTimezonePlugin.register(with: registry.registrar(forPlugin: "FlutterTimezonePlugin")) MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin")) FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) diff --git a/pubspec.lock b/pubspec.lock index 821a6248..e2a142e9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -632,6 +632,14 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_timezone: + dependency: transitive + description: + name: flutter_timezone + sha256: "06b35132c98fa188db3c4b654b7e1af7ccd01dfe12a004d58be423357605fb24" + url: "https://pub.dev" + source: hosted + version: "1.0.8" flutter_web_plugins: dependency: transitive description: flutter @@ -1610,6 +1618,22 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.3" + timezone: + dependency: transitive + description: + name: timezone + sha256: "1cfd8ddc2d1cfd836bc93e67b9be88c3adaeca6f40a00ca999104c30693cdca0" + url: "https://pub.dev" + source: hosted + version: "0.9.2" + timezone_to_country: + dependency: "direct main" + description: + name: timezone_to_country + sha256: "9798e68d94276006484f5aba5a69b3b83f74459243693d23050d39155d8822fc" + url: "https://pub.dev" + source: hosted + version: "2.1.0" timing: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 1ad8958e..51633615 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -75,6 +75,7 @@ dependencies: fluentui_system_icons: ^1.1.226 circle_flags: ^4.0.2 http: ^1.2.0 + timezone_to_country: ^2.1.0 dev_dependencies: flutter_test: