Parcourir la source

[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
master
Saúl Ibarra Corretgé il y a 7 ans
Parent
révision
9c2849a663
2 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. 10
    0
      android/README.md
  2. 4
    0
      android/app/build.gradle

+ 10
- 0
android/README.md Voir le fichier

@@ -43,6 +43,16 @@ Add the Maven repository
43 43
 `https://github.com/jitsi/jitsi-maven-repository/raw/master/releases` and the
44 44
 dependency `org.jitsi.react:jitsi-meet-sdk:1.9.0` into your `build.gradle`.
45 45
 
46
+Add Java 1.8 compatibility support to your project by adding the following lines
47
+into your `build.gradle` file:
48
+
49
+```
50
+compileOptions {
51
+    sourceCompatibility JavaVersion.VERSION_1_8
52
+    targetCompatibility JavaVersion.VERSION_1_8
53
+}
54
+```
55
+
46 56
 ## API
47 57
 
48 58
 Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet

+ 4
- 0
android/app/build.gradle Voir le fichier

@@ -31,6 +31,10 @@ android {
31 31
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
32 32
         }
33 33
     }
34
+    compileOptions {
35
+        sourceCompatibility JavaVersion.VERSION_1_8
36
+        targetCompatibility JavaVersion.VERSION_1_8
37
+    }
34 38
 }
35 39
 
36 40
 dependencies {

Chargement…
Annuler
Enregistrer