From eb2f82cc9178d8d8ad683faf462c2f4a0cdf97f5 Mon Sep 17 00:00:00 2001 From: bijoy Date: Tue, 20 May 2025 13:30:23 +0600 Subject: [PATCH] - Updated package version to 1.0.0. - Updated Flutter and various plugin dependencies to their latest versions. - Updated Android Gradle configuration to version 8.11.1 and made other necessary adjustments. - Updated example app configurations for Android, iOS, macOS, Linux, and Windows. - Updated copyright year in LICENSE file. - Minor code style update --- .flutter-plugins | 41 ++++++++----------- .flutter-plugins-dependencies | 2 +- CHANGELOG.md | 6 ++- LICENSE | 2 +- README.md | 2 +- .../plugins/GeneratedPluginRegistrant.java | 15 ++++--- example/android/app/build.gradle | 19 ++++----- example/android/build.gradle | 16 +++++++- .../gradle/wrapper/gradle-wrapper.properties | 3 +- example/android/settings.gradle | 30 ++++++++++---- .../.plugin_symlinks/url_launcher_linux | 1 - .../flutter/generated_plugin_registrant.cc | 4 -- example/linux/flutter/generated_plugins.cmake | 1 - .../Flutter/GeneratedPluginRegistrant.swift | 2 - .../flutter/generated_plugin_registrant.cc | 3 -- .../windows/flutter/generated_plugins.cmake | 1 - ios/Flutter/Generated.xcconfig | 4 +- ios/Flutter/flutter_export_environment.sh | 4 +- ios/Runner/GeneratedPluginRegistrant.m | 21 ++++++---- .../components/location_details_widget.dart | 2 +- macos/Flutter/GeneratedPluginRegistrant.swift | 2 - .../ephemeral/Flutter-Generated.xcconfig | 4 +- .../ephemeral/flutter_export_environment.sh | 4 +- pubspec.yaml | 15 ++++--- 24 files changed, 111 insertions(+), 93 deletions(-) delete mode 120000 example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux diff --git a/.flutter-plugins b/.flutter-plugins index f6ca326..d594361 100644 --- a/.flutter-plugins +++ b/.flutter-plugins @@ -1,32 +1,27 @@ # This is a generated file; do not edit or check into version control. -camera=/Users/bijoy/.pub-cache/hosted/pub.dev/camera-0.11.0+2/ -camera_android_camerax=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.10/ -camera_avfoundation=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17+4/ +camera=/Users/bijoy/.pub-cache/hosted/pub.dev/camera-0.11.1/ +camera_android_camerax=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.17/ +camera_avfoundation=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.19/ camera_web=/Users/bijoy/.pub-cache/hosted/pub.dev/camera_web-0.3.5/ -flutter_compass=/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/ -flutter_plugin_android_lifecycle=/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/ +flutter_compass=/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.1/ +flutter_plugin_android_lifecycle=/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.28/ +flutter_rotation_sensor=/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_rotation_sensor-0.1.1/ geocoding=/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding-3.0.0/ geocoding_android=/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/ geocoding_ios=/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/ -geolocator=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator-13.0.1/ -geolocator_android=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/ -geolocator_apple=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/ -geolocator_web=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/ -geolocator_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/ +geolocator=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator-14.0.0/ +geolocator_android=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_android-5.0.1+1/ +geolocator_apple=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.13/ +geolocator_web=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_web-4.1.3/ +geolocator_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.5/ +native_device_orientation=/Users/bijoy/.pub-cache/hosted/pub.dev/native_device_orientation-2.0.3/ path_provider=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider-2.1.5/ -path_provider_android=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_android-2.2.12/ -path_provider_foundation=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/ +path_provider_android=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_android-2.2.17/ +path_provider_foundation=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/ path_provider_linux=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/ path_provider_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/ -permission_handler=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler-11.3.1/ -permission_handler_android=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.13/ -permission_handler_apple=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/ -permission_handler_html=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+2/ +permission_handler=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler-12.0.0+1/ +permission_handler_android=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_android-13.0.1/ +permission_handler_apple=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.7/ +permission_handler_html=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+5/ permission_handler_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/ -url_launcher=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher-6.3.1/ -url_launcher_android=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.14/ -url_launcher_ios=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.1/ -url_launcher_linux=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.0/ -url_launcher_macos=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.1/ -url_launcher_web=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.3/ -url_launcher_windows=/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.3/ diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies index 611a753..3170a21 100644 --- a/.flutter-plugins-dependencies +++ b/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.17+4/","native_build":true,"dependencies":[]},{"name":"flutter_compass","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/","native_build":true,"dependencies":[]},{"name":"geocoding_ios","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/","native_build":true,"dependencies":[]},{"name":"geolocator_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"permission_handler_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.5/","native_build":true,"dependencies":[]},{"name":"url_launcher_ios","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_ios-6.3.1/","native_build":true,"dependencies":[]}],"android":[{"name":"camera_android_camerax","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.10/","native_build":true,"dependencies":[]},{"name":"flutter_compass","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.0/","native_build":true,"dependencies":[]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/","native_build":true,"dependencies":[]},{"name":"geocoding_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/","native_build":true,"dependencies":[]},{"name":"geolocator_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_android-4.6.1/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_android-2.2.12/","native_build":true,"dependencies":[]},{"name":"permission_handler_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_android-12.0.13/","native_build":true,"dependencies":[]},{"name":"url_launcher_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.14/","native_build":true,"dependencies":[]}],"macos":[{"name":"geolocator_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.7/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]},{"name":"url_launcher_macos","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.1/","native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]},{"name":"url_launcher_linux","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.0/","native_build":true,"dependencies":[]}],"windows":[{"name":"geolocator_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.3/","native_build":true,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]},{"name":"permission_handler_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[]},{"name":"url_launcher_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.3/","native_build":true,"dependencies":[]}],"web":[{"name":"camera_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_web-0.3.5/","dependencies":[]},{"name":"geolocator_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_web-4.1.1/","dependencies":[]},{"name":"permission_handler_html","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+2/","dependencies":[]},{"name":"url_launcher_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_web-2.3.3/","dependencies":[]}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android_camerax","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android_camerax","dependencies":[]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"flutter_compass","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"geocoding","dependencies":["geocoding_android","geocoding_ios"]},{"name":"geocoding_android","dependencies":[]},{"name":"geocoding_ios","dependencies":[]},{"name":"geolocator","dependencies":["geolocator_android","geolocator_apple","geolocator_web","geolocator_windows"]},{"name":"geolocator_android","dependencies":[]},{"name":"geolocator_apple","dependencies":[]},{"name":"geolocator_web","dependencies":[]},{"name":"geolocator_windows","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]},{"name":"url_launcher","dependencies":["url_launcher_android","url_launcher_ios","url_launcher_linux","url_launcher_macos","url_launcher_web","url_launcher_windows"]},{"name":"url_launcher_android","dependencies":[]},{"name":"url_launcher_ios","dependencies":[]},{"name":"url_launcher_linux","dependencies":[]},{"name":"url_launcher_macos","dependencies":[]},{"name":"url_launcher_web","dependencies":[]},{"name":"url_launcher_windows","dependencies":[]}],"date_created":"2024-11-01 10:16:29.345930","version":"3.24.4","swift_package_manager_enabled":false} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"camera_avfoundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_avfoundation-0.9.19/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_compass","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_rotation_sensor","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_rotation_sensor-0.1.1/","native_build":true,"dependencies":["native_device_orientation"],"dev_dependency":false},{"name":"geocoding_ios","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_ios-3.0.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"geolocator_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.13/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"native_device_orientation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/native_device_orientation-2.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_apple-9.4.7/","native_build":true,"dependencies":[],"dev_dependency":false}],"android":[{"name":"camera_android_camerax","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_android_camerax-0.6.17/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_compass","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_compass-0.8.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_plugin_android_lifecycle","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.28/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"flutter_rotation_sensor","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/flutter_rotation_sensor-0.1.1/","native_build":true,"dependencies":["native_device_orientation"],"dev_dependency":false},{"name":"geocoding_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geocoding_android-3.3.1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"geolocator_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_android-5.0.1+1/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"native_device_orientation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/native_device_orientation-2.0.3/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_android-2.2.17/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_android","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_android-13.0.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"macos":[{"name":"geolocator_apple","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_apple-2.3.13/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_foundation","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.1/","shared_darwin_source":true,"native_build":true,"dependencies":[],"dev_dependency":false}],"linux":[{"name":"path_provider_linux","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[],"dev_dependency":false}],"windows":[{"name":"geolocator_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.5/","native_build":true,"dependencies":[],"dev_dependency":false},{"name":"path_provider_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[],"dev_dependency":false},{"name":"permission_handler_windows","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_windows-0.2.1/","native_build":true,"dependencies":[],"dev_dependency":false}],"web":[{"name":"camera_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/camera_web-0.3.5/","dependencies":[],"dev_dependency":false},{"name":"geolocator_web","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/geolocator_web-4.1.3/","dependencies":[],"dev_dependency":false},{"name":"permission_handler_html","path":"/Users/bijoy/.pub-cache/hosted/pub.dev/permission_handler_html-0.1.3+5/","dependencies":[],"dev_dependency":false}]},"dependencyGraph":[{"name":"camera","dependencies":["camera_android_camerax","camera_avfoundation","camera_web","flutter_plugin_android_lifecycle"]},{"name":"camera_android_camerax","dependencies":[]},{"name":"camera_avfoundation","dependencies":[]},{"name":"camera_web","dependencies":[]},{"name":"flutter_compass","dependencies":[]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_rotation_sensor","dependencies":["native_device_orientation"]},{"name":"geocoding","dependencies":["geocoding_android","geocoding_ios"]},{"name":"geocoding_android","dependencies":[]},{"name":"geocoding_ios","dependencies":[]},{"name":"geolocator","dependencies":["geolocator_android","geolocator_apple","geolocator_web","geolocator_windows"]},{"name":"geolocator_android","dependencies":[]},{"name":"geolocator_apple","dependencies":[]},{"name":"geolocator_web","dependencies":[]},{"name":"geolocator_windows","dependencies":[]},{"name":"native_device_orientation","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"permission_handler","dependencies":["permission_handler_android","permission_handler_apple","permission_handler_html","permission_handler_windows"]},{"name":"permission_handler_android","dependencies":[]},{"name":"permission_handler_apple","dependencies":[]},{"name":"permission_handler_html","dependencies":[]},{"name":"permission_handler_windows","dependencies":[]}],"date_created":"2025-05-20 13:25:16.364125","version":"3.29.0","swift_package_manager_enabled":{"ios":false,"macos":false}} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index cda9ee6..5c888b7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ -## 0.0.8 +## 1.0.0 # Changelog -- Performance Improvement \ No newline at end of file +- Performance Improvement +- Updated Android Gradle configuration to version 8.11.1 +- Updated Flutter and various plugin \ No newline at end of file diff --git a/LICENSE b/LICENSE index 8c67974..f9a9c8d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Bijoy Ghosh +Copyright (c) 2025 Bijoy Ghosh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index d0caf43..9012734 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To use this package, add `map_camera_flutter` as a dependency in your `pubspec.y ```yaml dependencies: - map_camera_flutter: ^0.0.8 + map_camera_flutter: ^1.0.0 ``` ### Usage diff --git a/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java b/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java index e9ec0bf..7edaf06 100644 --- a/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java +++ b/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java @@ -30,6 +30,11 @@ public final class GeneratedPluginRegistrant { } catch (Exception e) { Log.e(TAG, "Error registering plugin flutter_plugin_android_lifecycle, io.flutter.plugins.flutter_plugin_android_lifecycle.FlutterAndroidLifecyclePlugin", e); } + try { + flutterEngine.getPlugins().add(new net.tlserver6y.flutter_rotation_sensor.FlutterRotationSensorPlugin()); + } catch (Exception e) { + Log.e(TAG, "Error registering plugin flutter_rotation_sensor, net.tlserver6y.flutter_rotation_sensor.FlutterRotationSensorPlugin", e); + } try { flutterEngine.getPlugins().add(new com.baseflow.geocoding.GeocodingPlugin()); } catch (Exception e) { @@ -40,6 +45,11 @@ public final class GeneratedPluginRegistrant { } catch (Exception e) { Log.e(TAG, "Error registering plugin geolocator_android, com.baseflow.geolocator.GeolocatorPlugin", e); } + try { + flutterEngine.getPlugins().add(new com.github.rmtmckenzie.native_device_orientation.NativeDeviceOrientationPlugin()); + } catch (Exception e) { + Log.e(TAG, "Error registering plugin native_device_orientation, com.github.rmtmckenzie.native_device_orientation.NativeDeviceOrientationPlugin", e); + } try { flutterEngine.getPlugins().add(new io.flutter.plugins.pathprovider.PathProviderPlugin()); } catch (Exception e) { @@ -50,10 +60,5 @@ public final class GeneratedPluginRegistrant { } catch (Exception e) { Log.e(TAG, "Error registering plugin permission_handler_android, com.baseflow.permissionhandler.PermissionHandlerPlugin", e); } - try { - flutterEngine.getPlugins().add(new io.flutter.plugins.urllauncher.UrlLauncherPlugin()); - } catch (Exception e) { - Log.e(TAG, "Error registering plugin url_launcher_android, io.flutter.plugins.urllauncher.UrlLauncherPlugin", e); - } } } diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 7d72737..f9c8d32 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -1,3 +1,9 @@ +plugins { + id "com.android.application" + id "kotlin-android" + id "dev.flutter.flutter-gradle-plugin" +} + def localProperties = new Properties() def localPropertiesFile = rootProject.file('local.properties') if (localPropertiesFile.exists()) { @@ -6,25 +12,16 @@ if (localPropertiesFile.exists()) { } } -def flutterRoot = localProperties.getProperty('flutter.sdk') -if (flutterRoot == null) { - throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") -} - def flutterVersionCode = localProperties.getProperty('flutter.versionCode') if (flutterVersionCode == null) { - flutterVersionCode = '1' + flutterVersionCode = '34' } def flutterVersionName = localProperties.getProperty('flutter.versionName') if (flutterVersionName == null) { - flutterVersionName = '1.0' + flutterVersionName = '3.0.0' } -apply plugin: 'com.android.application' -apply plugin: 'kotlin-android' -apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" - android { namespace "com.example.example" compileSdkVersion flutter.compileSdkVersion diff --git a/example/android/build.gradle b/example/android/build.gradle index 5264885..f397f4b 100644 --- a/example/android/build.gradle +++ b/example/android/build.gradle @@ -1,12 +1,24 @@ buildscript { - ext.kotlin_version = '1.9.0' + ext.kotlin_version = '1.9.22' repositories { google() mavenCentral() } + subprojects { + afterEvaluate { project -> + if (project.hasProperty('android')) { + project.android { + if (namespace == null) { + namespace project.group + } + } + } + } + } + dependencies { - classpath 'com.android.tools.build:gradle:7.3.0' + classpath 'com.android.tools.build:gradle:8.9.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/example/android/gradle/wrapper/gradle-wrapper.properties b/example/android/gradle/wrapper/gradle-wrapper.properties index 3c472b9..c149c4d 100644 --- a/example/android/gradle/wrapper/gradle-wrapper.properties +++ b/example/android/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,6 @@ +#Tue May 20 12:00:52 BDT 2025 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 44e62bc..011eee4 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,11 +1,25 @@ -include ':app' +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + }() -def localPropertiesFile = new File(rootProject.projectDir, "local.properties") -def properties = new Properties() + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") -assert localPropertiesFile.exists() -localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + repositories { + google() + mavenCentral() + gradlePluginPortal() + } +} -def flutterSdkPath = properties.getProperty("flutter.sdk") -assert flutterSdkPath != null, "flutter.sdk not set in local.properties" -apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" +plugins { + id("dev.flutter.flutter-plugin-loader") version "1.0.0" + id("com.android.application") version '8.9.1' apply false + id("org.jetbrains.kotlin.android") version "1.9.20" apply false +} + +include ":app" \ No newline at end of file diff --git a/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux b/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux deleted file mode 120000 index abb9a90..0000000 --- a/example/linux/flutter/ephemeral/.plugin_symlinks/url_launcher_linux +++ /dev/null @@ -1 +0,0 @@ -/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.0/ \ No newline at end of file diff --git a/example/linux/flutter/generated_plugin_registrant.cc b/example/linux/flutter/generated_plugin_registrant.cc index f6f23bf..e71a16d 100644 --- a/example/linux/flutter/generated_plugin_registrant.cc +++ b/example/linux/flutter/generated_plugin_registrant.cc @@ -6,10 +6,6 @@ #include "generated_plugin_registrant.h" -#include void fl_register_plugins(FlPluginRegistry* registry) { - g_autoptr(FlPluginRegistrar) url_launcher_linux_registrar = - fl_plugin_registry_get_registrar_for_plugin(registry, "UrlLauncherPlugin"); - url_launcher_plugin_register_with_registrar(url_launcher_linux_registrar); } diff --git a/example/linux/flutter/generated_plugins.cmake b/example/linux/flutter/generated_plugins.cmake index f16b4c3..2e1de87 100644 --- a/example/linux/flutter/generated_plugins.cmake +++ b/example/linux/flutter/generated_plugins.cmake @@ -3,7 +3,6 @@ # list(APPEND FLUTTER_PLUGIN_LIST - url_launcher_linux ) list(APPEND FLUTTER_FFI_PLUGIN_LIST diff --git a/example/macos/Flutter/GeneratedPluginRegistrant.swift b/example/macos/Flutter/GeneratedPluginRegistrant.swift index d2966fb..32aadf6 100644 --- a/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,10 +7,8 @@ import Foundation import geolocator_apple import path_provider_foundation -import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) - UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) } diff --git a/example/windows/flutter/generated_plugin_registrant.cc b/example/windows/flutter/generated_plugin_registrant.cc index ce843bc..5be7b60 100644 --- a/example/windows/flutter/generated_plugin_registrant.cc +++ b/example/windows/flutter/generated_plugin_registrant.cc @@ -8,13 +8,10 @@ #include #include -#include void RegisterPlugins(flutter::PluginRegistry* registry) { GeolocatorWindowsRegisterWithRegistrar( registry->GetRegistrarForPlugin("GeolocatorWindows")); PermissionHandlerWindowsPluginRegisterWithRegistrar( registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin")); - UrlLauncherWindowsRegisterWithRegistrar( - registry->GetRegistrarForPlugin("UrlLauncherWindows")); } diff --git a/example/windows/flutter/generated_plugins.cmake b/example/windows/flutter/generated_plugins.cmake index b3ea692..b949ced 100644 --- a/example/windows/flutter/generated_plugins.cmake +++ b/example/windows/flutter/generated_plugins.cmake @@ -5,7 +5,6 @@ list(APPEND FLUTTER_PLUGIN_LIST geolocator_windows permission_handler_windows - url_launcher_windows ) list(APPEND FLUTTER_FFI_PLUGIN_LIST diff --git a/ios/Flutter/Generated.xcconfig b/ios/Flutter/Generated.xcconfig index 4576337..c858cff 100644 --- a/ios/Flutter/Generated.xcconfig +++ b/ios/Flutter/Generated.xcconfig @@ -4,8 +4,8 @@ FLUTTER_APPLICATION_PATH=/Users/bijoy/Documents/package/map_camera_location_flut COCOAPODS_PARALLEL_CODE_SIGN=true FLUTTER_TARGET=lib/main.dart FLUTTER_BUILD_DIR=build -FLUTTER_BUILD_NAME=0.0.6 -FLUTTER_BUILD_NUMBER=0.0.6 +FLUTTER_BUILD_NAME=2.0.0 +FLUTTER_BUILD_NUMBER=2.0.0 EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386 EXCLUDED_ARCHS[sdk=iphoneos*]=armv7 DART_OBFUSCATION=false diff --git a/ios/Flutter/flutter_export_environment.sh b/ios/Flutter/flutter_export_environment.sh index c6c7787..bddee54 100755 --- a/ios/Flutter/flutter_export_environment.sh +++ b/ios/Flutter/flutter_export_environment.sh @@ -5,8 +5,8 @@ export "FLUTTER_APPLICATION_PATH=/Users/bijoy/Documents/package/map_camera_locat export "COCOAPODS_PARALLEL_CODE_SIGN=true" export "FLUTTER_TARGET=lib/main.dart" export "FLUTTER_BUILD_DIR=build" -export "FLUTTER_BUILD_NAME=0.0.6" -export "FLUTTER_BUILD_NUMBER=0.0.6" +export "FLUTTER_BUILD_NAME=2.0.0" +export "FLUTTER_BUILD_NUMBER=2.0.0" export "DART_OBFUSCATION=false" export "TRACK_WIDGET_CREATION=true" export "TREE_SHAKE_ICONS=false" diff --git a/ios/Runner/GeneratedPluginRegistrant.m b/ios/Runner/GeneratedPluginRegistrant.m index 4506f2d..faba56e 100644 --- a/ios/Runner/GeneratedPluginRegistrant.m +++ b/ios/Runner/GeneratedPluginRegistrant.m @@ -18,6 +18,12 @@ @import flutter_compass; #endif +#if __has_include() +#import +#else +@import flutter_rotation_sensor; +#endif + #if __has_include() #import #else @@ -30,6 +36,12 @@ @import geolocator_apple; #endif +#if __has_include() +#import +#else +@import native_device_orientation; +#endif + #if __has_include() #import #else @@ -42,22 +54,17 @@ @import permission_handler_apple; #endif -#if __has_include() -#import -#else -@import url_launcher_ios; -#endif - @implementation GeneratedPluginRegistrant + (void)registerWithRegistry:(NSObject*)registry { [CameraPlugin registerWithRegistrar:[registry registrarForPlugin:@"CameraPlugin"]]; [FlutterCompassPlugin registerWithRegistrar:[registry registrarForPlugin:@"FlutterCompassPlugin"]]; + [FlutterRotationSensorPlugin registerWithRegistrar:[registry registrarForPlugin:@"FlutterRotationSensorPlugin"]]; [GeocodingPlugin registerWithRegistrar:[registry registrarForPlugin:@"GeocodingPlugin"]]; [GeolocatorPlugin registerWithRegistrar:[registry registrarForPlugin:@"GeolocatorPlugin"]]; + [NativeDeviceOrientationPlugin registerWithRegistrar:[registry registrarForPlugin:@"NativeDeviceOrientationPlugin"]]; [PathProviderPlugin registerWithRegistrar:[registry registrarForPlugin:@"PathProviderPlugin"]]; [PermissionHandlerPlugin registerWithRegistrar:[registry registrarForPlugin:@"PermissionHandlerPlugin"]]; - [URLLauncherPlugin registerWithRegistrar:[registry registrarForPlugin:@"URLLauncherPlugin"]]; } @end diff --git a/lib/src/components/location_details_widget.dart b/lib/src/components/location_details_widget.dart index 53fb734..d55701c 100644 --- a/lib/src/components/location_details_widget.dart +++ b/lib/src/components/location_details_widget.dart @@ -16,7 +16,7 @@ class LocationDetailsWidget extends StatelessWidget { padding: const EdgeInsets.all(10), decoration: BoxDecoration( borderRadius: BorderRadius.circular(8), - color: Colors.black.withOpacity(0.5)), + color: Colors.black.withValues(alpha: 0.5)), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ diff --git a/macos/Flutter/GeneratedPluginRegistrant.swift b/macos/Flutter/GeneratedPluginRegistrant.swift index d2966fb..32aadf6 100644 --- a/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/macos/Flutter/GeneratedPluginRegistrant.swift @@ -7,10 +7,8 @@ import Foundation import geolocator_apple import path_provider_foundation -import url_launcher_macos func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { GeolocatorPlugin.register(with: registry.registrar(forPlugin: "GeolocatorPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) - UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) } diff --git a/macos/Flutter/ephemeral/Flutter-Generated.xcconfig b/macos/Flutter/ephemeral/Flutter-Generated.xcconfig index ced80a5..2732f99 100644 --- a/macos/Flutter/ephemeral/Flutter-Generated.xcconfig +++ b/macos/Flutter/ephemeral/Flutter-Generated.xcconfig @@ -3,8 +3,8 @@ FLUTTER_ROOT=/Users/bijoy/development/flutter FLUTTER_APPLICATION_PATH=/Users/bijoy/Documents/package/map_camera_location_flutter COCOAPODS_PARALLEL_CODE_SIGN=true FLUTTER_BUILD_DIR=build -FLUTTER_BUILD_NAME=0.0.6 -FLUTTER_BUILD_NUMBER=0.0.6 +FLUTTER_BUILD_NAME=2.0.0 +FLUTTER_BUILD_NUMBER=2.0.0 DART_OBFUSCATION=false TRACK_WIDGET_CREATION=true TREE_SHAKE_ICONS=false diff --git a/macos/Flutter/ephemeral/flutter_export_environment.sh b/macos/Flutter/ephemeral/flutter_export_environment.sh index c8a408d..cc38614 100755 --- a/macos/Flutter/ephemeral/flutter_export_environment.sh +++ b/macos/Flutter/ephemeral/flutter_export_environment.sh @@ -4,8 +4,8 @@ export "FLUTTER_ROOT=/Users/bijoy/development/flutter" export "FLUTTER_APPLICATION_PATH=/Users/bijoy/Documents/package/map_camera_location_flutter" export "COCOAPODS_PARALLEL_CODE_SIGN=true" export "FLUTTER_BUILD_DIR=build" -export "FLUTTER_BUILD_NAME=0.0.6" -export "FLUTTER_BUILD_NUMBER=0.0.6" +export "FLUTTER_BUILD_NAME=2.0.0" +export "FLUTTER_BUILD_NUMBER=2.0.0" export "DART_OBFUSCATION=false" export "TRACK_WIDGET_CREATION=true" export "TREE_SHAKE_ICONS=false" diff --git a/pubspec.yaml b/pubspec.yaml index 134a621..b4828a9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: map_camera_flutter description: The Map Camera flutter package provides a convenient way to capture images with map and location data using the device's camera. -version: 0.0.8 +version: 1.0.0 homepage: https://github.com/Always-Bijoy/map_camera_location_flutter environment: @@ -13,15 +13,14 @@ dependencies: sdk: flutter cupertino_icons: ^1.0.2 camera: ^0.11.0+2 - geolocator: ^13.0.1 + geolocator: ^14.0.0 geocoding: ^3.0.0 - intl: ^0.19.0 + intl: ^0.20.2 path_provider: ^2.0.11 - flutter_map: ^7.0.2 - flutter_map_location_marker: ^9.0.0 - url_launcher: ^6.1.11 - flutter_compass: ^0.8.0 - permission_handler: ^11.3.1 + flutter_map: ^8.1.1 + flutter_compass: ^0.8.1 + flutter_map_location_marker: ^10.1.0 + permission_handler: ^12.0.0+1 latlong2: ^0.9.0 dev_dependencies: