Skip to content

Commit a131cd6

Browse files
committed
Android Gradle 9.0.0
1 parent 999e172 commit a131cd6

4 files changed

Lines changed: 34 additions & 3 deletions

File tree

app/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
44

55
plugins {
66
id("com.android.application")
7-
id("kotlin-android")
87
}
98

109
android {

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
}
88

99
dependencies {
10-
classpath("com.android.tools.build:gradle:8.13.0")
10+
classpath("com.android.tools.build:gradle:9.0.0")
1111
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.3.10")
1212
}
1313
}

githubAppUpdate/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22

33
plugins {
44
id("com.android.library")
5-
id("kotlin-android")
65
id("maven-publish")
76
}
87

githubAppUpdate/proguard-rules.pro

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Keep Kotlin metadata for coroutines
2+
-keep class kotlin.Metadata { *; }
3+
-keepattributes RuntimeVisibleAnnotations
4+
-keepattributes *Annotation*
5+
6+
# Keep coroutine related classes
7+
-keepclassmembernames class kotlinx.** {
8+
volatile <fields>;
9+
}
10+
11+
# Preserve Kotlin coroutine internal structures
12+
-keep class kotlin.coroutines.** { *; }
13+
-keep class kotlinx.coroutines.** { *; }
14+
15+
# Don't obfuscate Kotlin metadata
16+
-keepattributes SourceFile,LineNumberTable
17+
-renamesourcefileattribute SourceFile
18+
19+
# Keep synthetic methods for Kotlin coroutines
20+
-keepclassmembers class ** {
21+
synthetic <methods>;
22+
}
23+
24+
# Preserve function types
25+
-keep class kotlin.jvm.functions.** { *; }
26+
27+
# Don't warn about R8 issues with Kotlin metadata
28+
-dontwarn kotlin.Metadata
29+
-dontwarn kotlinx.coroutines.**
30+
31+
# Keep lifecycle coroutine scope
32+
-keep class androidx.lifecycle.** { *; }
33+
-keepclassmembers class androidx.lifecycle.** { *; }

0 commit comments

Comments
 (0)