Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
amap_flutter_location
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
amap_flutter_location
Commits
ed21c36f
提交
ed21c36f
authored
11月 05, 2025
作者:
史晓晨
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:适配Flutter SDK 3.24.5,适配AGP 8.0+
上级
d57fa9f4
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
19 行增加
和
20 行删除
+19
-20
build.gradle
android/build.gradle
+4
-3
AndroidManifest.xml
android/src/main/AndroidManifest.xml
+1
-3
build.gradle
example/android/app/build.gradle
+3
-2
AndroidManifest.xml
example/android/app/src/debug/AndroidManifest.xml
+2
-3
AndroidManifest.xml
example/android/app/src/main/AndroidManifest.xml
+2
-2
AndroidManifest.xml
example/android/app/src/profile/AndroidManifest.xml
+2
-3
build.gradle
example/android/build.gradle
+2
-2
gradle-wrapper.properties
example/android/gradle/wrapper/gradle-wrapper.properties
+2
-1
pubspec.yaml
example/pubspec.yaml
+1
-1
没有找到文件。
android/build.gradle
浏览文件 @
ed21c36f
...
@@ -8,7 +8,7 @@ buildscript {
...
@@ -8,7 +8,7 @@ buildscript {
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:
3.5
.1'
classpath
'com.android.tools.build:gradle:
8.1
.1'
}
}
}
}
...
@@ -22,10 +22,11 @@ rootProject.allprojects {
...
@@ -22,10 +22,11 @@ rootProject.allprojects {
apply
plugin:
'com.android.library'
apply
plugin:
'com.android.library'
android
{
android
{
compileSdkVersion
31
namespace
"com.amap.flutter.location"
compileSdk
34
defaultConfig
{
defaultConfig
{
minSdkVersion
16
minSdkVersion
23
}
}
lintOptions
{
lintOptions
{
disable
'InvalidPackage'
disable
'InvalidPackage'
...
...
android/src/main/AndroidManifest.xml
浏览文件 @
ed21c36f
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
></manifest>
package=
"com.amap.flutter.location"
>
</manifest>
example/android/app/build.gradle
浏览文件 @
ed21c36f
...
@@ -25,7 +25,8 @@ apply plugin: 'com.android.application'
...
@@ -25,7 +25,8 @@ apply plugin: 'com.android.application'
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply
from:
"$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android
{
android
{
compileSdkVersion
31
namespace
"com.amap.flutter.amap_flutter_location_example"
compileSdk
34
lintOptions
{
lintOptions
{
disable
'InvalidPackage'
disable
'InvalidPackage'
...
@@ -39,7 +40,7 @@ android {
...
@@ -39,7 +40,7 @@ android {
defaultConfig
{
defaultConfig
{
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"com.amap.flutter.amap_flutter_location_example"
applicationId
"com.amap.flutter.amap_flutter_location_example"
minSdkVersion
16
minSdkVersion
23
targetSdkVersion
31
targetSdkVersion
31
versionCode
flutterVersionCode
.
toInteger
()
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
versionName
flutterVersionName
...
...
example/android/app/src/debug/AndroidManifest.xml
浏览文件 @
ed21c36f
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
package=
"com.amap.flutter.amap_flutter_location_example"
>
<!-- Flutter needs it to communicate with the running application
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
to allow setting breakpoints, to provide hot reload, etc.
-->
-->
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
</manifest>
</manifest>
example/android/app/src/main/AndroidManifest.xml
浏览文件 @
ed21c36f
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
package=
"com.amap.flutter.amap_flutter_location_example"
>
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
In most cases you can leave this as-is, but you if you want to provide
...
@@ -20,6 +19,7 @@
...
@@ -20,6 +19,7 @@
<service
android:name=
"com.amap.api.location.APSService"
/>
<service
android:name=
"com.amap.api.location.APSService"
/>
<activity
<activity
android:name=
".MainActivity"
android:name=
".MainActivity"
android:exported=
"true"
android:launchMode=
"singleTop"
android:launchMode=
"singleTop"
android:theme=
"@style/LaunchTheme"
android:theme=
"@style/LaunchTheme"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:configChanges=
"orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
...
...
example/android/app/src/profile/AndroidManifest.xml
浏览文件 @
ed21c36f
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
package=
"com.amap.flutter.amap_flutter_location_example"
>
<!-- Flutter needs it to communicate with the running application
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
to allow setting breakpoints, to provide hot reload, etc.
-->
-->
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
</manifest>
</manifest>
example/android/build.gradle
浏览文件 @
ed21c36f
...
@@ -5,7 +5,7 @@ buildscript {
...
@@ -5,7 +5,7 @@ buildscript {
}
}
dependencies
{
dependencies
{
classpath
'com.android.tools.build:gradle:
3.5.0
'
classpath
'com.android.tools.build:gradle:
8.1.1
'
}
}
}
}
...
@@ -24,6 +24,6 @@ subprojects {
...
@@ -24,6 +24,6 @@ subprojects {
project
.
evaluationDependsOn
(
':app'
)
project
.
evaluationDependsOn
(
':app'
)
}
}
task
clean
(
type:
Delete
)
{
task
s
.
register
(
"clean"
,
Delete
)
{
delete
rootProject
.
buildDir
delete
rootProject
.
buildDir
}
}
example/android/gradle/wrapper/gradle-wrapper.properties
浏览文件 @
ed21c36f
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
5.6.2-all
.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-
8.1-bin
.zip
\ No newline at end of file
example/pubspec.yaml
浏览文件 @
ed21c36f
...
@@ -11,7 +11,7 @@ environment:
...
@@ -11,7 +11,7 @@ environment:
dependencies
:
dependencies
:
flutter
:
flutter
:
sdk
:
flutter
sdk
:
flutter
permission_handler
:
^
6.1.3
permission_handler
:
^
12.0.1
amap_flutter_location
:
amap_flutter_location
:
# When depending on this package from a real application you should use:
# When depending on this package from a real application you should use:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论