├── .github
├── ISSUE_TEMPLATE
│ ├── ---.md
│ ├── bug-report.md
│ └── bug.md
├── stale.yml
└── workflows
│ └── CI.yml
├── .gitignore
├── .metadata
├── CHANGELOG.md
├── LICENSE
├── README.md
├── analysis_options.yaml
├── android
├── .gitignore
├── build.gradle
├── gradle.properties
├── gradle
│ └── wrapper
│ │ └── gradle-wrapper.properties
├── proguard-rules.pro
├── settings.gradle
└── src
│ └── main
│ ├── AndroidManifest.xml
│ └── java
│ └── me
│ └── yohom
│ └── amap_location_fluttify
│ ├── AmapLocationFluttifyPlugin.java
│ └── sub_handler
│ ├── SubHandler0.java
│ ├── SubHandler1.java
│ ├── SubHandler2.java
│ └── custom
│ └── SubHandlerCustom.java
├── assets
└── amap_location_fluttify_apk.png
├── example
├── .gitignore
├── .metadata
├── README.md
├── android
│ ├── .gitignore
│ ├── amap_location_test.jks
│ ├── app
│ │ ├── build.gradle
│ │ └── src
│ │ │ ├── debug
│ │ │ └── AndroidManifest.xml
│ │ │ ├── main
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── java
│ │ │ │ └── me
│ │ │ │ │ └── yohom
│ │ │ │ │ └── amap_location_fluttify_example
│ │ │ │ │ └── MainActivity.java
│ │ │ └── res
│ │ │ │ ├── drawable
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ └── values
│ │ │ │ └── styles.xml
│ │ │ └── profile
│ │ │ └── AndroidManifest.xml
│ ├── build.gradle
│ ├── gradle.properties
│ ├── gradle
│ │ └── wrapper
│ │ │ └── gradle-wrapper.properties
│ └── settings.gradle
├── ios
│ ├── .gitignore
│ ├── Flutter
│ │ ├── .last_build_id
│ │ ├── AppFrameworkInfo.plist
│ │ ├── Debug.xcconfig
│ │ └── Release.xcconfig
│ ├── Podfile
│ ├── Runner.xcodeproj
│ │ ├── project.pbxproj
│ │ ├── project.xcworkspace
│ │ │ └── contents.xcworkspacedata
│ │ └── xcshareddata
│ │ │ └── xcschemes
│ │ │ └── Runner.xcscheme
│ ├── Runner.xcworkspace
│ │ └── contents.xcworkspacedata
│ └── Runner
│ │ ├── AppDelegate.h
│ │ ├── AppDelegate.m
│ │ ├── Assets.xcassets
│ │ ├── AppIcon.appiconset
│ │ │ ├── Contents.json
│ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ ├── Icon-App-20x20@1x.png
│ │ │ ├── Icon-App-20x20@2x.png
│ │ │ ├── Icon-App-20x20@3x.png
│ │ │ ├── Icon-App-29x29@1x.png
│ │ │ ├── Icon-App-29x29@2x.png
│ │ │ ├── Icon-App-29x29@3x.png
│ │ │ ├── Icon-App-40x40@1x.png
│ │ │ ├── Icon-App-40x40@2x.png
│ │ │ ├── Icon-App-40x40@3x.png
│ │ │ ├── Icon-App-60x60@2x.png
│ │ │ ├── Icon-App-60x60@3x.png
│ │ │ ├── Icon-App-76x76@1x.png
│ │ │ ├── Icon-App-76x76@2x.png
│ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ └── LaunchImage.imageset
│ │ │ ├── Contents.json
│ │ │ ├── LaunchImage.png
│ │ │ ├── LaunchImage@2x.png
│ │ │ ├── LaunchImage@3x.png
│ │ │ └── README.md
│ │ ├── Base.lproj
│ │ ├── LaunchScreen.storyboard
│ │ └── Main.storyboard
│ │ ├── Info.plist
│ │ └── main.m
├── lib
│ └── main.dart
├── pubspec.lock
├── pubspec.yaml
├── test
│ └── widget_test.dart
└── web
│ ├── icons
│ ├── Icon-192.png
│ └── Icon-512.png
│ ├── index.html
│ └── manifest.json
├── ios
├── .gitignore
├── Assets
│ └── .gitkeep
├── Classes
│ ├── AmapLocationFluttifyPlugin.h
│ ├── AmapLocationFluttifyPlugin.m
│ └── SubHandler
│ │ ├── Custom
│ │ ├── SubHandlerCustom.h
│ │ └── SubHandlerCustom.m
│ │ ├── SubHandler0.h
│ │ ├── SubHandler0.m
│ │ ├── SubHandler1.h
│ │ └── SubHandler1.m
└── amap_location_fluttify.podspec
├── lib
├── amap_location_fluttify.dart
└── src
│ ├── android
│ ├── android.export.g.dart
│ ├── com
│ │ └── amap
│ │ │ └── api
│ │ │ ├── fence
│ │ │ ├── DistrictItem.g.dart
│ │ │ ├── GeoFence.g.dart
│ │ │ ├── GeoFenceClient.g.dart
│ │ │ ├── GeoFenceListener.g.dart
│ │ │ └── PoiItem.g.dart
│ │ │ └── location
│ │ │ ├── AMapLocation.g.dart
│ │ │ ├── AMapLocationClient.g.dart
│ │ │ ├── AMapLocationClientOption.g.dart
│ │ │ ├── AMapLocationClientOption
│ │ │ ├── AMapLocationMode.g.dart
│ │ │ ├── AMapLocationProtocol.g.dart
│ │ │ ├── AMapLocationPurpose.g.dart
│ │ │ └── GeoLanguage.g.dart
│ │ │ ├── AMapLocationListener.g.dart
│ │ │ ├── AMapLocationQualityReport.g.dart
│ │ │ ├── APSService.g.dart
│ │ │ ├── CoordUtil.g.dart
│ │ │ ├── CoordinateConverter.g.dart
│ │ │ ├── CoordinateConverter
│ │ │ └── CoordType.g.dart
│ │ │ ├── DPoint.g.dart
│ │ │ └── UmidtokenInfo.g.dart
│ ├── constants.g.dart
│ └── type_op.g.dart
│ ├── facade
│ ├── amap_location.dart
│ ├── delegates.dart
│ ├── enums.dart
│ ├── extensions.dart
│ ├── models.dart
│ └── objects.g.dart
│ └── ios
│ ├── AMapGeoFenceActiveAction.g.dart
│ ├── AMapGeoFenceCircleRegion.g.dart
│ ├── AMapGeoFenceDistrictRegion.g.dart
│ ├── AMapGeoFenceErrorCode.g.dart
│ ├── AMapGeoFenceManager.g.dart
│ ├── AMapGeoFenceManagerDelegate.g.dart
│ ├── AMapGeoFencePOIRegion.g.dart
│ ├── AMapGeoFencePolygonRegion.g.dart
│ ├── AMapGeoFenceRegion.g.dart
│ ├── AMapGeoFenceRegionActiveStatus.g.dart
│ ├── AMapGeoFenceRegionStatus.g.dart
│ ├── AMapGeoFenceRegionType.g.dart
│ ├── AMapLocationCircleRegion.g.dart
│ ├── AMapLocationCoordinateType.g.dart
│ ├── AMapLocationDistrictItem.g.dart
│ ├── AMapLocationErrorCode.g.dart
│ ├── AMapLocationManager.g.dart
│ ├── AMapLocationManagerDelegate.g.dart
│ ├── AMapLocationPOIItem.g.dart
│ ├── AMapLocationPoint.g.dart
│ ├── AMapLocationPolygonRegion.g.dart
│ ├── AMapLocationReGeocode.g.dart
│ ├── AMapLocationReGeocodeLanguage.g.dart
│ ├── AMapLocationRegion.g.dart
│ ├── AMapLocationRegionState.g.dart
│ ├── constants.g.dart
│ ├── functions.g.dart
│ ├── ios.export.g.dart
│ └── type_op.g.dart
├── pubspec.lock
├── pubspec.yaml
└── test
└── amap_location_fluttify_test.dart
/.github/ISSUE_TEMPLATE/---.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 新功能
3 | about: 添加功能
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **功能描述**
11 |
12 | **Native端对应字段/方法**
13 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug-report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: 遇到了bug.
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **插件版本**
11 |
12 | **遇到bug的平台(Android/iOS)**
13 |
14 | **描述bug**
15 |
16 | **复现步骤**
17 |
18 | **期望行为**
19 |
20 | **截图**
21 |
22 | **flutter doctor**
23 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug
3 | about: 遇到了bug.
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **插件版本**
11 |
12 | **遇到bug的平台(Android/iOS)**
13 |
14 | **描述bug**
15 |
16 | **复现步骤**
17 |
18 | **期望行为**
19 |
20 | **截图**
21 |
22 | **flutter doctor**
23 |
--------------------------------------------------------------------------------
/.github/stale.yml:
--------------------------------------------------------------------------------
1 | # Number of days of inactivity before an issue becomes stale
2 | daysUntilStale: 60
3 | # Number of days of inactivity before a stale issue is closed
4 | daysUntilClose: 7
5 | # Issues with these labels will never be considered stale
6 | exemptLabels:
7 | - pinned
8 | - security
9 | # Label to use when marking an issue as stale
10 | staleLabel: stale
11 | # Comment to post when marking an issue as stale. Set to `false` to disable
12 | markComment: >
13 | This issue has been automatically marked as stale because it has not had
14 | recent activity. It will be closed if no further activity occurs. Thank you
15 | for your contributions.
16 | # Comment to post when closing a stale issue. Set to `false` to disable
17 | closeComment: false
--------------------------------------------------------------------------------
/.github/workflows/CI.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 | on: [push]
3 | jobs:
4 | build:
5 | runs-on: macos-latest
6 | steps:
7 | - uses: actions/checkout@v1
8 | - uses: actions/setup-java@v1
9 | with:
10 | java-version: '12.x'
11 | - uses: subosito/flutter-action@v1
12 | with:
13 | channel: 'stable'
14 | - run: flutter pub get
15 | - run: flutter test
16 | - run: cd example; flutter build apk; flutter build ios --no-codesign;
17 |
18 |
19 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .dart_tool/
3 |
4 | .packages
5 | .pub/
6 |
7 | build/
8 | *.iml
--------------------------------------------------------------------------------
/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 1aedbb1835bd6eb44550293d57d4d124f19901f0
8 | channel: stable
9 |
10 | project_type: plugin
11 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 0.13.2
2 | - fix: regecode空安全
3 | - enhance: 添加监听定位的最小更新距离.
4 |
5 | ## 0.13.1
6 | - enhance: 简化导出
7 |
8 | ## 0.13.0
9 | - enhance: 提升依赖
10 |
11 | ## 0.12.0
12 | - enhance: 更新底层依赖
13 | - fix: android超时时间单位为毫秒
14 |
15 | ## 0.11.0
16 | - enhance: [breaking change] timeout类型换为更直观的Duration类
17 | - enhance: Location类增加speed字段 [#48]
18 |
19 | ## 0.10.0
20 | - enhance: 更新底层依赖
21 |
22 | ## 0.9.0
23 | - enhance: [breaking change] 使用原始值代替Future返回, 简化使用
24 | - roll engine #939e12d7
25 |
26 | ## 0.8.11
27 | - roll engine #481e45c1
28 |
29 | ## 0.8.10
30 | - roll engine #dbad1c35 (#53)
31 | - fix: 直接调用stopLocation时, 对client的空判断
32 |
33 | ## 0.8.9
34 | - roll engine #0a5ab5f (#39)
35 |
36 | ## 0.8.8
37 | - roll engine #b356b08
38 |
39 | ## 0.8.7
40 | - roll engine #1053dca
41 |
42 | ## 0.8.6
43 | - 提升依赖
44 |
45 | ## 0.8.5
46 | - docs: apk下载链接修正
47 | - docs: 去重重复的信息
48 |
49 | ## 0.8.4
50 | - enhance: 加入打包的key
51 | - docs: README加入apk下载二维码
52 | - roll engine #107df19
53 |
54 | ## 0.8.3
55 | - roll engine #4d92ce0. 主要解决type_op冲突的问题.
56 |
57 | ## 0.8.2
58 | - roll engine #5c1b957
59 |
60 | ## 0.8.1
61 | - feat: Location增加accuracy字段 (#38)
62 |
63 | ## 0.8.0
64 | - enhance: 提升依赖
65 | - roll engine #ea37ae9
66 |
67 | ## 0.7.0
68 | - 提升依赖
69 |
70 | ## 0.6.0
71 | - 提升依赖
72 |
73 | ## 0.5.1
74 | - enhance: 增加bearing(设备移动方向属性), 此属性需要较长时间时间才能获取到数据, 建议在连续定位中使用.
75 | - enhance: 提供仅在android端有效的DeviceSensor枚举
76 |
77 | ## 0.5.0
78 | - enhance: 导出amap_core_fluttify
79 | - roll engine #a918944
80 | - 适配flutter 1.12.13
81 |
82 | ## 0.4.2
83 | - fix: 连续定位空指针异常
84 |
85 | ## 0.4.1
86 | - fix: 单次定位防止重复订阅
87 |
88 | ## 0.4.0
89 | - enhance: [breaking change] 单次和连续定位单独实现,并返回Future和Stream
90 |
91 | ## 0.3.2
92 | - 解决依赖冲突
93 |
94 | ## 0.3.1
95 | - 更新依赖
96 |
97 | ## 0.3.0
98 | - 更新底层
99 |
100 | ## 0.2.7
101 | - doc: 增加`await`的说明
102 | - feat: 增加ios端requireAlwaysAuth的处理
103 |
104 | ## 0.2.6
105 | - fix: dispose时,置空_androidClient和_iosClient,防止在页面级别的State中释放了client之后,重新定位时,client不为空而没有去重新创建原生client导致的原生client为空。
106 |
107 | ## 0.2.5
108 | - enhancement: 经纬度统一使用LatLng
109 | - enhancement: 调整设置回调的位置
110 |
111 | ## 0.2.4
112 | - fix: 导出enums.dart; 删除utils.g.dart
113 |
114 | ## 0.2.3
115 | - fix: 高德的key不应该放在library模块里
116 |
117 | ## 0.2.2
118 | - fix: 释放原生对象时, 只释放当前插件创建的对象
119 |
120 | ## 0.2.1
121 | - 更新README
122 | - 更新引擎版本 38df15a
123 |
124 | ## 0.2.0
125 | - setLocationListener -> startLocation
126 |
127 | ## 0.1.0
128 | - 单次定位; 连续定位
129 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2020 yohom
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | # 高德 `定位`组件
4 |
5 | [](https://pub.Flutter-io.cn/packages/amap_location_fluttify)
6 |
7 | Dart接口基于[fluttify](https://github.com/yohom/fluttify-core-example)引擎生成. dartdoc[接口文档](https://pub.flutter-io.cn/documentation/amap_location_fluttify/latest/).
8 |
9 | ## DEMO 与 社区
10 |
11 | | Demo | QQ群 |
12 | | :----------: | :----------: |
13 | | 扫描二维码
或者
[点击下载](https://github.com/fluttify-project/amap_location_fluttify/blob/master/example/build/app/outputs/apk/release/app-release.apk?raw=true)
| 加入QQ群讨论
|
14 |
15 | 安装:
16 | ```yaml
17 | dependencies:
18 | flutter:
19 | sdk: flutter
20 | amap_location_fluttify: ^x.x.x
21 | ```
22 |
23 | 导入:
24 | ```dart
25 | import 'package:amap_location_fluttify/amap_location_fluttify.dart';
26 | ```
27 |
28 | 使用:
29 | ```dart
30 | /// !注意: 只要是返回Future的方法, 一律使用`await`修饰, 确保当前方法执行完成后再执行下一行, 在不能使用`await`修饰的环境下, 在`then`方法中执行下一步.
31 | /// 初始化 iOS在init方法中设置, android需要去AndroidManifest.xml里去设置, 详见 https://lbs.amap.com/api/android-sdk/gettingstarted
32 | await AmapCore.init('ios key');
33 |
34 | // 单次定位
35 | if (await requestPermission()) {
36 | final location = await AmapLocation.fetchLocation();
37 | setState(() => _location = location);
38 | }
39 |
40 | // 连续定位
41 | if (await requestPermission()) {
42 | AmapLocation.listenLocation()
43 | .listen((location) => setState(() => _location = location));
44 | }
45 | ```
46 |
47 | ## LICENSE
48 | > Copyright 2020 yohom
49 | >
50 | > Licensed under the Apache License, Version 2.0 (the "License");
51 | you may not use this file except in compliance with the License.
52 | You may obtain a copy of the License at
53 | >
54 | > http://www.apache.org/licenses/LICENSE-2.0
55 | >
56 | > Unless required by applicable law or agreed to in writing, software
57 | > distributed under the License is distributed on an "AS IS" BASIS,
58 | > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59 | > See the License for the specific language governing permissions and
60 | > limitations under the License.
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | include: package:pedantic/analysis_options.yaml
2 |
3 | linter:
4 | rules:
5 | camel_case_types: false
6 | camel_case_extensions: false
7 | omit_local_variable_types: false
8 | prefer_single_quotes: false
9 | unnecessary_this: false
--------------------------------------------------------------------------------
/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/workspace.xml
5 | /.idea/libraries
6 | .DS_Store
7 | /build
8 | /captures
9 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | group 'me.yohom.amap_location_fluttify'
2 | version '1.0-SNAPSHOT'
3 |
4 | buildscript {
5 | repositories {
6 | google()
7 | jcenter()
8 | maven { url 'http://download.flutter.io' }
9 | maven { url "https://oss.sonatype.org/content/groups/public" }
10 | maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
11 | maven { url "https://dl.bintray.com/aweme-open-sdk-team/public" }
12 | maven { url 'http://developer.huawei.com/repo/' }
13 | }
14 |
15 | dependencies {
16 | classpath 'com.android.tools.build:gradle:3.5.0'
17 | }
18 | }
19 |
20 | rootProject.allprojects {
21 | repositories {
22 | google()
23 | jcenter()
24 | maven { url 'http://download.flutter.io' }
25 | maven { url "https://oss.sonatype.org/content/groups/public" }
26 | maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
27 | maven { url "https://dl.bintray.com/aweme-open-sdk-team/public" }
28 | maven { url 'http://developer.huawei.com/repo/' }
29 | }
30 | }
31 |
32 | apply plugin: 'com.android.library'
33 |
34 | android {
35 | compileSdkVersion 28
36 |
37 | sourceSets {
38 | main.java.srcDirs += 'src/main/kotlin'
39 | main.jniLibs.srcDir 'libs'
40 | }
41 | defaultConfig {
42 | minSdkVersion 16
43 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
44 | }
45 | lintOptions {
46 | disable 'InvalidPackage'
47 | }
48 | compileOptions {
49 | targetCompatibility JavaVersion.VERSION_1_8
50 | sourceCompatibility JavaVersion.VERSION_1_8
51 | }
52 | packagingOptions {
53 | merge 'res/values/values.xml'
54 | merge 'AndroidManifest.xml'
55 | merge 'R.txt'
56 | merge 'classes.jar'
57 | merge 'proguard.txt'
58 | }
59 | buildTypes {
60 | release {
61 | consumerProguardFiles "proguard-rules.pro"
62 | }
63 | }
64 | }
65 |
66 | dependencies {
67 | implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
68 | implementation 'androidx.annotation:annotation:1.1.0'
69 | implementation 'androidx.appcompat:appcompat:1.1.0'
70 | compileOnly rootProject.findProject(":foundation_fluttify")
71 | // flutter plugin dependency
72 | compileOnly rootProject.findProject(":amap_core_fluttify")
73 | // sdk dependency
74 | api 'com.amap.api:location:5.2.0'
75 | }
76 |
--------------------------------------------------------------------------------
/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
3 | android.useAndroidX=true
4 | android.enableJetifier=true
5 |
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | zipStoreBase=GRADLE_USER_HOME
4 | zipStorePath=wrapper/dists
5 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip
6 |
--------------------------------------------------------------------------------
/android/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
23 | # 高德地图混淆规则
24 | -keep class com.amap.api.location.**{*;}
25 | -keep class com.amap.api.fence.**{*;}
26 | -keep class com.autonavi.aps.amapapi.model.**{*;}
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'amap_location_fluttify'
2 |
--------------------------------------------------------------------------------
/android/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/android/src/main/java/me/yohom/amap_location_fluttify/AmapLocationFluttifyPlugin.java:
--------------------------------------------------------------------------------
1 | //////////////////////////////////////////////////////////
2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT.
3 | //////////////////////////////////////////////////////////
4 |
5 | package me.yohom.amap_location_fluttify;
6 |
7 | import android.os.Bundle;
8 | import android.util.Log;
9 | import android.app.Activity;
10 |
11 | import java.util.ArrayList;
12 | import java.util.Collection;
13 | import java.util.HashMap;
14 | import java.util.List;
15 | import java.util.Map;
16 |
17 | import androidx.annotation.NonNull;
18 | import io.flutter.embedding.engine.plugins.FlutterPlugin;
19 | import io.flutter.embedding.engine.plugins.activity.ActivityAware;
20 | import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding;
21 | import io.flutter.plugin.common.BinaryMessenger;
22 | import io.flutter.plugin.common.MethodCall;
23 | import io.flutter.plugin.common.MethodChannel;
24 | import io.flutter.plugin.common.PluginRegistry.Registrar;
25 | import io.flutter.plugin.common.StandardMethodCodec;
26 | import io.flutter.plugin.platform.PlatformViewRegistry;
27 |
28 | import me.yohom.amap_location_fluttify.sub_handler.*;
29 | import me.yohom.amap_location_fluttify.sub_handler.custom.SubHandlerCustom;
30 | import me.yohom.foundation_fluttify.core.FluttifyMessageCodec;
31 |
32 | import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog;
33 | import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP;
34 |
35 | @SuppressWarnings("ALL")
36 | public class AmapLocationFluttifyPlugin implements FlutterPlugin, MethodChannel.MethodCallHandler, ActivityAware {
37 |
38 | private static List