- 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
This commit is contained in:
bijoy
2025-05-20 13:30:23 +06:00
parent 97a7ba8555
commit eb2f82cc91
24 changed files with 111 additions and 93 deletions

View File

@@ -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/

File diff suppressed because one or more lines are too long

View File

@@ -1,5 +1,7 @@
## 0.0.8
## 1.0.0
# Changelog
- Performance Improvement
- Updated Android Gradle configuration to version 8.11.1
- Updated Flutter and various plugin

View File

@@ -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

View File

@@ -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

View File

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

View File

@@ -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

View File

@@ -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"
}
}

View File

@@ -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

View File

@@ -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"

View File

@@ -1 +0,0 @@
/Users/bijoy/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.0/

View File

@@ -6,10 +6,6 @@
#include "generated_plugin_registrant.h"
#include <url_launcher_linux/url_launcher_plugin.h>
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);
}

View File

@@ -3,7 +3,6 @@
#
list(APPEND FLUTTER_PLUGIN_LIST
url_launcher_linux
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

View File

@@ -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"))
}

View File

@@ -8,13 +8,10 @@
#include <geolocator_windows/geolocator_windows.h>
#include <permission_handler_windows/permission_handler_windows_plugin.h>
#include <url_launcher_windows/url_launcher_windows.h>
void RegisterPlugins(flutter::PluginRegistry* registry) {
GeolocatorWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("GeolocatorWindows"));
PermissionHandlerWindowsPluginRegisterWithRegistrar(
registry->GetRegistrarForPlugin("PermissionHandlerWindowsPlugin"));
UrlLauncherWindowsRegisterWithRegistrar(
registry->GetRegistrarForPlugin("UrlLauncherWindows"));
}

View File

@@ -5,7 +5,6 @@
list(APPEND FLUTTER_PLUGIN_LIST
geolocator_windows
permission_handler_windows
url_launcher_windows
)
list(APPEND FLUTTER_FFI_PLUGIN_LIST

View File

@@ -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

View File

@@ -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"

View File

@@ -18,6 +18,12 @@
@import flutter_compass;
#endif
#if __has_include(<flutter_rotation_sensor/FlutterRotationSensorPlugin.h>)
#import <flutter_rotation_sensor/FlutterRotationSensorPlugin.h>
#else
@import flutter_rotation_sensor;
#endif
#if __has_include(<geocoding_ios/GeocodingPlugin.h>)
#import <geocoding_ios/GeocodingPlugin.h>
#else
@@ -30,6 +36,12 @@
@import geolocator_apple;
#endif
#if __has_include(<native_device_orientation/NativeDeviceOrientationPlugin.h>)
#import <native_device_orientation/NativeDeviceOrientationPlugin.h>
#else
@import native_device_orientation;
#endif
#if __has_include(<path_provider_foundation/PathProviderPlugin.h>)
#import <path_provider_foundation/PathProviderPlugin.h>
#else
@@ -42,22 +54,17 @@
@import permission_handler_apple;
#endif
#if __has_include(<url_launcher_ios/URLLauncherPlugin.h>)
#import <url_launcher_ios/URLLauncherPlugin.h>
#else
@import url_launcher_ios;
#endif
@implementation GeneratedPluginRegistrant
+ (void)registerWithRegistry:(NSObject<FlutterPluginRegistry>*)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

View File

@@ -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: [

View File

@@ -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"))
}

View File

@@ -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

View File

@@ -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"

View File

@@ -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: