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
This commit is contained in:
parent
9a06d2bf52
commit
c3f602b7b6
|
@ -42,15 +42,15 @@ dependencies {
|
||||||
cd android/
|
cd android/
|
||||||
./gradlew :sdk:assembleRelease
|
./gradlew :sdk:assembleRelease
|
||||||
```
|
```
|
||||||
When this successfully executes, artifacts/binaries are ready to be published
|
When this successfully executes, artifacts/binaries are ready to be published
|
||||||
into a Maven repository of your choice.
|
into a Maven repository of your choice.
|
||||||
|
|
||||||
3. Configure the Maven repositories in which you are going to publish the
|
3. Configure the Maven repositories in which you are going to publish the
|
||||||
artifacts/binaries during step 4.
|
artifacts/binaries during step 4.
|
||||||
|
|
||||||
In the file `android/sdk/build.gradle` modify the line that contains
|
In the file `android/sdk/build.gradle` modify the line that contains
|
||||||
`"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
|
`"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
|
||||||
|
|
||||||
Change this value (which represents the Maven repository location used internally
|
Change this value (which represents the Maven repository location used internally
|
||||||
by the Jitsi Developers) to the location of the repository that you'd like to use.
|
by the Jitsi Developers) to the location of the repository that you'd like to use.
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ dependencies {
|
||||||
5. In _your_ project, add the Maven repository that you configured in step 3, as well
|
5. In _your_ project, add the Maven repository that you configured in step 3, as well
|
||||||
as the dependency `org.jitsi.react:jitsi-meet-sdk` into your `build.gradle`
|
as the dependency `org.jitsi.react:jitsi-meet-sdk` into your `build.gradle`
|
||||||
file. Note that it's needed to pull in the transitive dependencies:
|
file. Note that it's needed to pull in the transitive dependencies:
|
||||||
|
|
||||||
```gradle
|
```gradle
|
||||||
implementation ('org.jitsi.react:jitsi-meet-sdk:+') { transitive = true }
|
implementation ('org.jitsi.react:jitsi-meet-sdk:+') { transitive = true }
|
||||||
```
|
```
|
||||||
|
@ -76,18 +76,18 @@ repositories) continue below.
|
||||||
|
|
||||||
6. Create the release assembly for _each_ third-party react-native module that you
|
6. Create the release assembly for _each_ third-party react-native module that you
|
||||||
need, replacing it's name in the example below.
|
need, replacing it's name in the example below.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
./gradlew :react-native-webrtc:assembleRelease
|
./gradlew :react-native-webrtc:assembleRelease
|
||||||
```
|
```
|
||||||
|
|
||||||
7. Configure the Maven repositories in which you are going to publish the
|
7. Configure the Maven repositories in which you are going to publish the
|
||||||
artifacts/binaries during step 8.
|
artifacts/binaries during step 8.
|
||||||
|
|
||||||
In the file `android/build.gradle` (note that this is a different file than the file
|
In the file `android/build.gradle` (note that this is a different file than the file
|
||||||
that was modified in step 3) modify the line that contains
|
that was modified in step 3) modify the line that contains
|
||||||
`"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
|
`"file:${rootProject.projectDir}/../../../jitsi/jitsi-maven-repository/releases"`
|
||||||
|
|
||||||
Change this value (which represents the Maven repository location used internally
|
Change this value (which represents the Maven repository location used internally
|
||||||
by the Jitsi Developers) to the location of the repository that you'd like to use.
|
by the Jitsi Developers) to the location of the repository that you'd like to use.
|
||||||
You can use the same repository as the one you configured in step 3 if you want.
|
You can use the same repository as the one you configured in step 3 if you want.
|
||||||
|
@ -106,10 +106,21 @@ repositories) continue below.
|
||||||
|
|
||||||
|
|
||||||
## Using the API
|
## Using the API
|
||||||
|
=======
|
||||||
|
|
||||||
Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet
|
Jitsi Meet SDK is an Android library which embodies the whole Jitsi Meet
|
||||||
experience and makes it reusable by third-party apps.
|
experience and makes it reusable by third-party apps.
|
||||||
|
|
||||||
|
First, 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
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
To get started, extends your `android.app.Activity` from
|
To get started, extends your `android.app.Activity` from
|
||||||
`org.jitsi.meet.sdk.JitsiMeetActivity`:
|
`org.jitsi.meet.sdk.JitsiMeetActivity`:
|
||||||
|
|
||||||
|
|
|
@ -25,12 +25,18 @@ android {
|
||||||
exclude '/lib/x86_64/**'
|
exclude '/lib/x86_64/**'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
Loading…
Reference in New Issue