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
j8
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
    cd android/
42
    cd android/
43
    ./gradlew :sdk:assembleRelease
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
    into a Maven repository of your choice.
46
    into a Maven repository of your choice.
47
 
47
 
48
 3. Configure the Maven repositories in which you are going to publish the
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
    In the file `android/sdk/build.gradle` modify the line that contains
51
    In the file `android/sdk/build.gradle` modify the line that contains
52
    `"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
52
    `"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
53
-   
53
+
54
    Change this value (which represents the Maven repository location used internally
54
    Change this value (which represents the Maven repository location used internally
55
    by the Jitsi Developers) to the location of the repository that you'd like to use.
55
    by the Jitsi Developers) to the location of the repository that you'd like to use.
56
 
56
 
64
 5. In _your_ project, add the Maven repository that you configured in step 3, as well
64
 5. In _your_ project, add the Maven repository that you configured in step 3, as well
65
    as the dependency `org.jitsi.react:jitsi-meet-sdk` into your `build.gradle`
65
    as the dependency `org.jitsi.react:jitsi-meet-sdk` into your `build.gradle`
66
    file. Note that it's needed to pull in the transitive dependencies:
66
    file. Note that it's needed to pull in the transitive dependencies:
67
-   
67
+
68
    ```gradle
68
    ```gradle
69
    implementation ('org.jitsi.react:jitsi-meet-sdk:+') { transitive = true }
69
    implementation ('org.jitsi.react:jitsi-meet-sdk:+') { transitive = true }
70
    ```
70
    ```
76
 
76
 
77
 6. Create the release assembly for _each_ third-party react-native module that you
77
 6. Create the release assembly for _each_ third-party react-native module that you
78
    need, replacing it's name in the example below.
78
    need, replacing it's name in the example below.
79
-   
79
+
80
    ```bash
80
    ```bash
81
    ./gradlew :react-native-webrtc:assembleRelease
81
    ./gradlew :react-native-webrtc:assembleRelease
82
    ```
82
    ```
83
-   
83
+
84
 7. Configure the Maven repositories in which you are going to publish the
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
    In the file `android/build.gradle` (note that this is a different file than the file
87
    In the file `android/build.gradle` (note that this is a different file than the file
88
    that was modified in step 3) modify the line that contains
88
    that was modified in step 3) modify the line that contains
89
    `"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
89
    `"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
90
-   
90
+
91
    Change this value (which represents the Maven repository location used internally
91
    Change this value (which represents the Maven repository location used internally
92
    by the Jitsi Developers) to the location of the repository that you'd like to use.
92
    by the Jitsi Developers) to the location of the repository that you'd like to use.
93
    You can use the same repository as the one you configured in step 3 if you want.
93
    You can use the same repository as the one you configured in step 3 if you want.
106
 
106
 
107
 
107
 
108
 ## Using the API
108
 ## Using the API
109
+=======
109
 
110
 
110
 Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet
111
 Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet
111
 experience and makes it reusable by third-party apps.
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
 To get started, extends your `android.app.Activity` from
124
 To get started, extends your `android.app.Activity` from
114
 `org.jitsi.meet.sdk.JitsiMeetActivity`:
125
 `org.jitsi.meet.sdk.JitsiMeetActivity`:
115
 
126
 

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

25
             exclude '/lib/x86_64/**'
25
             exclude '/lib/x86_64/**'
26
         }
26
         }
27
     }
27
     }
28
+
28
     buildTypes {
29
     buildTypes {
29
         release {
30
         release {
30
             minifyEnabled false
31
             minifyEnabled false
31
             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
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
 dependencies {
42
 dependencies {

Loading…
Cancel
Save