Skip to content

Commit 7009c92

Browse files
committed
Upgrade gradle version + Update proguard rules
1 parent aaccf37 commit 7009c92

File tree

8 files changed

+12
-8
lines changed

8 files changed

+12
-8
lines changed

arcgis_map_sdk_android/android/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group 'dev.fluttercommunity.arcgis_map_sdk_android'
22
version '1.0-SNAPSHOT'
33

44
buildscript {
5-
ext.kotlin_version = '1.9.0'
5+
ext.kotlin_version = '2.1.20'
66
repositories {
77
google()
88
mavenCentral()
@@ -12,7 +12,7 @@ buildscript {
1212
}
1313

1414
dependencies {
15-
classpath 'com.android.tools.build:gradle:8.3.2'
15+
classpath 'com.android.tools.build:gradle:8.7.3'
1616
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1717
}
1818
}
@@ -59,6 +59,7 @@ android {
5959

6060
defaultConfig {
6161
minSdkVersion 26
62+
consumerProguardFiles 'proguard-rules.pro'
6263
}
6364
}
6465

@@ -67,5 +68,5 @@ dependencies {
6768

6869
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
6970
implementation 'com.esri:arcgis-maps-kotlin:200.7.0'
70-
implementation 'com.google.code.gson:gson:2.8.8'
71+
implementation 'com.google.code.gson:gson:2.13.1'
7172
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Oct 24 09:10:14 CEST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-keep class dev.fluttercommunity.arcgis_map_sdk_android.model.** { *; }
2+
-keep class dev.fluttercommunity.arcgis_map_sdk_android.util.** { *; }

arcgis_map_sdk_android/android/src/main/kotlin/dev/fluttercommunity/arcgis_map_sdk_android/ArcgisMapView.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ internal class ArcgisMapView(
149149
methodChannel.invokeMethod("onStatusChanged", status.jsonValue())
150150
}
151151

152+
override fun dispose() {}
153+
152154
// region helper
153155

154156
private fun setupMethodChannel() {

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if (flutterVersionName == null) {
2525
android {
2626

2727
compileSdkVersion flutter.compileSdkVersion
28-
ndkVersion = "25.1.8937393"
28+
ndkVersion = "27.0.12077973"
2929

3030
namespace 'com.example.example'
3131

example/android/app/proguard-rules.pro

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip

example/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "8.3.2" apply false
21+
id "com.android.application" version "8.7.3" apply false
2222
id "org.jetbrains.kotlin.android" version "2.1.20" apply false
2323
}
2424

0 commit comments

Comments
 (0)