Skip to content

Commit

Permalink
Fix incorrect ProGuard rules that allowed shrinking volatile felds
Browse files Browse the repository at this point in the history
Fixes #1564
  • Loading branch information
dkhalanskyjb committed Dec 10, 2020
1 parent 1176267 commit c6fa14f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -3,12 +3,12 @@
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}

# Most of volatile fields are updated with AFU and should not be mangled
-keepclassmembernames class kotlinx.** {
-keepclassmembers class kotlinx.** {
volatile <fields>;
}

# Same story for the standard library's SafeContinuation that also uses AtomicReferenceFieldUpdater
-keepclassmembernames class kotlin.coroutines.SafeContinuation {
-keepclassmembers class kotlin.coroutines.SafeContinuation {
volatile <fields>;
}

Expand Down
Expand Up @@ -4,6 +4,6 @@
-keepnames class kotlinx.coroutines.android.AndroidDispatcherFactory {}

# Most of volatile fields are updated with AFU and should not be mangled
-keepclassmembernames class kotlinx.** {
-keepclassmembers class kotlinx.** {
volatile <fields>;
}

0 comments on commit c6fa14f

Please sign in to comment.