Sinch Proguard 找不到引用 class com.google.firebase.iid.FirebaseInstanceIdService

Sinch Proguard can't find referenced class com.google.firebase.iid.FirebaseInstanceIdService

我正在使用 Sinch Android Voice to place app to app calling. It's running fine in debug mode and as instructed in release mode Running proguard as given in proguard-project.txt file

-keepclasseswithmembernames class * {
    native <methods>;
}

-dontwarn org.apache.http.annotation.**

-keep class com.sinch.** { *; }
-keep interface com.sinch.** { *; }
-keep class org.webrtc.** { *; }

但它给出错误为

找不到引用的 class com.google.firebase.iid.FirebaseInstanceIdService

正如在上面的 google 搜索中提到的,FirebaseInstanceIdService 已从新的 Firebase sdk 中删除。

在我的项目中,我使用最新的 firebase messaging gradle 版本作为

implementation "com.google.firebase:firebase-messaging:20.1.3"

和信奇语音sdk版本

sinch-android-rtc-3.17.1.aar

Sinch 可能正在使用旧版本的 firebase 消息传递,如果是这种情况,那么如何在发布模式下使用 Sinch?是否有任何更新的 proguard 之类的?

Sinch SDK 使用与 Firebase 的可选链接,因此在添加

之后
-dontwarn com.sinch.**

已解决问题。