-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aaf44d6
commit 9f634c5
Showing
3 changed files
with
93 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...terminal/src/jvmTest/resources/META-INF/proguard/com.jakewharton.mosaic-terminal-test.pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-keep class **.*Test { | ||
public <init>(); | ||
@org.junit.Test public void *(...); | ||
} | ||
|
||
# Gradle does A LOT of reflection to invoke JUnit. Just keep it all. | ||
-keep class org.junit.** { | ||
*** *(...); | ||
} | ||
|
||
# Keep @Test, @Ignore annotations, etc. | ||
-keepattributes RuntimeVisibleAnnotations, AnnotationDefault | ||
|
||
# Temporarily work around a ProGuard bug. https://github.com/Guardsquare/proguard/issues/460 | ||
-optimizations !method/specialization/parametertype | ||
|
||
# TODO These should be pulled from the jars, but for now this unblocks us. | ||
-dontwarn kotlinx.coroutines.debug.internal.AgentPremain* | ||
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement | ||
-dontwarn assertk.assertions.AnyJVMKt* | ||
|
||
# ServiceLoader support | ||
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {} | ||
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {} | ||
|
||
# Most of volatile fields are updated with AFU and should not be mangled | ||
-keepclassmembers class kotlinx.coroutines.** { | ||
volatile <fields>; | ||
} | ||
|
||
# Same story for the standard library's SafeContinuation that also uses AtomicReferenceFieldUpdater | ||
-keepclassmembers class kotlin.coroutines.SafeContinuation { | ||
volatile <fields>; | ||
} |