简体   繁体   中英

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

I am using 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.** { *; }

But it gives error as

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

As googled above issue it was mentioned as FirebaseInstanceIdService has been removed from new Firebase sdk.

In my project I use latest firebase messaging gradle version as

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

and Sinch voice sdk version

sinch-android-rtc-3.17.1.aar

Sinch may be using old version of firebase messaging, if it's the case then how to use Sinch in release mode ?, is there any updated proguard or something ?

Sinch SDK uses optional linking with Firebase, so after adding

-dontwarn com.sinch.**

resolved the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM