Browse Source

Revert "fix(android): do not require java 8 target"

This reverts commit 9e0fee6c7d.

WebRTC requires Java 8, and Java 7 is now considered unsupported:
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/discuss-webrtc/V1h2uQMDCkA/RA-uzncVAAAJ
master
Saúl Ibarra Corretgé 7 years ago
parent
commit
c3f602b7b6
2 changed files with 27 additions and 10 deletions
  1. 21
    10
      android/README.md
  2. 6
    0
      android/app/build.gradle

+ 21
- 10
android/README.md View File

@@ -42,15 +42,15 @@ dependencies {
42 42
    cd android/
43 43
    ./gradlew :sdk:assembleRelease
44 44
    ```
45
-   When this successfully executes, artifacts/binaries are ready to be published 
45
+   When this successfully executes, artifacts/binaries are ready to be published
46 46
    into a Maven repository of your choice.
47 47
 
48 48
 3. Configure the Maven repositories in which you are going to publish the
49
-   artifacts/binaries during step 4. 
50
-   
49
+   artifacts/binaries during step 4.
50
+
51 51
    In the file `android/sdk/build.gradle` modify the line that contains
52 52
    `"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
53
-   
53
+
54 54
    Change this value (which represents the Maven repository location used internally
55 55
    by the Jitsi Developers) to the location of the repository that you'd like to use.
56 56
 
@@ -64,7 +64,7 @@ dependencies {
64 64
 5. In _your_ project, add the Maven repository that you configured in step 3, as well
65 65
    as the dependency `org.jitsi.react:jitsi-meet-sdk` into your `build.gradle`
66 66
    file. Note that it's needed to pull in the transitive dependencies:
67
-   
67
+
68 68
    ```gradle
69 69
    implementation ('org.jitsi.react:jitsi-meet-sdk:+') { transitive = true }
70 70
    ```
@@ -76,18 +76,18 @@ repositories) continue below.
76 76
 
77 77
 6. Create the release assembly for _each_ third-party react-native module that you
78 78
    need, replacing it's name in the example below.
79
-   
79
+
80 80
    ```bash
81 81
    ./gradlew :react-native-webrtc:assembleRelease
82 82
    ```
83
-   
83
+
84 84
 7. Configure the Maven repositories in which you are going to publish the
85
-   artifacts/binaries during step 8. 
86
-   
85
+   artifacts/binaries during step 8.
86
+
87 87
    In the file `android/build.gradle` (note that this is a different file than the file
88 88
    that was modified in step 3) modify the line that contains
89 89
    `"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
90
-   
90
+
91 91
    Change this value (which represents the Maven repository location used internally
92 92
    by the Jitsi Developers) to the location of the repository that you'd like to use.
93 93
    You can use the same repository as the one you configured in step 3 if you want.
@@ -106,10 +106,21 @@ repositories) continue below.
106 106
 
107 107
 
108 108
 ## Using the API
109
+=======
109 110
 
110 111
 Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet
111 112
 experience and makes it reusable by third-party apps.
112 113
 
114
+First, add Java 1.8 compatibility support to your project by adding the
115
+following lines into your `build.gradle` file:
116
+
117
+```
118
+compileOptions {
119
+    sourceCompatibility JavaVersion.VERSION_1_8
120
+    targetCompatibility JavaVersion.VERSION_1_8
121
+}
122
+```
123
+
113 124
 To get started, extends your `android.app.Activity` from
114 125
 `org.jitsi.meet.sdk.JitsiMeetActivity`:
115 126
 

+ 6
- 0
android/app/build.gradle View File

@@ -25,12 +25,18 @@ android {
25 25
             exclude '/lib/x86_64/**'
26 26
         }
27 27
     }
28
+
28 29
     buildTypes {
29 30
         release {
30 31
             minifyEnabled false
31 32
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
32 33
         }
33 34
     }
35
+
36
+    compileOptions {
37
+        sourceCompatibility JavaVersion.VERSION_1_8
38
+        targetCompatibility JavaVersion.VERSION_1_8
39
+    }
34 40
 }
35 41
 
36 42
 dependencies {

Loading…
Cancel
Save