From 3ccab2c6011355236007ddc714d85bf3d67e9154 Mon Sep 17 00:00:00 2001
From: yangjie <168149434@qq.com>
Date: Sun, 17 Nov 2024 15:42:58 +0800
Subject: [PATCH] amap_location_fluttify
---
.gitignore | 43 +
CHANGELOG.md | 128 +
LICENSE | 13 +
README.md | 56 +
analysis_options.yaml | 9 +
android/build.gradle | 70 +
android/settings.gradle | 1 +
android/src/main/AndroidManifest.xml | 29 +
.../AmapLocationFluttifyPlugin.java | 154 +
.../sub_handler/SubHandler0.java | 5730 +++++++++++++++
.../sub_handler/SubHandler1.java | 6172 +++++++++++++++++
.../sub_handler/SubHandler2.java | 4681 +++++++++++++
.../sub_handler/custom/SubHandlerCustom.java | 192 +
example/.gitignore | 43 +
example/README.md | 0
example/analysis_options.yaml | 29 +
.../.gradle/7.4/checksums/checksums.lock | 0
.../dependencies-accessors.lock | 0
.../7.4/dependencies-accessors/gc.properties | 0
.../.gradle/7.4/fileChanges/last-build.bin | 0
.../.gradle/7.4/fileHashes/fileHashes.lock | 0
example/android/.gradle/7.4/gc.properties | 0
.../buildOutputCleanup.lock | 0
.../buildOutputCleanup/cache.properties | 2 +
example/android/.gradle/vcs-1/gc.properties | 0
example/android/app/build.gradle | 66 +
.../android/app/src/debug/AndroidManifest.xml | 0
.../android/app/src/main/AndroidManifest.xml | 0
.../plugins/GeneratedPluginRegistrant.java | 0
.../MainActivity.java | 0
.../res/drawable-v21/launch_background.xml | 0
.../main/res/drawable/launch_background.xml | 0
.../src/main/res/mipmap-hdpi/ic_launcher.png | 0
.../src/main/res/mipmap-mdpi/ic_launcher.png | 0
.../src/main/res/mipmap-xhdpi/ic_launcher.png | 0
.../main/res/mipmap-xxhdpi/ic_launcher.png | 0
.../main/res/mipmap-xxxhdpi/ic_launcher.png | 0
.../app/src/main/res/values-night/styles.xml | 0
.../app/src/main/res/values/styles.xml | 0
.../app/src/profile/AndroidManifest.xml | 0
example/android/build.gradle | 0
example/android/gradle.properties | 3 +
.../android/gradle/wrapper/gradle-wrapper.jar | 0
.../gradle/wrapper/gradle-wrapper.properties | 6 +
example/android/gradlew | 0
example/android/gradlew.bat | 0
example/android/local.properties | 3 +
example/android/settings.gradle | 0
example/ios/Flutter/AppFrameworkInfo.plist | 0
example/ios/Flutter/Debug.xcconfig | 0
example/ios/Flutter/Generated.xcconfig | 0
example/ios/Flutter/Release.xcconfig | 0
.../ios/Flutter/flutter_export_environment.sh | 0
example/ios/Podfile | 0
example/ios/Podfile.lock | 0
example/ios/Runner.xcodeproj/project.pbxproj | 0
.../contents.xcworkspacedata | 0
.../xcshareddata/IDEWorkspaceChecks.plist | 0
.../xcshareddata/WorkspaceSettings.xcsettings | 0
.../xcshareddata/xcschemes/Runner.xcscheme | 0
.../contents.xcworkspacedata | 0
.../xcshareddata/IDEWorkspaceChecks.plist | 0
.../xcshareddata/WorkspaceSettings.xcsettings | 0
example/ios/Runner/AppDelegate.h | 0
example/ios/Runner/AppDelegate.m | 0
.../AppIcon.appiconset/Contents.json | 0
.../Icon-App-1024x1024@1x.png | 0
.../AppIcon.appiconset/Icon-App-20x20@1x.png | 0
.../AppIcon.appiconset/Icon-App-20x20@2x.png | 0
.../AppIcon.appiconset/Icon-App-20x20@3x.png | 0
.../AppIcon.appiconset/Icon-App-29x29@1x.png | 0
.../AppIcon.appiconset/Icon-App-29x29@2x.png | 0
.../AppIcon.appiconset/Icon-App-29x29@3x.png | 0
.../AppIcon.appiconset/Icon-App-40x40@1x.png | 0
.../AppIcon.appiconset/Icon-App-40x40@2x.png | 0
.../AppIcon.appiconset/Icon-App-40x40@3x.png | 0
.../AppIcon.appiconset/Icon-App-60x60@2x.png | 0
.../AppIcon.appiconset/Icon-App-60x60@3x.png | 0
.../AppIcon.appiconset/Icon-App-76x76@1x.png | 0
.../AppIcon.appiconset/Icon-App-76x76@2x.png | 0
.../Icon-App-83.5x83.5@2x.png | 0
.../LaunchImage.imageset/Contents.json | 0
.../LaunchImage.imageset/LaunchImage.png | 0
.../LaunchImage.imageset/LaunchImage@2x.png | 0
.../LaunchImage.imageset/LaunchImage@3x.png | 0
.../LaunchImage.imageset/README.md | 0
.../Runner/Base.lproj/LaunchScreen.storyboard | 0
example/ios/Runner/Base.lproj/Main.storyboard | 0
.../ios/Runner/GeneratedPluginRegistrant.h | 0
.../ios/Runner/GeneratedPluginRegistrant.m | 0
example/ios/Runner/Info.plist | 0
example/ios/Runner/main.m | 0
example/lib/main.dart | 192 +
example/pubspec.lock | 241 +
example/pubspec.yaml | 26 +
example/test/widget_test.dart | 0
ios/Classes/AmapLocationFluttifyPlugin.h | 15 +
ios/Classes/AmapLocationFluttifyPlugin.m | 61 +
.../AMapGeoFenceManagerDelegate_Anonymous.h | 21 +
.../AMapGeoFenceManagerDelegate_Anonymous.m | 106 +
.../AMapLocationManagerDelegate_Anonymous.h | 21 +
.../AMapLocationManagerDelegate_Anonymous.m | 224 +
.../SubHandler/Custom/SubHandlerCustom.h | 13 +
.../SubHandler/Custom/SubHandlerCustom.m | 23 +
ios/Classes/SubHandler/SubHandler0.h | 13 +
ios/Classes/SubHandler/SubHandler0.m | 5214 ++++++++++++++
ios/Classes/SubHandler/SubHandler1.h | 13 +
ios/Classes/SubHandler/SubHandler1.m | 2616 +++++++
ios/amap_location_fluttify.podspec | 44 +
lib/amap_location_fluttify.dart | 9 +
lib/src/android/android.export.g.dart | 23 +
.../com/amap/api/fence/DistrictItem.g.dart | 307 +
.../com/amap/api/fence/GeoFence.g.dart | 1084 +++
.../com/amap/api/fence/GeoFenceClient.g.dart | 494 ++
.../amap/api/fence/GeoFenceListener.g.dart | 67 +
.../android/com/amap/api/fence/PoiItem.g.dart | 699 ++
.../com/amap/api/location/AMapLocation.g.dart | 2215 ++++++
.../api/location/AMapLocationClient.g.dart | 558 ++
.../location/AMapLocationClientOption.g.dart | 1613 +++++
.../AMapLocationMode.g.dart | 30 +
.../AMapLocationProtocol.g.dart | 28 +
.../AMapLocationPurpose.g.dart | 30 +
.../GeoLanguage.g.dart | 30 +
.../api/location/AMapLocationListener.g.dart | 67 +
.../location/AMapLocationQualityReport.g.dart | 479 ++
.../com/amap/api/location/APSService.g.dart | 167 +
.../com/amap/api/location/CoordUtil.g.dart | 167 +
.../api/location/CoordinateConverter.g.dart | 223 +
.../CoordinateConverter/CoordType.g.dart | 38 +
.../com/amap/api/location/DPoint.g.dart | 216 +
.../amap/api/location/UmidtokenInfo.g.dart | 167 +
lib/src/android/constants.g.dart | 10 +
lib/src/android/type_op.g.dart | 272 +
lib/src/facade/amap_location.dart | 784 +++
lib/src/facade/enums.dart | 26 +
lib/src/facade/extensions.dart | 131 +
lib/src/facade/models.dart | 135 +
lib/src/facade/shared.g.dart | 15 +
lib/src/ios/AMapGeoFenceActiveAction.g.dart | 35 +
lib/src/ios/AMapGeoFenceCircleRegion.g.dart | 103 +
lib/src/ios/AMapGeoFenceDistrictRegion.g.dart | 93 +
lib/src/ios/AMapGeoFenceErrorCode.g.dart | 44 +
lib/src/ios/AMapGeoFenceManager.g.dart | 611 ++
.../ios/AMapGeoFenceManagerDelegate.g.dart | 91 +
lib/src/ios/AMapGeoFencePOIRegion.g.dart | 93 +
lib/src/ios/AMapGeoFencePolygonRegion.g.dart | 103 +
lib/src/ios/AMapGeoFenceRegion.g.dart | 161 +
.../ios/AMapGeoFenceRegionActiveStatus.g.dart | 32 +
lib/src/ios/AMapGeoFenceRegionStatus.g.dart | 35 +
lib/src/ios/AMapGeoFenceRegionType.g.dart | 35 +
lib/src/ios/AMapLocationAccuracyMode.g.dart | 30 +
lib/src/ios/AMapLocationCircleRegion.g.dart | 129 +
lib/src/ios/AMapLocationCoordinateType.g.dart | 38 +
lib/src/ios/AMapLocationDistrictItem.g.dart | 141 +
lib/src/ios/AMapLocationErrorCode.g.dart | 59 +
lib/src/ios/AMapLocationManager.g.dart | 630 ++
.../ios/AMapLocationManagerDelegate.g.dart | 201 +
lib/src/ios/AMapLocationPOIItem.g.dart | 281 +
lib/src/ios/AMapLocationPoint.g.dart | 147 +
lib/src/ios/AMapLocationPolygonRegion.g.dart | 129 +
lib/src/ios/AMapLocationReGeocode.g.dart | 361 +
.../ios/AMapLocationReGeocodeLanguage.g.dart | 32 +
lib/src/ios/AMapLocationRegion.g.dart | 185 +
lib/src/ios/AMapLocationRegionState.g.dart | 32 +
lib/src/ios/constants.g.dart | 17 +
lib/src/ios/functions.g.dart | 47 +
lib/src/ios/ios.export.g.dart | 30 +
lib/src/ios/type_op.g.dart | 232 +
pubspec.lock | 226 +
pubspec.yaml | 39 +
170 files changed, 40779 insertions(+)
create mode 100644 .gitignore
create mode 100644 CHANGELOG.md
create mode 100644 LICENSE
create mode 100644 README.md
create mode 100644 analysis_options.yaml
create mode 100644 android/build.gradle
create mode 100644 android/settings.gradle
create mode 100644 android/src/main/AndroidManifest.xml
create mode 100644 android/src/main/java/me/yohom/amap_location_fluttify/AmapLocationFluttifyPlugin.java
create mode 100644 android/src/main/java/me/yohom/amap_location_fluttify/sub_handler/SubHandler0.java
create mode 100644 android/src/main/java/me/yohom/amap_location_fluttify/sub_handler/SubHandler1.java
create mode 100644 android/src/main/java/me/yohom/amap_location_fluttify/sub_handler/SubHandler2.java
create mode 100644 android/src/main/java/me/yohom/amap_location_fluttify/sub_handler/custom/SubHandlerCustom.java
create mode 100644 example/.gitignore
create mode 100644 example/README.md
create mode 100644 example/analysis_options.yaml
create mode 100644 example/android/.gradle/7.4/checksums/checksums.lock
create mode 100644 example/android/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock
create mode 100644 example/android/.gradle/7.4/dependencies-accessors/gc.properties
create mode 100644 example/android/.gradle/7.4/fileChanges/last-build.bin
create mode 100644 example/android/.gradle/7.4/fileHashes/fileHashes.lock
create mode 100644 example/android/.gradle/7.4/gc.properties
create mode 100644 example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock
create mode 100644 example/android/.gradle/buildOutputCleanup/cache.properties
create mode 100644 example/android/.gradle/vcs-1/gc.properties
create mode 100644 example/android/app/build.gradle
create mode 100644 example/android/app/src/debug/AndroidManifest.xml
create mode 100644 example/android/app/src/main/AndroidManifest.xml
create mode 100644 example/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
create mode 100644 example/android/app/src/main/java/me/yohom/amap_location_fluttify_example/MainActivity.java
create mode 100644 example/android/app/src/main/res/drawable-v21/launch_background.xml
create mode 100644 example/android/app/src/main/res/drawable/launch_background.xml
create mode 100644 example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
create mode 100644 example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
create mode 100644 example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
create mode 100644 example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
create mode 100644 example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
create mode 100644 example/android/app/src/main/res/values-night/styles.xml
create mode 100644 example/android/app/src/main/res/values/styles.xml
create mode 100644 example/android/app/src/profile/AndroidManifest.xml
create mode 100644 example/android/build.gradle
create mode 100644 example/android/gradle.properties
create mode 100644 example/android/gradle/wrapper/gradle-wrapper.jar
create mode 100644 example/android/gradle/wrapper/gradle-wrapper.properties
create mode 100644 example/android/gradlew
create mode 100644 example/android/gradlew.bat
create mode 100644 example/android/local.properties
create mode 100644 example/android/settings.gradle
create mode 100644 example/ios/Flutter/AppFrameworkInfo.plist
create mode 100644 example/ios/Flutter/Debug.xcconfig
create mode 100644 example/ios/Flutter/Generated.xcconfig
create mode 100644 example/ios/Flutter/Release.xcconfig
create mode 100644 example/ios/Flutter/flutter_export_environment.sh
create mode 100644 example/ios/Podfile
create mode 100644 example/ios/Podfile.lock
create mode 100644 example/ios/Runner.xcodeproj/project.pbxproj
create mode 100644 example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata
create mode 100644 example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
create mode 100644 example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
create mode 100644 example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
create mode 100644 example/ios/Runner.xcworkspace/contents.xcworkspacedata
create mode 100644 example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
create mode 100644 example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
create mode 100644 example/ios/Runner/AppDelegate.h
create mode 100644 example/ios/Runner/AppDelegate.m
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
create mode 100644 example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
create mode 100644 example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json
create mode 100644 example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
create mode 100644 example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
create mode 100644 example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
create mode 100644 example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md
create mode 100644 example/ios/Runner/Base.lproj/LaunchScreen.storyboard
create mode 100644 example/ios/Runner/Base.lproj/Main.storyboard
create mode 100644 example/ios/Runner/GeneratedPluginRegistrant.h
create mode 100644 example/ios/Runner/GeneratedPluginRegistrant.m
create mode 100644 example/ios/Runner/Info.plist
create mode 100644 example/ios/Runner/main.m
create mode 100644 example/lib/main.dart
create mode 100644 example/pubspec.lock
create mode 100644 example/pubspec.yaml
create mode 100644 example/test/widget_test.dart
create mode 100644 ios/Classes/AmapLocationFluttifyPlugin.h
create mode 100644 ios/Classes/AmapLocationFluttifyPlugin.m
create mode 100644 ios/Classes/Anonymous/AMapGeoFenceManagerDelegate_Anonymous.h
create mode 100644 ios/Classes/Anonymous/AMapGeoFenceManagerDelegate_Anonymous.m
create mode 100644 ios/Classes/Anonymous/AMapLocationManagerDelegate_Anonymous.h
create mode 100644 ios/Classes/Anonymous/AMapLocationManagerDelegate_Anonymous.m
create mode 100644 ios/Classes/SubHandler/Custom/SubHandlerCustom.h
create mode 100644 ios/Classes/SubHandler/Custom/SubHandlerCustom.m
create mode 100644 ios/Classes/SubHandler/SubHandler0.h
create mode 100644 ios/Classes/SubHandler/SubHandler0.m
create mode 100644 ios/Classes/SubHandler/SubHandler1.h
create mode 100644 ios/Classes/SubHandler/SubHandler1.m
create mode 100644 ios/amap_location_fluttify.podspec
create mode 100644 lib/amap_location_fluttify.dart
create mode 100644 lib/src/android/android.export.g.dart
create mode 100644 lib/src/android/com/amap/api/fence/DistrictItem.g.dart
create mode 100644 lib/src/android/com/amap/api/fence/GeoFence.g.dart
create mode 100644 lib/src/android/com/amap/api/fence/GeoFenceClient.g.dart
create mode 100644 lib/src/android/com/amap/api/fence/GeoFenceListener.g.dart
create mode 100644 lib/src/android/com/amap/api/fence/PoiItem.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocation.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocationClient.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocationClientOption.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocationClientOption/AMapLocationMode.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocationClientOption/AMapLocationProtocol.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocationClientOption/AMapLocationPurpose.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocationClientOption/GeoLanguage.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocationListener.g.dart
create mode 100644 lib/src/android/com/amap/api/location/AMapLocationQualityReport.g.dart
create mode 100644 lib/src/android/com/amap/api/location/APSService.g.dart
create mode 100644 lib/src/android/com/amap/api/location/CoordUtil.g.dart
create mode 100644 lib/src/android/com/amap/api/location/CoordinateConverter.g.dart
create mode 100644 lib/src/android/com/amap/api/location/CoordinateConverter/CoordType.g.dart
create mode 100644 lib/src/android/com/amap/api/location/DPoint.g.dart
create mode 100644 lib/src/android/com/amap/api/location/UmidtokenInfo.g.dart
create mode 100644 lib/src/android/constants.g.dart
create mode 100644 lib/src/android/type_op.g.dart
create mode 100644 lib/src/facade/amap_location.dart
create mode 100644 lib/src/facade/enums.dart
create mode 100644 lib/src/facade/extensions.dart
create mode 100644 lib/src/facade/models.dart
create mode 100644 lib/src/facade/shared.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceActiveAction.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceCircleRegion.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceDistrictRegion.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceErrorCode.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceManager.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceManagerDelegate.g.dart
create mode 100644 lib/src/ios/AMapGeoFencePOIRegion.g.dart
create mode 100644 lib/src/ios/AMapGeoFencePolygonRegion.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceRegion.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceRegionActiveStatus.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceRegionStatus.g.dart
create mode 100644 lib/src/ios/AMapGeoFenceRegionType.g.dart
create mode 100644 lib/src/ios/AMapLocationAccuracyMode.g.dart
create mode 100644 lib/src/ios/AMapLocationCircleRegion.g.dart
create mode 100644 lib/src/ios/AMapLocationCoordinateType.g.dart
create mode 100644 lib/src/ios/AMapLocationDistrictItem.g.dart
create mode 100644 lib/src/ios/AMapLocationErrorCode.g.dart
create mode 100644 lib/src/ios/AMapLocationManager.g.dart
create mode 100644 lib/src/ios/AMapLocationManagerDelegate.g.dart
create mode 100644 lib/src/ios/AMapLocationPOIItem.g.dart
create mode 100644 lib/src/ios/AMapLocationPoint.g.dart
create mode 100644 lib/src/ios/AMapLocationPolygonRegion.g.dart
create mode 100644 lib/src/ios/AMapLocationReGeocode.g.dart
create mode 100644 lib/src/ios/AMapLocationReGeocodeLanguage.g.dart
create mode 100644 lib/src/ios/AMapLocationRegion.g.dart
create mode 100644 lib/src/ios/AMapLocationRegionState.g.dart
create mode 100644 lib/src/ios/constants.g.dart
create mode 100644 lib/src/ios/functions.g.dart
create mode 100644 lib/src/ios/ios.export.g.dart
create mode 100644 lib/src/ios/type_op.g.dart
create mode 100644 pubspec.lock
create mode 100644 pubspec.yaml
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..29a3a50
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,43 @@
+# Miscellaneous
+*.class
+*.log
+*.pyc
+*.swp
+.DS_Store
+.atom/
+.buildlog/
+.history
+.svn/
+migrate_working_dir/
+
+# IntelliJ related
+*.iml
+*.ipr
+*.iws
+.idea/
+
+# The .vscode folder contains launch configuration and tasks you configure in
+# VS Code which you may wish to be included in version control, so this line
+# is commented out by default.
+#.vscode/
+
+# Flutter/Dart/Pub related
+**/doc/api/
+**/ios/Flutter/.last_build_id
+.dart_tool/
+.flutter-plugins
+.flutter-plugins-dependencies
+.pub-cache/
+.pub/
+/build/
+
+# Symbolication related
+app.*.symbols
+
+# Obfuscation related
+app.*.map.json
+
+# Android Studio will place build artifacts here
+/android/app/debug
+/android/app/profile
+/android/app/release
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..b8b9e87
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,128 @@
+## 0.13.2
+- fix: regecode空安全
+- enhance: 添加监听定位的最小更新距离.
+
+## 0.13.1
+- enhance: 简化导出
+
+## 0.13.0
+- enhance: 提升依赖
+
+## 0.12.0
+- enhance: 更新底层依赖
+- fix: android超时时间单位为毫秒
+
+## 0.11.0
+- enhance: [breaking change] timeout类型换为更直观的Duration类
+- enhance: Location类增加speed字段 [#48]
+
+## 0.10.0
+- enhance: 更新底层依赖
+
+## 0.9.0
+- enhance: [breaking change] 使用原始值代替Future返回, 简化使用
+- roll engine #939e12d7
+
+## 0.8.11
+- roll engine #481e45c1
+
+## 0.8.10
+- roll engine #dbad1c35 (#53)
+- fix: 直接调用stopLocation时, 对client的空判断
+
+## 0.8.9
+- roll engine #0a5ab5f (#39)
+
+## 0.8.8
+- roll engine #b356b08
+
+## 0.8.7
+- roll engine #1053dca
+
+## 0.8.6
+- 提升依赖
+
+## 0.8.5
+- docs: apk下载链接修正
+- docs: 去重重复的信息
+
+## 0.8.4
+- enhance: 加入打包的key
+- docs: README加入apk下载二维码
+- roll engine #107df19
+
+## 0.8.3
+- roll engine #4d92ce0. 主要解决type_op冲突的问题.
+
+## 0.8.2
+- roll engine #5c1b957
+
+## 0.8.1
+- feat: Location增加accuracy字段 (#38)
+
+## 0.8.0
+- enhance: 提升依赖
+- roll engine #ea37ae9
+
+## 0.7.0
+- 提升依赖
+
+## 0.6.0
+- 提升依赖
+
+## 0.5.1
+- enhance: 增加bearing(设备移动方向属性), 此属性需要较长时间时间才能获取到数据, 建议在连续定位中使用.
+- enhance: 提供仅在android端有效的DeviceSensor枚举
+
+## 0.5.0
+- enhance: 导出amap_core_fluttify
+- roll engine #a918944
+- 适配flutter 1.12.13
+
+## 0.4.2
+- fix: 连续定位空指针异常
+
+## 0.4.1
+- fix: 单次定位防止重复订阅
+
+## 0.4.0
+- enhance: [breaking change] 单次和连续定位单独实现,并返回Future和Stream
+
+## 0.3.2
+- 解决依赖冲突
+
+## 0.3.1
+- 更新依赖
+
+## 0.3.0
+- 更新底层
+
+## 0.2.7
+- doc: 增加`await`的说明
+- feat: 增加ios端requireAlwaysAuth的处理
+
+## 0.2.6
+- fix: dispose时,置空_androidClient和_iosClient,防止在页面级别的State中释放了client之后,重新定位时,client不为空而没有去重新创建原生client导致的原生client为空。
+
+## 0.2.5
+- enhancement: 经纬度统一使用LatLng
+- enhancement: 调整设置回调的位置
+
+## 0.2.4
+- fix: 导出enums.dart; 删除utils.g.dart
+
+## 0.2.3
+- fix: 高德的key不应该放在library模块里
+
+## 0.2.2
+- fix: 释放原生对象时, 只释放当前插件创建的对象
+
+## 0.2.1
+- 更新README
+- 更新引擎版本 38df15a
+
+## 0.2.0
+- setLocationListener -> startLocation
+
+## 0.1.0
+- 单次定位; 连续定位
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..12fde5f
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,13 @@
+Copyright 2020 yohom
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
\ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f6d9023
--- /dev/null
+++ b/README.md
@@ -0,0 +1,56 @@
+![Logo](https://github.com/fluttify-project/fluttify-core-example/blob/develop/other/Logo-Landscape.png?raw=true)
+
+# 高德 `定位`组件
+
+[![pub package](https://img.shields.io/pub/v/amap_location_fluttify.svg)](https://pub.Flutter-io.cn/packages/amap_location_fluttify)
+
+Dart接口基于[fluttify](https://github.com/yohom/fluttify-core-example)引擎生成. dartdoc[接口文档](https://pub.flutter-io.cn/documentation/amap_location_fluttify/latest/).
+
+## DEMO 与 社区
+
+安装:
+```yaml
+dependencies:
+ flutter:
+ sdk: flutter
+ amap_location_fluttify: ^x.x.x
+```
+
+导入:
+```dart
+import 'package:amap_location_fluttify/amap_location_fluttify.dart';
+```
+
+使用:
+```dart
+/// !注意: 只要是返回Future的方法, 一律使用`await`修饰, 确保当前方法执行完成后再执行下一行, 在不能使用`await`修饰的环境下, 在`then`方法中执行下一步.
+/// 初始化 iOS在init方法中设置, android需要去AndroidManifest.xml里去设置, 详见 https://lbs.amap.com/api/android-sdk/gettingstarted
+await AmapCore.init('ios key');
+
+// 单次定位
+if (await requestPermission()) {
+ final location = await AmapLocation.fetchLocation();
+ setState(() => _location = location);
+}
+
+// 连续定位
+if (await requestPermission()) {
+ AmapLocation.listenLocation()
+ .listen((location) => setState(() => _location = location));
+}
+```
+
+## LICENSE
+> Copyright 2020 yohom
+>
+> Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+>
+> http://www.apache.org/licenses/LICENSE-2.0
+>
+> Unless required by applicable law or agreed to in writing, software
+> distributed under the License is distributed on an "AS IS" BASIS,
+> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+> See the License for the specific language governing permissions and
+> limitations under the License.
\ No newline at end of file
diff --git a/analysis_options.yaml b/analysis_options.yaml
new file mode 100644
index 0000000..6fd1517
--- /dev/null
+++ b/analysis_options.yaml
@@ -0,0 +1,9 @@
+include: package:pedantic/analysis_options.yaml
+
+linter:
+ rules:
+ camel_case_types: false
+ camel_case_extensions: false
+ omit_local_variable_types: false
+ prefer_single_quotes: false
+ unnecessary_this: false
\ No newline at end of file
diff --git a/android/build.gradle b/android/build.gradle
new file mode 100644
index 0000000..07ac0f9
--- /dev/null
+++ b/android/build.gradle
@@ -0,0 +1,70 @@
+group 'me.yohom.amap_location_fluttify'
+version '1.0-SNAPSHOT'
+
+buildscript {
+ repositories {
+ google()
+ mavenCentral()
+
+ }
+
+ dependencies {
+ classpath 'com.android.tools.build:gradle:7.1.2'
+ }
+}
+
+rootProject.allprojects {
+ repositories {
+ google()
+ mavenCentral()
+
+ }
+}
+
+apply plugin: 'com.android.library'
+
+android {
+ if (project.android.hasProperty("namespace")) {
+ namespace = "me.yohom.amap_location_fluttify"
+ }
+ compileSdkVersion 31
+
+ sourceSets {
+ main.java.srcDirs += 'src/main/kotlin'
+ main.jniLibs.srcDir 'libs'
+ }
+ defaultConfig {
+ minSdkVersion 16
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
+ }
+ lintOptions {
+ disable 'InvalidPackage'
+ }
+ compileOptions {
+ targetCompatibility JavaVersion.VERSION_1_8
+ sourceCompatibility JavaVersion.VERSION_1_8
+ }
+ packagingOptions {
+ merge 'res/values/values.xml'
+ merge 'AndroidManifest.xml'
+ merge 'R.txt'
+ merge 'classes.jar'
+ merge 'proguard.txt'
+ }
+ buildTypes {
+ release {
+ consumerProguardFiles "proguard-rules.pro"
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
+ implementation 'androidx.annotation:annotation:1.1.0'
+ implementation 'androidx.appcompat:appcompat:1.1.0'
+ compileOnly rootProject.findProject(":foundation_fluttify")
+ // flutter plugin dependency
+
+ // sdk dependency
+ api 'com.amap.api:location:6.1.0'
+}
diff --git a/android/settings.gradle b/android/settings.gradle
new file mode 100644
index 0000000..08520ab
--- /dev/null
+++ b/android/settings.gradle
@@ -0,0 +1 @@
+rootProject.name = 'amap_location_fluttify'
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..6912231
--- /dev/null
+++ b/android/src/main/AndroidManifest.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/android/src/main/java/me/yohom/amap_location_fluttify/AmapLocationFluttifyPlugin.java b/android/src/main/java/me/yohom/amap_location_fluttify/AmapLocationFluttifyPlugin.java
new file mode 100644
index 0000000..86f43f7
--- /dev/null
+++ b/android/src/main/java/me/yohom/amap_location_fluttify/AmapLocationFluttifyPlugin.java
@@ -0,0 +1,154 @@
+//////////////////////////////////////////////////////////
+// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
+//////////////////////////////////////////////////////////
+
+package me.yohom.amap_location_fluttify;
+
+import android.os.Bundle;
+import android.util.Log;
+import android.app.Activity;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import androidx.annotation.NonNull;
+import io.flutter.embedding.engine.plugins.FlutterPlugin;
+import io.flutter.embedding.engine.plugins.activity.ActivityAware;
+import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding;
+import io.flutter.plugin.common.BinaryMessenger;
+import io.flutter.plugin.common.MethodCall;
+import io.flutter.plugin.common.MethodChannel;
+import io.flutter.plugin.common.PluginRegistry.Registrar;
+import io.flutter.plugin.common.StandardMethodCodec;
+import io.flutter.plugin.platform.PlatformViewRegistry;
+
+import me.yohom.amap_location_fluttify.sub_handler.*;
+import me.yohom.amap_location_fluttify.sub_handler.custom.SubHandlerCustom;
+import me.yohom.foundation_fluttify.core.FluttifyMessageCodec;
+
+import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog;
+import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP;
+
+@SuppressWarnings("ALL")
+public class AmapLocationFluttifyPlugin implements FlutterPlugin, MethodChannel.MethodCallHandler, ActivityAware {
+
+ private static List