diff --git a/build.gradle b/build.gradle index 6ccb83e703..7e7da48295 100644 --- a/build.gradle +++ b/build.gradle @@ -96,9 +96,9 @@ allprojects { } // Jitsi repo maven { - url "https://github.com/vector-im/jitsi_libre_maven/raw/main/android-sdk-5.0.2" + url "https://github.com/vector-im/jitsi_libre_maven/raw/main/android-sdk-6.2.2" // Note: to test Jitsi release you can use a local file like this: - // url "file:///Users/bmarty/workspaces/jitsi_libre_maven/android-sdk-3.10.0" + // url "file:///Users/bmarty/workspaces/jitsi_libre_maven/android-sdk-6.2.2" content { groups.jitsi.regex.each { includeGroupByRegex it } groups.jitsi.group.each { includeGroup it } diff --git a/changelog.d/6195.misc b/changelog.d/6195.misc new file mode 100644 index 0000000000..96fd553d5c --- /dev/null +++ b/changelog.d/6195.misc @@ -0,0 +1 @@ +Upgrade Jitsi SDK to 6.2.2 and WebRtc to 1.106.1-jitsi-12039821. diff --git a/docs/jitsi.md b/docs/jitsi.md index 4dd06effdb..d6c93c49aa 100644 --- a/docs/jitsi.md +++ b/docs/jitsi.md @@ -93,4 +93,4 @@ url "https://github.com/vector-im/jitsi_libre_maven/raw/master/android-sdk-3.10. - Build the project and perform the sanity tests again. -- Update the file `/CHANGES.md` to notify about the library upgrade, and create a regular PR for project Element Android. +- Create a PR for project Element Android and add a changelog file `.misc` to notify about the library upgrade. diff --git a/tools/jitsi/build_jisti_libs.sh b/tools/jitsi/build_jisti_libs.sh index 445dc5e0fe..91c32fc597 100755 --- a/tools/jitsi/build_jisti_libs.sh +++ b/tools/jitsi/build_jisti_libs.sh @@ -25,12 +25,8 @@ export LIBRE_BUILD=true cd jitsi-meet -# This is commit after version 2.2.2, which does not compile -# git checkout 5a934c071a5cbe64de275a25d0ed62d8193cdd03 - -# Changelog: https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md - -git checkout android-sdk-5.0.2 +# 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-6.2.2 echo echo "##################################################" diff --git a/vector-app/src/debug/AndroidManifest.xml b/vector-app/src/debug/AndroidManifest.xml index a7867f4081..be2aadbeaf 100644 --- a/vector-app/src/debug/AndroidManifest.xml +++ b/vector-app/src/debug/AndroidManifest.xml @@ -4,6 +4,7 @@ + diff --git a/vector-app/src/debug/java/im/vector/app/features/debug/DebugMenuActivity.kt b/vector-app/src/debug/java/im/vector/app/features/debug/DebugMenuActivity.kt index f431192efd..af63e6eae0 100644 --- a/vector-app/src/debug/java/im/vector/app/features/debug/DebugMenuActivity.kt +++ b/vector-app/src/debug/java/im/vector/app/features/debug/DebugMenuActivity.kt @@ -35,6 +35,7 @@ import im.vector.app.core.utils.registerForPermissionsResult import im.vector.app.core.utils.toast import im.vector.app.features.debug.analytics.DebugAnalyticsActivity import im.vector.app.features.debug.features.DebugFeaturesSettingsActivity +import im.vector.app.features.debug.jitsi.DebugJitsiActivity import im.vector.app.features.debug.leak.DebugMemoryLeaksActivity import im.vector.app.features.debug.sas.DebugSasEmojiActivity import im.vector.app.features.debug.settings.DebugPrivateSettingsActivity @@ -121,6 +122,9 @@ class DebugMenuActivity : VectorBaseActivity() { views.debugPermission.setOnClickListener { startActivity(Intent(this, DebugPermissionActivity::class.java)) } + views.debugJitsi.setOnClickListener { + startActivity(Intent(this, DebugJitsiActivity::class.java)) + } } private fun openPrivateSettings() { @@ -175,7 +179,7 @@ class DebugMenuActivity : VectorBaseActivity() { .setContentText("Content") // No effect because it's a group summary notif .setNumber(33) - .setSmallIcon(R.drawable.ic_status_bar) + .setSmallIcon(R.drawable.ic_notification) // This provocate the badge issue: no badge for group notification .setGroup("GroupKey") .setGroupSummary(true) @@ -208,7 +212,7 @@ class DebugMenuActivity : VectorBaseActivity() { // For shortcut on long press on launcher icon .setBadgeIconType(NotificationCompat.BADGE_ICON_NONE) .setStyle(messagingStyle1) - .setSmallIcon(R.drawable.ic_status_bar) + .setSmallIcon(R.drawable.ic_notification) .setGroup("GroupKey") .build() ) @@ -220,7 +224,7 @@ class DebugMenuActivity : VectorBaseActivity() { .setContentTitle("Title 2") .setContentText("Content 2") .setStyle(messagingStyle2) - .setSmallIcon(R.drawable.ic_status_bar) + .setSmallIcon(R.drawable.ic_notification) .setGroup("GroupKey") .build() ) diff --git a/vector-app/src/debug/java/im/vector/app/features/debug/jitsi/DebugJitsiActivity.kt b/vector-app/src/debug/java/im/vector/app/features/debug/jitsi/DebugJitsiActivity.kt new file mode 100644 index 0000000000..5c6c5d1898 --- /dev/null +++ b/vector-app/src/debug/java/im/vector/app/features/debug/jitsi/DebugJitsiActivity.kt @@ -0,0 +1,45 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package im.vector.app.features.debug.jitsi + +import android.annotation.SuppressLint +import dagger.hilt.android.AndroidEntryPoint +import im.vector.app.core.platform.VectorBaseActivity +import im.vector.application.databinding.ActivityDebugJitsiBinding +import org.jitsi.meet.sdk.JitsiMeet + +@AndroidEntryPoint +class DebugJitsiActivity : VectorBaseActivity() { + + override fun getBinding() = ActivityDebugJitsiBinding.inflate(layoutInflater) + + override fun getCoordinatorLayout() = views.coordinatorLayout + + @SuppressLint("SetTextI18n") + override fun initUiAndData() { + val isCrashReportingDisabled = JitsiMeet.isCrashReportingDisabled(this) + views.status.text = "Jitsi crash reporting is disabled: $isCrashReportingDisabled" + + views.splash.setOnClickListener { + JitsiMeet.showSplashScreen(this) + } + + views.dev.setOnClickListener { + JitsiMeet.showDevOptions() + } + } +} diff --git a/vector-app/src/debug/res/layout/activity_debug_jitsi.xml b/vector-app/src/debug/res/layout/activity_debug_jitsi.xml new file mode 100644 index 0000000000..0a13594854 --- /dev/null +++ b/vector-app/src/debug/res/layout/activity_debug_jitsi.xml @@ -0,0 +1,47 @@ + + + + + + + + + +