Skip to content

Commit 04a49e9

Browse files
authored
Merge pull request #8911 from element-hq/feature/bma/jitsi-10.2.0
Upgrade Jitsi to 10.2.0
2 parents 6a8e978 + da94bb8 commit 04a49e9

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ allprojects {
9696
}
9797
// Jitsi repo
9898
maven {
99-
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/android-sdk-8.1.1"
99+
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/mobile-sdk-10.2.0"
100100
// Note: to test Jitsi release you can use a local file like this:
101-
// url "file:///Users/bmarty/workspaces/jitsi_libre_maven/android-sdk-8.1.1"
101+
// url "file:///Users/bmarty/workspaces/jitsi_libre_maven/mobile-sdk-10.2.0"
102102
content {
103103
groups.jitsi.regex.each { includeGroupByRegex it }
104104
groups.jitsi.group.each { includeGroup it }

dependencies_groups.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ ext.groups = [
7272
'com.facebook.flipper',
7373
'com.facebook.fresco',
7474
'com.facebook.infer.annotation',
75+
'com.facebook.react',
7576
'com.facebook.soloader',
7677
'com.facebook.stetho',
7778
'com.facebook.yoga',

docs/jitsi.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ The generated maven repository is then host in the project https://github.com/el
2828

2929
#### Jitsi version
3030

31-
Update the script `./tools/jitsi/build_jisti_libs.sh` with the tag of the project `https://github.com/jitsi/jitsi-meet`.
31+
Update the script `./tools/jitsi/build_jitsi_libs.sh` with the tag of the project `https://github.com/jitsi/jitsi-meet`.
3232

3333
Latest tag can be found from this page: https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md
3434

35-
Currently we are building the version with the tag `android-sdk-8.1.1`.
35+
Currently we are building the version with the tag `mobile-sdk-10.2.0`.
3636

3737
#### Run the build script
3838

3939
At the root of the Element Android, run the following script:
4040

4141
```shell script
42-
./tools/jitsi/build_jisti_libs.sh
42+
./tools/jitsi/build_jitsi_libs.sh
4343
```
4444

4545
It will build the Jitsi Meet Android library and put every generated files in the folder `/tmp/jitsi`
@@ -49,21 +49,15 @@ It will build the Jitsi Meet Android library and put every generated files in th
4949
- Update the file `./build.gradle` to use the previously created local Maven repository. Currently we have this line:
5050

5151
```groovy
52-
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/android-sdk-8.1.1"
52+
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/mobile-sdk-10.2.0"
5353
```
5454

5555
You can uncomment and update the line starting with `// url "file://...` and comment the line starting with `url`, to test the library using the locally generated Maven repository.
5656

5757
- Update the dependency of the Jitsi Meet library in the file `./vector/build.gradle`. Currently we have this line:
5858

5959
```groovy
60-
api('org.jitsi.react:jitsi-meet-sdk:8.1.1')
61-
```
62-
63-
- Update the dependency of the WebRTC library in the file `./vector/build.gradle`. Currently we have this line:
64-
65-
```groovy
66-
implementation('com.facebook.react:react-native-webrtc:111.0.0-jitsi-13672566@aar')
60+
api('org.jitsi.react:jitsi-meet-sdk:10.2.0')
6761
```
6862

6963
- Perform a gradle sync and build the project
@@ -88,7 +82,7 @@ If all the tests are passed, you can export the generated Jitsi library to our M
8882
- Update the file `./build.gradle` to use the previously created Maven repository. Currently we have this line:
8983

9084
```groovy
91-
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/android-sdk-8.1.1"
85+
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/mobile-sdk-10.2.0"
9286
```
9387

9488
- Build the project and perform the sanity tests again.

tools/jitsi/build_jisti_libs.sh renamed to tools/jitsi/build_jitsi_libs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export LIBRE_BUILD=true
2626
cd jitsi-meet
2727

2828
# Get the latest version from the changelog: https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md
29-
git checkout android-sdk-8.1.1
29+
git checkout mobile-sdk-10.2.0
3030

3131
echo
3232
echo "##################################################"

vector/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ dependencies {
250250
implementation "androidx.emoji2:emoji2:1.3.0"
251251

252252
// Jitsi
253-
api('org.jitsi.react:jitsi-meet-sdk:8.1.1') {
253+
api('org.jitsi.react:jitsi-meet-sdk:10.2.0') {
254254
exclude group: 'com.google.firebase'
255255
exclude group: 'com.google.android.gms'
256256
exclude group: 'com.android.installreferrer'
@@ -259,6 +259,9 @@ dependencies {
259259
// The library exports a jetified artifact but doesn't remove the support library dependency
260260
// https://github.com/MatrixFrog/Android-ScalableVideoView/blob/master/gradle.properties#L1
261261
exclude group: 'com.android.support', module: 'appcompat-v7'
262+
263+
// transitive needed to pull in the react-native dependency
264+
transitive = true
262265
}
263266

264267
// QR-code

vector/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
5555

5656
<!-- Jitsi SDK is now API23+ -->
57-
<uses-sdk tools:overrideLibrary="com.swmansion.gesturehandler,org.jitsi.meet.sdk,com.oney.WebRTCModule,com.learnium.RNDeviceInfo,com.reactnativecommunity.asyncstorage,com.ocetnik.timer,com.calendarevents,com.reactnativecommunity.netinfo,com.kevinresol.react_native_default_preference,com.rnimmersive,com.corbt.keepawake,com.BV.LinearGradient,com.horcrux.svg,com.oblador.performance,com.reactnativecommunity.slider,com.brentvatne.react,com.reactnativecommunity.clipboard,com.swmansion.gesturehandler.react,org.linusu,org.reactnative.maskedview,com.reactnativepagerview,com.swmansion.reanimated,com.th3rdwave.safeareacontext,com.swmansion.rnscreens,org.devio.rn.splashscreen,com.reactnativecommunity.webview,org.wonday.orientation" />
57+
<uses-sdk tools:overrideLibrary="com.swmansion.gesturehandler,org.jitsi.meet.sdk,com.oney.WebRTCModule,com.learnium.RNDeviceInfo,com.reactnativecommunity.asyncstorage,com.ocetnik.timer,com.calendarevents,com.reactnativecommunity.netinfo,com.kevinresol.react_native_default_preference,com.rnimmersive,com.rnimmersivemode,com.corbt.keepawake,com.BV.LinearGradient,com.horcrux.svg,com.oblador.performance,com.reactnativecommunity.slider,com.brentvatne.react,com.reactnativecommunity.clipboard,com.swmansion.gesturehandler.react,org.linusu,org.reactnative.maskedview,com.reactnativepagerview,com.swmansion.reanimated,com.th3rdwave.safeareacontext,com.swmansion.rnscreens,org.devio.rn.splashscreen,com.reactnativecommunity.webview,org.wonday.orientation" />
5858

5959
<!-- Adding CAMERA permission prevents Chromebooks to see the application on the PlayStore -->
6060
<!-- Tell that the Camera is not mandatory to install the application -->

0 commit comments

Comments
 (0)