Bläddra i källkod

[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é 7 år sedan
förälder
incheckning
9c2849a663
2 ändrade filer med 14 tillägg och 0 borttagningar
  1. 10
    0
      android/README.md
  2. 4
    0
      android/app/build.gradle

+ 10
- 0
android/README.md Visa fil

43
 `https://github.com/jitsi/jitsi-maven-repository/raw/master/releases` and the
43
 `https://github.com/jitsi/jitsi-maven-repository/raw/master/releases` and the
44
 dependency `org.jitsi.react:jitsi-meet-sdk:1.9.0` into your `build.gradle`.
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
 ## API
56
 ## API
47
 
57
 
48
 Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet
58
 Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet

+ 4
- 0
android/app/build.gradle Visa fil

31
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
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
 dependencies {
40
 dependencies {

Laddar…
Avbryt
Spara