From f4314cca2c6272e46d054a21438b5fa1e8d97223 Mon Sep 17 00:00:00 2001 From: yaso Date: Wed, 23 Oct 2024 12:15:53 +0200 Subject: [PATCH] Add geolocate plugin --- .../Flutter/GeneratedPluginRegistrant.swift | 2 + Frontend/patient_manager/pubspec.lock | 48 +++++++++++++++++++ Frontend/patient_manager/pubspec.yaml | 1 + .../flutter/generated_plugin_registrant.cc | 3 ++ .../windows/flutter/generated_plugins.cmake | 1 + 5 files changed, 55 insertions(+) diff --git a/Frontend/patient_manager/macos/Flutter/GeneratedPluginRegistrant.swift b/Frontend/patient_manager/macos/Flutter/GeneratedPluginRegistrant.swift index 2b00e052..c3200a00 100644 --- a/Frontend/patient_manager/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/Frontend/patient_manager/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,6 +7,7 @@ import Foundation import app_links import device_info_plus +import geolocator_apple import google_sign_in_ios import no_screenshot import path_provider_foundation @@ -19,6 +20,7 @@ import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AppLinksMacosPlugin.register(with: registry.registrar(forPlugin: "AppLinksMacosPlugin")) DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) + GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin")) FLTGoogleSignInPlugin.register(with: registry.registrar(forPlugin: "FLTGoogleSignInPlugin")) NoScreenshotPlugin.register(with: registry.registrar(forPlugin: "NoScreenshotPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) diff --git a/Frontend/patient_manager/pubspec.lock b/Frontend/patient_manager/pubspec.lock index 27f4d58a..a8d316d9 100644 --- a/Frontend/patient_manager/pubspec.lock +++ b/Frontend/patient_manager/pubspec.lock @@ -440,6 +440,54 @@ packages: url: "https://pub.dev" source: hosted version: "2.3.2" + geolocator: + dependency: "direct main" + description: + name: geolocator + sha256: "0ec58b731776bc43097fcf751f79681b6a8f6d3bc737c94779fe9f1ad73c1a81" + url: "https://pub.dev" + source: hosted + version: "13.0.1" + geolocator_android: + dependency: transitive + description: + name: geolocator_android + sha256: "7aefc530db47d90d0580b552df3242440a10fe60814496a979aa67aa98b1fd47" + url: "https://pub.dev" + source: hosted + version: "4.6.1" + geolocator_apple: + dependency: transitive + description: + name: geolocator_apple + sha256: bc2aca02423ad429cb0556121f56e60360a2b7d694c8570301d06ea0c00732fd + url: "https://pub.dev" + source: hosted + version: "2.3.7" + geolocator_platform_interface: + dependency: transitive + description: + name: geolocator_platform_interface + sha256: "386ce3d9cce47838355000070b1d0b13efb5bc430f8ecda7e9238c8409ace012" + url: "https://pub.dev" + source: hosted + version: "4.2.4" + geolocator_web: + dependency: transitive + description: + name: geolocator_web + sha256: "2ed69328e05cd94e7eb48bb0535f5fc0c0c44d1c4fa1e9737267484d05c29b5e" + url: "https://pub.dev" + source: hosted + version: "4.1.1" + geolocator_windows: + dependency: transitive + description: + name: geolocator_windows + sha256: "53da08937d07c24b0d9952eb57a3b474e29aae2abf9dd717f7e1230995f13f0e" + url: "https://pub.dev" + source: hosted + version: "0.2.3" gif: dependency: "direct main" description: diff --git a/Frontend/patient_manager/pubspec.yaml b/Frontend/patient_manager/pubspec.yaml index 930d0fd8..ae843cff 100644 --- a/Frontend/patient_manager/pubspec.yaml +++ b/Frontend/patient_manager/pubspec.yaml @@ -56,6 +56,7 @@ dependencies: no_screenshot: ^0.3.1 printing: ^5.13.3 pdf: ^3.11.1 + geolocator: ^13.0.1 # firebase_core: ^3.6.0 dev_dependencies: diff --git a/Frontend/patient_manager/windows/flutter/generated_plugin_registrant.cc b/Frontend/patient_manager/windows/flutter/generated_plugin_registrant.cc index 15d7e0e1..379118ed 100644 --- a/Frontend/patient_manager/windows/flutter/generated_plugin_registrant.cc +++ b/Frontend/patient_manager/windows/flutter/generated_plugin_registrant.cc @@ -7,6 +7,7 @@ #include "generated_plugin_registrant.h" #include +#include #include #include #include @@ -14,6 +15,8 @@ void RegisterPlugins(flutter::PluginRegistry* registry) { AppLinksPluginCApiRegisterWithRegistrar( registry->GetRegistrarForPlugin("AppLinksPluginCApi")); + GeolocatorWindowsRegisterWithRegistrar( + registry->GetRegistrarForPlugin("GeolocatorWindows")); PrintingPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("PrintingPlugin")); SyncfusionPdfviewerWindowsPluginRegisterWithRegistrar( diff --git a/Frontend/patient_manager/windows/flutter/generated_plugins.cmake b/Frontend/patient_manager/windows/flutter/generated_plugins.cmake index cc3676b2..3d081958 100644 --- a/Frontend/patient_manager/windows/flutter/generated_plugins.cmake +++ b/Frontend/patient_manager/windows/flutter/generated_plugins.cmake @@ -4,6 +4,7 @@ list(APPEND FLUTTER_PLUGIN_LIST app_links + geolocator_windows printing syncfusion_pdfviewer_windows url_launcher_windows