File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
44
55plugins {
66 id(" com.android.application" )
7- id(" kotlin-android" )
87}
98
109android {
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
22
33plugins {
44 id(" com.android.library" )
5- id(" kotlin-android" )
65 id(" maven-publish" )
76}
87
Original file line number Diff line number Diff line change 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.** { *; }
You can’t perform that action at this time.
0 commit comments