Browse Source

Merge branch 'master' of https://git.i2erp.cn/plugins/amap_location

# Conflicts:
#	.idea/workspace.xml
hwh97 5 years ago
parent
commit
a4bb47b284

+ 21 - 11
.idea/libraries/Dart_SDK.xml

@@ -1,17 +1,27 @@
 <component name="libraryTable">
 <component name="libraryTable">
   <library name="Dart SDK">
   <library name="Dart SDK">
     <CLASSES>
     <CLASSES>
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/async" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/collection" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/convert" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/core" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/developer" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/html" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/io" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/isolate" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/math" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/mirrors" />
-      <root url="file://C:/flutter/flutter/bin/cache/dart-sdk/lib/typed_data" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/async" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/cli" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/collection" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/convert" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/core" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/developer" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/ffi" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/html" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/indexed_db" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/io" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/isolate" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/js" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/js_util" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/math" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/mirrors" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/svg" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/typed_data" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/wasm" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/web_audio" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/web_gl" />
+      <root url="file://$PROJECT_DIR$/../../flutter/bin/cache/dart-sdk/lib/web_sql" />
     </CLASSES>
     </CLASSES>
     <JAVADOC />
     <JAVADOC />
     <SOURCES />
     <SOURCES />

+ 1 - 0
amap_location.iml

@@ -11,6 +11,7 @@
       <excludeFolder url="file://$MODULE_DIR$/example/.dart_tool" />
       <excludeFolder url="file://$MODULE_DIR$/example/.dart_tool" />
       <excludeFolder url="file://$MODULE_DIR$/example/.pub" />
       <excludeFolder url="file://$MODULE_DIR$/example/.pub" />
       <excludeFolder url="file://$MODULE_DIR$/example/build" />
       <excludeFolder url="file://$MODULE_DIR$/example/build" />
+      <excludeFolder url="file://$MODULE_DIR$/example/ios/Flutter/App.framework/flutter_assets/packages" />
     </content>
     </content>
     <orderEntry type="sourceFolder" forTests="false" />
     <orderEntry type="sourceFolder" forTests="false" />
     <orderEntry type="library" name="Dart SDK" level="project" />
     <orderEntry type="library" name="Dart SDK" level="project" />

+ 1 - 0
example/ios/Flutter/Debug.xcconfig

@@ -1 +1,2 @@
+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
 #include "Generated.xcconfig"
 #include "Generated.xcconfig"

+ 1 - 0
example/ios/Flutter/Release.xcconfig

@@ -1 +1,2 @@
+#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
 #include "Generated.xcconfig"
 #include "Generated.xcconfig"

+ 69 - 1
example/ios/Runner.xcodeproj/project.pbxproj

@@ -11,6 +11,7 @@
 		3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
 		3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
 		3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
 		3B80C3941E831B6300D905FE /* App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; };
 		3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
 		3B80C3951E831B6300D905FE /* App.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3B80C3931E831B6300D905FE /* App.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+		6AEB02DB029C1071BA8726F7 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B0ED1C984BFFAD6D8A0113FE /* libPods-Runner.a */; };
 		9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
 		9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; };
 		9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
 		9705A1C71CF904A300538489 /* Flutter.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 9740EEBA1CF902C7004384FC /* Flutter.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
 		978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
 		978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
@@ -38,8 +39,10 @@
 /* Begin PBXFileReference section */
 /* Begin PBXFileReference section */
 		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
 		1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
 		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
 		1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
+		246DACBB5A8A7F7A0DA90C0F /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
 		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
 		3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
 		3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
 		3B80C3931E831B6300D905FE /* App.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = App.framework; path = Flutter/App.framework; sourceTree = "<group>"; };
+		5F08EC02D0B81FBC9584E536 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
 		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
 		7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
 		7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
 		7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
 		7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
 		7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
@@ -52,6 +55,8 @@
 		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
 		97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
 		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
 		97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
 		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 		97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
+		B0ED1C984BFFAD6D8A0113FE /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
+		EE8D404483012AE03ED82A32 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 /* End PBXFileReference section */
 
 
 /* Begin PBXFrameworksBuildPhase section */
 /* Begin PBXFrameworksBuildPhase section */
@@ -61,12 +66,31 @@
 			files = (
 			files = (
 				9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
 				9705A1C61CF904A100538489 /* Flutter.framework in Frameworks */,
 				3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
 				3B80C3941E831B6300D905FE /* App.framework in Frameworks */,
+				6AEB02DB029C1071BA8726F7 /* libPods-Runner.a in Frameworks */,
 			);
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			runOnlyForDeploymentPostprocessing = 0;
 		};
 		};
 /* End PBXFrameworksBuildPhase section */
 /* End PBXFrameworksBuildPhase section */
 
 
 /* Begin PBXGroup section */
 /* Begin PBXGroup section */
+		2AEBB5101808CC950A7A748C /* Frameworks */ = {
+			isa = PBXGroup;
+			children = (
+				B0ED1C984BFFAD6D8A0113FE /* libPods-Runner.a */,
+			);
+			name = Frameworks;
+			sourceTree = "<group>";
+		};
+		8EC9BBC6D9CC9A980D239C97 /* Pods */ = {
+			isa = PBXGroup;
+			children = (
+				EE8D404483012AE03ED82A32 /* Pods-Runner.debug.xcconfig */,
+				5F08EC02D0B81FBC9584E536 /* Pods-Runner.release.xcconfig */,
+				246DACBB5A8A7F7A0DA90C0F /* Pods-Runner.profile.xcconfig */,
+			);
+			path = Pods;
+			sourceTree = "<group>";
+		};
 		9740EEB11CF90186004384FC /* Flutter */ = {
 		9740EEB11CF90186004384FC /* Flutter */ = {
 			isa = PBXGroup;
 			isa = PBXGroup;
 			children = (
 			children = (
@@ -86,7 +110,8 @@
 				9740EEB11CF90186004384FC /* Flutter */,
 				9740EEB11CF90186004384FC /* Flutter */,
 				97C146F01CF9000F007C117D /* Runner */,
 				97C146F01CF9000F007C117D /* Runner */,
 				97C146EF1CF9000F007C117D /* Products */,
 				97C146EF1CF9000F007C117D /* Products */,
-				CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
+				8EC9BBC6D9CC9A980D239C97 /* Pods */,
+				2AEBB5101808CC950A7A748C /* Frameworks */,
 			);
 			);
 			sourceTree = "<group>";
 			sourceTree = "<group>";
 		};
 		};
@@ -129,12 +154,14 @@
 			isa = PBXNativeTarget;
 			isa = PBXNativeTarget;
 			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
 			buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
 			buildPhases = (
 			buildPhases = (
+				7FAD61CFC10A47588D89E05F /* [CP] Check Pods Manifest.lock */,
 				9740EEB61CF901F6004384FC /* Run Script */,
 				9740EEB61CF901F6004384FC /* Run Script */,
 				97C146EA1CF9000F007C117D /* Sources */,
 				97C146EA1CF9000F007C117D /* Sources */,
 				97C146EB1CF9000F007C117D /* Frameworks */,
 				97C146EB1CF9000F007C117D /* Frameworks */,
 				97C146EC1CF9000F007C117D /* Resources */,
 				97C146EC1CF9000F007C117D /* Resources */,
 				9705A1C41CF9048500538489 /* Embed Frameworks */,
 				9705A1C41CF9048500538489 /* Embed Frameworks */,
 				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
 				3B06AD1E1E4923F5004D2608 /* Thin Binary */,
+				DE4388E0B9F914A340E7C81F /* [CP] Embed Pods Frameworks */,
 			);
 			);
 			buildRules = (
 			buildRules = (
 			);
 			);
@@ -156,6 +183,7 @@
 				TargetAttributes = {
 				TargetAttributes = {
 					97C146ED1CF9000F007C117D = {
 					97C146ED1CF9000F007C117D = {
 						CreatedOnToolsVersion = 7.3.1;
 						CreatedOnToolsVersion = 7.3.1;
+						DevelopmentTeam = LRXRX75D5X;
 					};
 					};
 				};
 				};
 			};
 			};
@@ -206,6 +234,28 @@
 			shellPath = /bin/sh;
 			shellPath = /bin/sh;
 			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
 			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" thin";
 		};
 		};
+		7FAD61CFC10A47588D89E05F /* [CP] Check Pods Manifest.lock */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputFileListPaths = (
+			);
+			inputPaths = (
+				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+				"${PODS_ROOT}/Manifest.lock",
+			);
+			name = "[CP] Check Pods Manifest.lock";
+			outputFileListPaths = (
+			);
+			outputPaths = (
+				"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+			showEnvVarsInLog = 0;
+		};
 		9740EEB61CF901F6004384FC /* Run Script */ = {
 		9740EEB61CF901F6004384FC /* Run Script */ = {
 			isa = PBXShellScriptBuildPhase;
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			buildActionMask = 2147483647;
@@ -220,6 +270,21 @@
 			shellPath = /bin/sh;
 			shellPath = /bin/sh;
 			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
 			shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
 		};
 		};
+		DE4388E0B9F914A340E7C81F /* [CP] Embed Pods Frameworks */ = {
+			isa = PBXShellScriptBuildPhase;
+			buildActionMask = 2147483647;
+			files = (
+			);
+			inputPaths = (
+			);
+			name = "[CP] Embed Pods Frameworks";
+			outputPaths = (
+			);
+			runOnlyForDeploymentPostprocessing = 0;
+			shellPath = /bin/sh;
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n";
+			showEnvVarsInLog = 0;
+		};
 /* End PBXShellScriptBuildPhase section */
 /* End PBXShellScriptBuildPhase section */
 
 
 /* Begin PBXSourcesBuildPhase section */
 /* Begin PBXSourcesBuildPhase section */
@@ -312,6 +377,7 @@
 			buildSettings = {
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				DEVELOPMENT_TEAM = LRXRX75D5X;
 				ENABLE_BITCODE = NO;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
 					"$(inherited)",
@@ -442,6 +508,7 @@
 			buildSettings = {
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				DEVELOPMENT_TEAM = LRXRX75D5X;
 				ENABLE_BITCODE = NO;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
 					"$(inherited)",
@@ -465,6 +532,7 @@
 			buildSettings = {
 			buildSettings = {
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
 				CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+				DEVELOPMENT_TEAM = LRXRX75D5X;
 				ENABLE_BITCODE = NO;
 				ENABLE_BITCODE = NO;
 				FRAMEWORK_SEARCH_PATHS = (
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
 					"$(inherited)",

+ 3 - 0
example/ios/Runner.xcworkspace/contents.xcworkspacedata

@@ -4,4 +4,7 @@
    <FileRef
    <FileRef
       location = "group:Runner.xcodeproj">
       location = "group:Runner.xcodeproj">
    </FileRef>
    </FileRef>
+   <FileRef
+      location = "group:Pods/Pods.xcodeproj">
+   </FileRef>
 </Workspace>
 </Workspace>

+ 17 - 0
example/ios/Runner/Info.plist

@@ -20,8 +20,25 @@
 	<string>????</string>
 	<string>????</string>
 	<key>CFBundleVersion</key>
 	<key>CFBundleVersion</key>
 	<string>$(FLUTTER_BUILD_NUMBER)</string>
 	<string>$(FLUTTER_BUILD_NUMBER)</string>
+	<key>GaoDeAppKey</key>
+	<string>843778593f040f9b1ef572de99d81656</string>
 	<key>LSRequiresIPhoneOS</key>
 	<key>LSRequiresIPhoneOS</key>
 	<true/>
 	<true/>
+	<key>NSAppTransportSecurity</key>
+	<dict>
+		<key>NSAllowsArbitraryLoads</key>
+		<true/>
+	</dict>
+	<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
+	<string>应用需要定位权限</string>
+	<key>NSLocationAlwaysUsageDescription</key>
+	<string>应用需要定位权限</string>
+	<key>NSLocationWhenInUseUsageDescription</key>
+	<string>应用需要定位权限</string>
+	<key>UIBackgroundModes</key>
+	<array>
+		<string>location</string>
+	</array>
 	<key>UILaunchStoryboardName</key>
 	<key>UILaunchStoryboardName</key>
 	<string>LaunchScreen</string>
 	<string>LaunchScreen</string>
 	<key>UIMainStoryboardFile</key>
 	<key>UIMainStoryboardFile</key>

+ 25 - 25
example/pubspec.lock

@@ -12,63 +12,63 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: archive
       name: archive
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.0.11"
     version: "2.0.11"
   args:
   args:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: args
       name: args
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.5.2"
     version: "1.5.2"
   async:
   async:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: async
       name: async
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.4.0"
     version: "2.4.0"
   boolean_selector:
   boolean_selector:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: boolean_selector
       name: boolean_selector
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.0.5"
     version: "1.0.5"
   charcode:
   charcode:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: charcode
       name: charcode
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.1.2"
     version: "1.1.2"
   collection:
   collection:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: collection
       name: collection
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.14.11"
     version: "1.14.11"
   convert:
   convert:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: convert
       name: convert
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.1.1"
     version: "2.1.1"
   crypto:
   crypto:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: crypto
       name: crypto
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.1.3"
     version: "2.1.3"
   cupertino_icons:
   cupertino_icons:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description:
       name: cupertino_icons
       name: cupertino_icons
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "0.1.3"
     version: "0.1.3"
   flutter:
   flutter:
@@ -85,49 +85,49 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: image
       name: image
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.1.4"
     version: "2.1.4"
   matcher:
   matcher:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: matcher
       name: matcher
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "0.12.6"
     version: "0.12.6"
   meta:
   meta:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: meta
       name: meta
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.1.8"
     version: "1.1.8"
   path:
   path:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: path
       name: path
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.6.4"
     version: "1.6.4"
   pedantic:
   pedantic:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: pedantic
       name: pedantic
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.8.0+1"
     version: "1.8.0+1"
   petitparser:
   petitparser:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: petitparser
       name: petitparser
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.4.0"
     version: "2.4.0"
   quiver:
   quiver:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: quiver
       name: quiver
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.0.5"
     version: "2.0.5"
   sky_engine:
   sky_engine:
@@ -139,63 +139,63 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: source_span
       name: source_span
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.5.5"
     version: "1.5.5"
   stack_trace:
   stack_trace:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: stack_trace
       name: stack_trace
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.9.3"
     version: "1.9.3"
   stream_channel:
   stream_channel:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: stream_channel
       name: stream_channel
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.0.0"
     version: "2.0.0"
   string_scanner:
   string_scanner:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: string_scanner
       name: string_scanner
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.0.5"
     version: "1.0.5"
   term_glyph:
   term_glyph:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: term_glyph
       name: term_glyph
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.1.0"
     version: "1.1.0"
   test_api:
   test_api:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: test_api
       name: test_api
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "0.2.11"
     version: "0.2.11"
   typed_data:
   typed_data:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: typed_data
       name: typed_data
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.1.6"
     version: "1.1.6"
   vector_math:
   vector_math:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: vector_math
       name: vector_math
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.0.8"
     version: "2.0.8"
   xml:
   xml:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: xml
       name: xml
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "3.5.0"
     version: "3.5.0"
 sdks:
 sdks:

+ 5 - 1
ios/Classes/AmapLocationPlugin.h

@@ -1,4 +1,8 @@
 #import <Flutter/Flutter.h>
 #import <Flutter/Flutter.h>
+#import <AMapFoundationKit/AMapFoundationKit.h>
+#import <AMapLocationKit/AMapLocationKit.h>
 
 
-@interface AmapLocationPlugin : NSObject<FlutterPlugin>
+@interface AmapLocationPlugin : NSObject<FlutterPlugin,AMapLocationManagerDelegate>
+
+@property (nonatomic, weak) FlutterMethodChannel* channel;
 @end
 @end

+ 145 - 11
ios/Classes/AmapLocationPlugin.m

@@ -1,20 +1,154 @@
 #import "AmapLocationPlugin.h"
 #import "AmapLocationPlugin.h"
 
 
-@implementation AmapLocationPlugin
+
+@implementation AmapLocationPlugin{
+    AMapLocationManager* _manager;
+    FlutterMethodChannel* channel;
+}
 + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
 + (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
-  FlutterMethodChannel* channel = [FlutterMethodChannel
-      methodChannelWithName:@"amap_location"
-            binaryMessenger:[registrar messenger]];
-  AmapLocationPlugin* instance = [[AmapLocationPlugin alloc] init];
-  [registrar addMethodCallDelegate:instance channel:channel];
+    FlutterMethodChannel* channel = [FlutterMethodChannel
+                                     methodChannelWithName:@"amap_location"
+                                     binaryMessenger:[registrar messenger]];
+    AmapLocationPlugin* instance = [[AmapLocationPlugin alloc] init];
+    instance.channel = channel;
+    [registrar addMethodCallDelegate:instance channel:channel];
+    [registrar addApplicationDelegate:instance];
+    
 }
 }
 
 
 - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
 - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
-  if ([@"getPlatformVersion" isEqualToString:call.method]) {
-    result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
-  } else {
-    result(FlutterMethodNotImplemented);
-  }
+    if ([@"getPlatformVersion" isEqualToString:call.method]) {
+        result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]);
+    } else if([@"startLocation" isEqualToString:call.method]){
+        [self startLocation:call result:result];
+    } else if([@"closeLocation" isEqualToString:call.method]){
+        [self closeLocation:call result:result];
+    }else {
+        result(FlutterMethodNotImplemented);
+    }
+}
+
+- (void)startLocation:(FlutterMethodCall*)call result:(FlutterResult)result{
+    NSNumber* isOnceLocation = call.arguments[@"isOnceLocation"];
+    NSNumber* isNeedAddress = call.arguments[@"isNeedAddress"];
+    NSNumber* mockEnable = call.arguments[@"mockEnable"];
+//    NSNumber* locationInterval = call.arguments[@"locationInterval"];
+    NSNumber* locationTimeOut = call.arguments[@"locationTimeOut"];
+    NSNumber* locationMode = call.arguments[@"locationMode"];
+    
+    NSLog(@"开始定位");
+    _manager = [[AMapLocationManager alloc]init];
+    _manager.delegate =self;
+    _manager.detectRiskOfFakeLocation=mockEnable.boolValue;
+    
+    [_manager setLocatingWithReGeocode:isNeedAddress.boolValue];
+    _manager.locationTimeout = locationTimeOut.intValue;
+    if(locationMode.intValue ==0){
+        [_manager setDesiredAccuracy:kCLLocationAccuracyThreeKilometers];
+    }else if(locationMode.intValue ==1){
+        [_manager setDesiredAccuracy:kCLLocationAccuracyHundredMeters];
+    }else{
+        [_manager setDesiredAccuracy:kCLLocationAccuracyBest];
+    }
+    if(isOnceLocation.boolValue){
+        [_manager requestLocationWithReGeocode:isNeedAddress.boolValue completionBlock:^(CLLocation *location, AMapLocationReGeocode *regeocode, NSError *error) {
+            [self handleResult:location regeocode:regeocode error:error];
+           
+        }];
+    }else{
+        [_manager startUpdatingLocation];
+    }
+    result(nil);
+    
+}
+
+- (void)handleResult:(CLLocation *)location regeocode:(AMapLocationReGeocode *)regeocode error:(NSError *)error{
+    if(error){
+        NSLog(@"error:%@",error);
+        [self.channel invokeMethod:@"location" arguments:@""];
+    }else{
+        NSMutableDictionary* result = [NSMutableDictionary dictionary];
+        result[@"lon"] =@(location.coordinate.longitude);
+        result[@"lat"] =@(location.coordinate.latitude);
+        NSLog(@"location:{lat:%f; lon:%f; accuracy:%f}", location.coordinate.latitude, location.coordinate.longitude, location.horizontalAccuracy);
+        if (regeocode)
+        {
+            result[@"citycode"]=regeocode.citycode;
+            result[@"adcode"]=regeocode.adcode;
+            result[@"country"]=regeocode.country;
+            result[@"province"]=regeocode.province;
+            result[@"city"]=regeocode.city;
+            result[@"district"]=regeocode.district;
+//            result[@"road"]=regeocode.r;
+            result[@"street"]=regeocode.street;
+            result[@"number"]=regeocode.number;
+            result[@"poiname"]=regeocode.POIName;
+            result[@"errorCode"]=error==nil?nil:@(error.code);
+            result[@"errorInfo"]=nil;
+//            result[@"locationType"]=location.;
+//            result[@"locationDetail"]=location.detail;
+            result[@"aoiname"]=regeocode.AOIName;
+            result[@"address"]=regeocode.formattedAddress;
+//            result[@"poiid"]=location.poi;
+            result[@"floor"]=[[NSString alloc]initWithFormat:@"%ld",(long)location.floor.level];
+            result[@"description"]=regeocode.description;
+            result[@"time"]=@(location.timestamp.timeIntervalSinceNow);
+            result[@"provider"]=regeocode.province;
+//            result[@"accuracy"]=location.accur;
+//            result[@"isOffset"]=location.;
+            NSLog(@"reGeocode:%@", regeocode);
+            [self.channel invokeMethod:@"location" arguments:[self convertToJsonData:result]];
+        }
+    }
+}
+
+//格式化输出
+- (NSString *)convertToJsonData:(NSDictionary *)userInfo {
+    NSError *error;
+    NSData *jsonData = [NSJSONSerialization dataWithJSONObject:userInfo options:nil error:&error];
+    NSString *jsonString=@"";
+    if (!jsonData) {
+        NSLog(@"%@", error);
+    } else {
+        jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
+    }
+    return jsonString;
+}
+
+
+- (void)closeLocation:(FlutterMethodCall*)call result:(FlutterResult)result{
+    NSLog(@"结束定位");
+    if(_manager){
+        _manager.delegate=nil;
+        [_manager stopUpdatingLocation];
+        _manager = nil;
+        
+    }
+    result(nil);
+}
+
+- (void)amapLocationManager:(AMapLocationManager *)manager didFailWithError:(NSError *)error{
+    NSLog(@"定位出现错误:%@",error);
+    
+}
+- (void)amapLocationManager:(AMapLocationManager *)manager doRequireLocationAuth:(CLLocationManager*)locationManager{
+    NSLog(@"申请权限");
+    [locationManager requestAlwaysAuthorization];
+}
+
+- (void)amapLocationManager:(AMapLocationManager *)manager didUpdateLocation:(CLLocation *)location reGeocode:(AMapLocationReGeocode *)reGeocode{
+    [self handleResult:location regeocode:reGeocode error:nil];
+}
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
+    NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"];
+    NSMutableDictionary *infoDict = [NSMutableDictionary dictionaryWithContentsOfFile:bundlePath];
+    NSString *gaodeAppKey = [infoDict objectForKey:@"GaoDeAppKey"];
+    [AMapServices sharedServices].apiKey = gaodeAppKey;
+    NSLog(@"配置高德地图定位");
+    
+    return YES;
+    
 }
 }
 
 
 @end
 @end

+ 1 - 1
ios/amap_location.podspec

@@ -16,8 +16,8 @@ A new Flutter plugin.
   s.source_files = 'Classes/**/*'
   s.source_files = 'Classes/**/*'
   s.public_header_files = 'Classes/**/*.h'
   s.public_header_files = 'Classes/**/*.h'
   s.dependency 'Flutter'
   s.dependency 'Flutter'
+  s.dependency 'AMapLocation'
   s.platform = :ios, '8.0'
   s.platform = :ios, '8.0'
-
   # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
   # Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
   s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
   s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
 end
 end

+ 2 - 0
lib/amap_location.dart

@@ -5,6 +5,8 @@ import 'package:amap_location/location_option.dart';
 import 'package:amap_location/location_result_entity.dart';
 import 'package:amap_location/location_result_entity.dart';
 import 'package:flutter/services.dart';
 import 'package:flutter/services.dart';
 
 
+// IOS:
+// add info.plist GaoDeAppKey
 class AmapLocation {
 class AmapLocation {
   static const MethodChannel _channel = const MethodChannel('amap_location');
   static const MethodChannel _channel = const MethodChannel('amap_location');
   static final AmapLocation _instance = AmapLocation();
   static final AmapLocation _instance = AmapLocation();

+ 24 - 24
pubspec.lock

@@ -5,56 +5,56 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: archive
       name: archive
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.0.11"
     version: "2.0.11"
   args:
   args:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: args
       name: args
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.5.2"
     version: "1.5.2"
   async:
   async:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: async
       name: async
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.4.0"
     version: "2.4.0"
   boolean_selector:
   boolean_selector:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: boolean_selector
       name: boolean_selector
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.0.5"
     version: "1.0.5"
   charcode:
   charcode:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: charcode
       name: charcode
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.1.2"
     version: "1.1.2"
   collection:
   collection:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: collection
       name: collection
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.14.11"
     version: "1.14.11"
   convert:
   convert:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: convert
       name: convert
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.1.1"
     version: "2.1.1"
   crypto:
   crypto:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: crypto
       name: crypto
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.1.3"
     version: "2.1.3"
   flutter:
   flutter:
@@ -71,49 +71,49 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: image
       name: image
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.1.4"
     version: "2.1.4"
   matcher:
   matcher:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: matcher
       name: matcher
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "0.12.6"
     version: "0.12.6"
   meta:
   meta:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: meta
       name: meta
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.1.8"
     version: "1.1.8"
   path:
   path:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: path
       name: path
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.6.4"
     version: "1.6.4"
   pedantic:
   pedantic:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: pedantic
       name: pedantic
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.8.0+1"
     version: "1.8.0+1"
   petitparser:
   petitparser:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: petitparser
       name: petitparser
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.4.0"
     version: "2.4.0"
   quiver:
   quiver:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: quiver
       name: quiver
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.0.5"
     version: "2.0.5"
   sky_engine:
   sky_engine:
@@ -125,63 +125,63 @@ packages:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: source_span
       name: source_span
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.5.5"
     version: "1.5.5"
   stack_trace:
   stack_trace:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: stack_trace
       name: stack_trace
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.9.3"
     version: "1.9.3"
   stream_channel:
   stream_channel:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: stream_channel
       name: stream_channel
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.0.0"
     version: "2.0.0"
   string_scanner:
   string_scanner:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: string_scanner
       name: string_scanner
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.0.5"
     version: "1.0.5"
   term_glyph:
   term_glyph:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: term_glyph
       name: term_glyph
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.1.0"
     version: "1.1.0"
   test_api:
   test_api:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: test_api
       name: test_api
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "0.2.11"
     version: "0.2.11"
   typed_data:
   typed_data:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: typed_data
       name: typed_data
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "1.1.6"
     version: "1.1.6"
   vector_math:
   vector_math:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: vector_math
       name: vector_math
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "2.0.8"
     version: "2.0.8"
   xml:
   xml:
     dependency: transitive
     dependency: transitive
     description:
     description:
       name: xml
       name: xml
-      url: "https://pub.flutter-io.cn"
+      url: "https://pub.dev"
     source: hosted
     source: hosted
     version: "3.5.0"
     version: "3.5.0"
 sdks:
 sdks: