File tree 6 files changed +15
-16
lines changed
ui/kotlinx-coroutines-android
6 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 1
1
# When editing this file, update the following files as well:
2
- # - META-INF/com.android.tools/r8-upto-1.6 .0/coroutines.pro
2
+ # - META-INF/com.android.tools/r8-upto-3.0 .0/coroutines.pro
3
3
# - META-INF/proguard/coroutines.pro
4
4
5
5
-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
6
+ -keep class kotlinx.coroutines.android.AndroidExceptionPreHandler {*;}
Original file line number Diff line number Diff line change 9
9
boolean ANDROID_DETECTED return true;
10
10
}
11
11
12
- -keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
13
-
14
12
# Disable support for "Missing Main Dispatcher", since we always have Android main dispatcher
15
13
-assumenosideeffects class kotlinx.coroutines.internal.MainDispatchersKt {
16
14
boolean SUPPORT_MISSING return false;
21
19
boolean getASSERTIONS_ENABLED() return false;
22
20
boolean getDEBUG() return false;
23
21
boolean getRECOVER_STACK_TRACES() return false;
24
- }
22
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # When editing this file, update the following files as well for AGP 3.6.0+:
2
+ # - META-INF/com.android.tools/proguard/coroutines.pro
3
+ # - META-INF/proguard/coroutines.pro
4
+
5
+ # After R8 3.0.0 (or probably sometime before that), R8 learned how to optimize
6
+ # classes mentioned in META-INF/services files, and explicitly -keeping them
7
+ # disables these optimizations.
8
+ # https://github.com/Kotlin/kotlinx.coroutines/issues/3111
9
+ -keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
10
+ -keep class kotlinx.coroutines.android.AndroidExceptionPreHandler {*;}
Original file line number Diff line number Diff line change 2
2
3
3
# When editing this file, update the following files as well for AGP 3.6.0+:
4
4
# - META-INF/com.android.tools/proguard/coroutines.pro
5
- # - META-INF/com.android.tools/r8-upto-1.6 .0/coroutines.pro
5
+ # - META-INF/com.android.tools/r8-upto-3.0 .0/coroutines.pro
6
6
7
7
-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
8
+ -keep class kotlinx.coroutines.android.AndroidExceptionPreHandler {*;}
Original file line number Diff line number Diff line change 5
5
package kotlinx.coroutines.android
6
6
7
7
import android.os.*
8
- import androidx.annotation.*
9
8
import kotlinx.coroutines.*
10
9
import java.lang.reflect.*
11
10
import kotlin.coroutines.*
12
11
13
- @Keep
14
12
internal class AndroidExceptionPreHandler :
15
13
AbstractCoroutineContextElement (CoroutineExceptionHandler ), CoroutineExceptionHandler
16
14
{
You can’t perform that action at this time.
0 commit comments