You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `-dontwarn java.lang.ClassValue` rule embedded in serialization may have a side effect for the target application if it uses `java.lang.ClassValue` too.
Instead of this rule, it is enough to disable warnings for ClassValue inheritors in the serialization itself.
Resolves#2119
Copy file name to clipboardExpand all lines: rules/common.pro
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -29,5 +29,8 @@
29
29
# See also https://github.com/Kotlin/kotlinx.serialization/issues/1900
30
30
-dontnote kotlinx.serialization.**
31
31
32
-
# Serialization core uses `Class.forName("java.lang.ClassValue")` for caching in JVM-only, so it is an expected situation that this class is not in Android
33
-
-dontwarn java.lang.ClassValue
32
+
# Serialization core uses `java.lang.ClassValue` for caching inside these specified classes.
33
+
# If there is no `java.lang.ClassValue` (for example, in Android), then R8/ProGuard will print a warning.
34
+
# However, since in this case they will not be used, we can disable these warnings
0 commit comments