忽略 kotlin 的这些 proguard 注释是否安全?

rpa*_*abi 2 android proguard kotlin

我不明白为什么我会从 proguard 那里得到这些笔记,以及我是否必须做任何事情来解决它们。

Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.jdk8.JDK8PlatformImplementations 
Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.JRE8PlatformImplementations 
Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class 
kotlin.internal.JRE7PlatformImplementations 

Note: kotlin.jvm.internal.Reflection: can't find dynamically referenced class 
kotlin.reflect.jvm.internal.ReflectionFactoryImpl
Run Code Online (Sandbox Code Playgroud)

其中三个是为了kotlin.internal.PlatformImplementationKt,一个是为了kotlin.jvm.internal.Reflection

我的设置

kotlin: 1.2.71
Android Studio / gradle plugin: 3.2.0
gradle: 4.10.2
Run Code Online (Sandbox Code Playgroud)

Mat*_*Pag 5

是的,这是安全的,您应该将这些规则添加到您的proguard-rules.pro配置中

# Kotlin
-keep class kotlin.Metadata { *; }
-dontnote kotlin.internal.PlatformImplementationsKt
-dontnote kotlin.reflect.jvm.internal.**
Run Code Online (Sandbox Code Playgroud)