From 9c2849a663032c0bbc9f9efdc899c821fb2b8a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 22 Dec 2017 14:07:11 +0100 Subject: [PATCH] [Android] Enable Java 1.8 compatibility support It was recently introduced in WebRTC, so we we need to enable it project wide. As for what features are supportd, see: https://developer.android.com/studio/write/java8-support.html --- android/README.md | 10 ++++++++++ android/app/build.gradle | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/android/README.md b/android/README.md index 15d1a8de2..f7d392245 100644 --- a/android/README.md +++ b/android/README.md @@ -43,6 +43,16 @@ Add the Maven repository `https://github.com/jitsi/jitsi-maven-repository/raw/master/releases` and the dependency `org.jitsi.react:jitsi-meet-sdk:1.9.0` into your `build.gradle`. +Add Java 1.8 compatibility support to your project by adding the following lines +into your `build.gradle` file: + +``` +compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 +} +``` + ## API Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet diff --git a/android/app/build.gradle b/android/app/build.gradle index d39edca60..017b855e3 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -31,6 +31,10 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } } dependencies {