提交 ed21c36f authored 作者: 史晓晨's avatar 史晓晨

feat:适配Flutter SDK 3.24.5,适配AGP 8.0+

上级 d57fa9f4
......@@ -8,7 +8,7 @@ buildscript {
}
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 {
apply plugin: 'com.android.library'
android {
compileSdkVersion 31
namespace "com.amap.flutter.location"
compileSdk 34
defaultConfig {
minSdkVersion 16
minSdkVersion 23
}
lintOptions {
disable 'InvalidPackage'
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.amap.flutter.location">
</manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"></manifest>
......@@ -25,7 +25,8 @@ apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion 31
namespace "com.amap.flutter.amap_flutter_location_example"
compileSdk 34
lintOptions {
disable 'InvalidPackage'
......@@ -39,7 +40,7 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.amap.flutter.amap_flutter_location_example"
minSdkVersion 16
minSdkVersion 23
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.amap.flutter.amap_flutter_location_example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Flutter needs it to communicate with the running application
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 xmlns:android="http://schemas.android.com/apk/res/android"
package="com.amap.flutter.amap_flutter_location_example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
......@@ -20,6 +19,7 @@
<service android:name="com.amap.api.location.APSService"/>
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.amap.flutter.amap_flutter_location_example">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
......@@ -5,7 +5,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.android.tools.build:gradle:8.1.1'
}
}
......@@ -24,6 +24,6 @@ subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
......@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
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
......@@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
permission_handler: ^6.1.3
permission_handler: ^12.0.1
amap_flutter_location:
# When depending on this package from a real application you should use:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论