mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
Merge pull request #8911 from element-hq/feature/bma/jitsi-10.2.0
Upgrade Jitsi to 10.2.0
This commit is contained in:
commit
04a49e9195
6 changed files with 15 additions and 17 deletions
|
@ -96,9 +96,9 @@ allprojects {
|
||||||
}
|
}
|
||||||
// Jitsi repo
|
// Jitsi repo
|
||||||
maven {
|
maven {
|
||||||
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/android-sdk-8.1.1"
|
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/mobile-sdk-10.2.0"
|
||||||
// Note: to test Jitsi release you can use a local file like this:
|
// Note: to test Jitsi release you can use a local file like this:
|
||||||
// url "file:///Users/bmarty/workspaces/jitsi_libre_maven/android-sdk-8.1.1"
|
// url "file:///Users/bmarty/workspaces/jitsi_libre_maven/mobile-sdk-10.2.0"
|
||||||
content {
|
content {
|
||||||
groups.jitsi.regex.each { includeGroupByRegex it }
|
groups.jitsi.regex.each { includeGroupByRegex it }
|
||||||
groups.jitsi.group.each { includeGroup it }
|
groups.jitsi.group.each { includeGroup it }
|
||||||
|
|
|
@ -72,6 +72,7 @@ ext.groups = [
|
||||||
'com.facebook.flipper',
|
'com.facebook.flipper',
|
||||||
'com.facebook.fresco',
|
'com.facebook.fresco',
|
||||||
'com.facebook.infer.annotation',
|
'com.facebook.infer.annotation',
|
||||||
|
'com.facebook.react',
|
||||||
'com.facebook.soloader',
|
'com.facebook.soloader',
|
||||||
'com.facebook.stetho',
|
'com.facebook.stetho',
|
||||||
'com.facebook.yoga',
|
'com.facebook.yoga',
|
||||||
|
|
|
@ -28,18 +28,18 @@ The generated maven repository is then host in the project https://github.com/el
|
||||||
|
|
||||||
#### Jitsi version
|
#### Jitsi version
|
||||||
|
|
||||||
Update the script `./tools/jitsi/build_jisti_libs.sh` with the tag of the project `https://github.com/jitsi/jitsi-meet`.
|
Update the script `./tools/jitsi/build_jitsi_libs.sh` with the tag of the project `https://github.com/jitsi/jitsi-meet`.
|
||||||
|
|
||||||
Latest tag can be found from this page: https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md
|
Latest tag can be found from this page: https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md
|
||||||
|
|
||||||
Currently we are building the version with the tag `android-sdk-8.1.1`.
|
Currently we are building the version with the tag `mobile-sdk-10.2.0`.
|
||||||
|
|
||||||
#### Run the build script
|
#### Run the build script
|
||||||
|
|
||||||
At the root of the Element Android, run the following script:
|
At the root of the Element Android, run the following script:
|
||||||
|
|
||||||
```shell script
|
```shell script
|
||||||
./tools/jitsi/build_jisti_libs.sh
|
./tools/jitsi/build_jitsi_libs.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
It will build the Jitsi Meet Android library and put every generated files in the folder `/tmp/jitsi`
|
It will build the Jitsi Meet Android library and put every generated files in the folder `/tmp/jitsi`
|
||||||
|
@ -49,7 +49,7 @@ It will build the Jitsi Meet Android library and put every generated files in th
|
||||||
- Update the file `./build.gradle` to use the previously created local Maven repository. Currently we have this line:
|
- Update the file `./build.gradle` to use the previously created local Maven repository. Currently we have this line:
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/android-sdk-8.1.1"
|
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/mobile-sdk-10.2.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
@ -57,13 +57,7 @@ You can uncomment and update the line starting with `// url "file://...` and com
|
||||||
- Update the dependency of the Jitsi Meet library in the file `./vector/build.gradle`. Currently we have this line:
|
- Update the dependency of the Jitsi Meet library in the file `./vector/build.gradle`. Currently we have this line:
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
api('org.jitsi.react:jitsi-meet-sdk:8.1.1')
|
api('org.jitsi.react:jitsi-meet-sdk:10.2.0')
|
||||||
```
|
|
||||||
|
|
||||||
- Update the dependency of the WebRTC library in the file `./vector/build.gradle`. Currently we have this line:
|
|
||||||
|
|
||||||
```groovy
|
|
||||||
implementation('com.facebook.react:react-native-webrtc:111.0.0-jitsi-13672566@aar')
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- Perform a gradle sync and build the project
|
- 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
|
||||||
- Update the file `./build.gradle` to use the previously created Maven repository. Currently we have this line:
|
- Update the file `./build.gradle` to use the previously created Maven repository. Currently we have this line:
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/android-sdk-8.1.1"
|
url "https://github.com/element-hq/jitsi_libre_maven/raw/main/mobile-sdk-10.2.0"
|
||||||
```
|
```
|
||||||
|
|
||||||
- Build the project and perform the sanity tests again.
|
- Build the project and perform the sanity tests again.
|
||||||
|
|
|
@ -26,7 +26,7 @@ export LIBRE_BUILD=true
|
||||||
cd jitsi-meet
|
cd jitsi-meet
|
||||||
|
|
||||||
# Get the latest version from the changelog: https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md
|
# Get the latest version from the changelog: https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md
|
||||||
git checkout android-sdk-8.1.1
|
git checkout mobile-sdk-10.2.0
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "##################################################"
|
echo "##################################################"
|
|
@ -250,7 +250,7 @@ dependencies {
|
||||||
implementation "androidx.emoji2:emoji2:1.3.0"
|
implementation "androidx.emoji2:emoji2:1.3.0"
|
||||||
|
|
||||||
// Jitsi
|
// Jitsi
|
||||||
api('org.jitsi.react:jitsi-meet-sdk:8.1.1') {
|
api('org.jitsi.react:jitsi-meet-sdk:10.2.0') {
|
||||||
exclude group: 'com.google.firebase'
|
exclude group: 'com.google.firebase'
|
||||||
exclude group: 'com.google.android.gms'
|
exclude group: 'com.google.android.gms'
|
||||||
exclude group: 'com.android.installreferrer'
|
exclude group: 'com.android.installreferrer'
|
||||||
|
@ -259,6 +259,9 @@ dependencies {
|
||||||
// The library exports a jetified artifact but doesn't remove the support library dependency
|
// The library exports a jetified artifact but doesn't remove the support library dependency
|
||||||
// https://github.com/MatrixFrog/Android-ScalableVideoView/blob/master/gradle.properties#L1
|
// https://github.com/MatrixFrog/Android-ScalableVideoView/blob/master/gradle.properties#L1
|
||||||
exclude group: 'com.android.support', module: 'appcompat-v7'
|
exclude group: 'com.android.support', module: 'appcompat-v7'
|
||||||
|
|
||||||
|
// transitive needed to pull in the react-native dependency
|
||||||
|
transitive = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// QR-code
|
// QR-code
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
|
||||||
|
|
||||||
<!-- Jitsi SDK is now API23+ -->
|
<!-- Jitsi SDK is now API23+ -->
|
||||||
<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" />
|
<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" />
|
||||||
|
|
||||||
<!-- Adding CAMERA permission prevents Chromebooks to see the application on the PlayStore -->
|
<!-- Adding CAMERA permission prevents Chromebooks to see the application on the PlayStore -->
|
||||||
<!-- Tell that the Camera is not mandatory to install the application -->
|
<!-- Tell that the Camera is not mandatory to install the application -->
|
||||||
|
|
Loading…
Reference in a new issue