React-native-webrtc version of webrtc


#1

Hi,
I want to know which version of webrtc is used in react-native-webrtc in jitsi-meet.
In package I have github:jitsi/react-native-webrtc#be3de15bb988cfabbb62cd4b3b06f4c920ee5ba0, but I don’t understand which version of webrtc is used in that commit.
I’m trying with webrtc M67 and I’m trying to substitute libjingle_peerconnection.so.jar and libwebrtc.jar, but I have the following error when I compile the android application:

Note: there were 5 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 1 references to unknown class members.
You should check your configuration for typos.
Note: there were 945 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using ‘-keep’).
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 10 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Ignoring unused library classes…
Original number of library classes: 4590
Final number of library classes: 1620
Printing kept classes, fields, and methods…
Shrinking…
Printing usage to [/Users/angelomantellini/4jitsi-meet/android/app/build/outputs/mapping/debug/usage.txt]…
Removing unused program classes and class elements…
Original number of program classes: 6516
Final number of program classes: 4335
Inlining subroutines…
Preverifying…
Writing output…
Preparing output jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/proguard/debug/0.jar]
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/0.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/1.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/2.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/3.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/4.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/5.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/6.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/7.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/8.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/9.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/10.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/11.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/13.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/14.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/15.jar] (filtered)
Copying resources from program jar [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/16.jar] (filtered)
Warning: Exception while processing task java.io.IOException: Can’t write [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/proguard/debug/0.jar] (Can’t read [/Users/angelomantellini/4jitsi-meet/android/app/build/intermediates/transforms/desugar/debug/16.jar(;;;;;;**.class)] (Duplicate zip entry [16.jar:org/webrtc/audio/WebRtcAudioRecord.class]))

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:transformClassesAndResourcesWithProguardForDebug’.

Job failed, see logs for details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 8s
229 actionable tasks: 1 executed, 228 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:

Thank you very much
Angelo


#2

Hey! Here’s how I’m tracking these:

You’re reportedly using github:jitsi/react-native-webrtc#be3de15bb988cfabbb62cd4b3b06f4c920ee5ba0 (as written in jitsi/jitsi-meet/package.json).

I look at https://github.com/jitsi/react-native-webrtc/commits/be3de15bb988cfabbb62cd4b3b06f4c920ee5ba0 and the last binaries of libjingle_peerconnection.so.jar and libwebrtc.jar there were modified by commit https://github.com/jitsi/react-native-webrtc/commit/bfe959cb7226a19f320b86195a6eff8b8c57ae98.

Commit https://github.com/jitsi/react-native-webrtc/commit/bfe959cb7226a19f320b86195a6eff8b8c57ae98 says:

android: update WebRTC to fix crash (#38)

So https://github.com/jitsi/webrtc/commit/34b86b6317815b4919447a8dd3a910ce95c8b977 is the version of WebRTC that you’re asking for, right?


#3

I solved, I had two version of the same library in react-native-webrtc. in android you have to delete a copy because it takes all library in that folder. the copy was about the original one, with an underscore before (it was a backup copy).

Thanks