Skip to content

Commit 3f16360

Browse files
wojtek-kalicinskiqwwdfsad
authored andcommitted
Change keep rules targeting to match AGP changes
1 parent 420fed9 commit 3f16360

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

ui/kotlinx-coroutines-android/r8-test-rules.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Ensure the custom, fast service loader implementation is removed. In the case of fast service
44
# loader encountering an exception it falls back to regular ServiceLoader in a way that cannot be
55
# optimized out by R8.
6-
-include resources/META-INF/com.android.tools/r8-min-1.6.0/coroutines.pro
6+
-include resources/META-INF/com.android.tools/r8-from-1.6.0/coroutines.pro
77
-checkdiscard class kotlinx.coroutines.internal.FastServiceLoader
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# When editing this file, update the following files as well:
2-
# - META-INF/com.android.tools/r8-max-1.5.999/coroutines.pro
2+
# - META-INF/com.android.tools/r8-upto-1.6.0/coroutines.pro
33
# - META-INF/proguard/coroutines.pro
44

55
-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}

ui/kotlinx-coroutines-android/resources/META-INF/proguard/coroutines.pro

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
# When editing this file, update the following files as well for AGP 3.6.0+:
44
# - META-INF/com.android.tools/proguard/coroutines.pro
5-
# - META-INF/com.android.tools/r8-max-1.5.999/coroutines.pro
5+
# - META-INF/com.android.tools/r8-upto-1.6.0/coroutines.pro
66

77
-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}

ui/kotlinx-coroutines-android/test/R8ServiceLoaderOptimizationTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class R8ServiceLoaderOptimizationTest {
4040
val paths = listOf(
4141
"META-INF/com.android.tools/proguard/coroutines.pro",
4242
"META-INF/proguard/coroutines.pro",
43-
"META-INF/com.android.tools/r8-max-1.5.999/coroutines.pro"
43+
"META-INF/com.android.tools/r8-upto-1.6.0/coroutines.pro"
4444
)
4545
paths.associateWith { path ->
4646
val ruleSet = javaClass.classLoader.getResourceAsStream(path)!!.bufferedReader().lines().filter { line ->

0 commit comments

Comments
 (0)