--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/4a1a5ebe-0ccf-463e-bb7b-943fb852207a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Java 8 is needed for building WebRTC. Instead of a single libwebrtc.jar
, the following files are generated (javap -verbose MyClass | grep "major"
):
Name | Version | Notes |
---|---|---|
libwebrtc.jar | 52 | ThreadUtils and Logging classes |
audio_device_java.interface.java | 52 | |
audio_device_java.jar | 51 | |
libjingle_peerconnection_java.interface.jar | 52 | |
libjinlge_peerconnection_java.jar | 51 | |
libjingle_peerconnection_metrics_default_java.interface.jar | 52 | Not used |
libjingle_peerconnection_metrics_default_java.jar | 51 | Not used |
Interface JARs are merely function declarations and have major version 52, while implementation JARs are desugared to version 51.
Discord app targets API level 16, which does not support Java 8. Fortunately, with desugaring, we can still support API level 16, please see https://developer.android.com/studio/write/java8-support.html - however, external libraries already need to be desugared. When building WebRTC for Android, we reverted back to using dist_jar
template, without interface JAR and with desugaring. This generated a single Java 7 libwebrtc.jar
(just as with WebRTC 59). However EglBase::create
(static interface method) is unavailable in libwebrtc.jar
. We added a simple helper class as workaround.
Damn,
So the only solution is to get a old version ?
----- Mail original -----
De: "Sami Kalliomäki" <sa...@webrtc.org>
À: "discuss-webrtc" <discuss-webrtc@googlegroups.com>
Envoyé: Lundi 28 Mai 2018 15:47:45
Objet: Re: [discuss-webrtc] Re: PSA: Support for Java 7 in AAR is deprecated
Unfortunately, this is infeasible due to technical limitations.
On Mon, May 28, 2018 at 2:56 PM David < duch...@free.fr > wrote:
Hello,
I try to create a xamarin solution with webrtc.
Since this modification , i couldn't user WebRtc.. The desugar process in xamarin doesn't work .. It is possible to make a switch to enable Java7 Bytecode Retrocompatibilty ?
On Thursday, November 23, 2017 at 10:47:44 AM UTC+1, Sami Kalliomäki wrote:
FYI: This is happening today.
On Thu, Nov 9, 2017 at 10:29 AM, Sami Kalliomäki < sa...@webrtc.org > wrote:
Hi,
We are removing support for Java 7 in AAR generation script in two weeks. This affects both our prebuilt libraries and `build_aar.py` script. To continue using the libraries, you should migrate your toolchain to support Java 8. Instructions for Android Studio can be found here .
Technical details:
Previously, we transformed Java 8 bytecode to Java 7 bytecode for the AAR. The issue with this is that clients need to manually include desugar runtime in their application to avoid crashes and some features such as static/default methods in interfaces cannot be supported this way. In the new approach we will ship Java 8 bytecode directly and the client toolchain is responsible for doing the transformation.
If you have any questions or concerns, feel free to express them in this thread.
Regards,
Sami Kalliomäki
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/4a1a5ebe-0ccf-463e-bb7b-943fb852207a%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAD-mH0Fhd-MRWkUiMRyJkL2EbvZ7KuLtsVz3fik0ofaOrYkovg%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/410266218.76272806.1527517414384.JavaMail.root%40spooler3-g27.priv.proxad.net.
À: "discuss-webrtc" <discuss...@googlegroups.com>
Envoyé: Lundi 28 Mai 2018 15:47:45
Objet: Re: [discuss-webrtc] Re: PSA: Support for Java 7 in AAR is deprecated
Unfortunately, this is infeasible due to technical limitations.
On Mon, May 28, 2018 at 2:56 PM David < duch...@free.fr > wrote:
Hello,
I try to create a xamarin solution with webrtc.
Since this modification , i couldn't user WebRtc.. The desugar process in xamarin doesn't work .. It is possible to make a switch to enable Java7 Bytecode Retrocompatibilty ?
On Thursday, November 23, 2017 at 10:47:44 AM UTC+1, Sami Kalliomäki wrote:
FYI: This is happening today.
On Thu, Nov 9, 2017 at 10:29 AM, Sami Kalliomäki < sa...@webrtc.org > wrote:
Hi,
We are removing support for Java 7 in AAR generation script in two weeks. This affects both our prebuilt libraries and `build_aar.py` script. To continue using the libraries, you should migrate your toolchain to support Java 8. Instructions for Android Studio can be found here .
Technical details:
Previously, we transformed Java 8 bytecode to Java 7 bytecode for the AAR. The issue with this is that clients need to manually include desugar runtime in their application to avoid crashes and some features such as static/default methods in interfaces cannot be supported this way. In the new approach we will ship Java 8 bytecode directly and the client toolchain is responsible for doing the transformation.
If you have any questions or concerns, feel free to express them in this thread.
Regards,
Sami Kalliomäki
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/4a1a5ebe-0ccf-463e-bb7b-943fb852207a%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAD-mH0Fhd-MRWkUiMRyJkL2EbvZ7KuLtsVz3fik0ofaOrYkovg%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/410266218.76272806.1527517414384.JavaMail.root%40spooler3-g27.priv.proxad.net.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CACHtiy95jJiyHXi90qMnDJwSo0wFWPE60nSj0M5UPdZBUW_Qzg%40mail.gmail.com.
À: "discuss-webrtc" <discuss...@googlegroups.com>
Envoyé: Lundi 28 Mai 2018 15:47:45
Objet: Re: [discuss-webrtc] Re: PSA: Support for Java 7 in AAR is deprecated
Unfortunately, this is infeasible due to technical limitations.
On Mon, May 28, 2018 at 2:56 PM David < duch...@free.fr > wrote:
Hello,
I try to create a xamarin solution with webrtc.
Since this modification , i couldn't user WebRtc.. The desugar process in xamarin doesn't work .. It is possible to make a switch to enable Java7 Bytecode Retrocompatibilty ?
On Thursday, November 23, 2017 at 10:47:44 AM UTC+1, Sami Kalliomäki wrote:
FYI: This is happening today.
On Thu, Nov 9, 2017 at 10:29 AM, Sami Kalliomäki < sa...@webrtc.org > wrote:
Hi,
We are removing support for Java 7 in AAR generation script in two weeks. This affects both our prebuilt libraries and `build_aar.py` script. To continue using the libraries, you should migrate your toolchain to support Java 8. Instructions for Android Studio can be found here .
Technical details:
Previously, we transformed Java 8 bytecode to Java 7 bytecode for the AAR. The issue with this is that clients need to manually include desugar runtime in their application to avoid crashes and some features such as static/default methods in interfaces cannot be supported this way. In the new approach we will ship Java 8 bytecode directly and the client toolchain is responsible for doing the transformation.
If you have any questions or concerns, feel free to express them in this thread.
Regards,
Sami Kalliomäki
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/4a1a5ebe-0ccf-463e-bb7b-943fb852207a%40googlegroups.com .
For more options, visit https://groups.google.com/d/optout .
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAD-mH0Fhd-MRWkUiMRyJkL2EbvZ7KuLtsVz3fik0ofaOrYkovg%40mail.gmail.com .
For more options, visit https://groups.google.com/d/optout .
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/2c3b0cdc-5966-4fc9-b7d8-cea64f5ef02f%40googlegroups.com.
I have converted code from java 8 to java 7.