From efbe44040c389434844c21b8f711d674a5bf7d30 Mon Sep 17 00:00:00 2001 From: Aleksandar Apostolov Date: Thu, 5 Sep 2024 10:54:34 +0200 Subject: [PATCH] Add audio only `CallService` to avoid requiring `CAMERA` permission (#1171) * Add audio only livestream call service. * Apidump --- .../api/stream-video-android-core.api | 1 + .../src/main/AndroidManifest.xml | 5 +++++ .../internal/service/CallServiceConfig.kt | 13 ++++++++++++ .../internal/service/LivestreamCallService.kt | 8 ++++++++ .../internal/service/CallServiceConfigTest.kt | 20 +++++++++++++++++++ 5 files changed, 47 insertions(+) diff --git a/stream-video-android-core/api/stream-video-android-core.api b/stream-video-android-core/api/stream-video-android-core.api index 1d6bde92f1..aeb44a3dc6 100644 --- a/stream-video-android-core/api/stream-video-android-core.api +++ b/stream-video-android-core/api/stream-video-android-core.api @@ -4238,6 +4238,7 @@ public final class io/getstream/video/android/core/notifications/internal/servic public final class io/getstream/video/android/core/notifications/internal/service/CallServiceConfigKt { public static final fun callServiceConfig ()Lio/getstream/video/android/core/notifications/internal/service/CallServiceConfig; + public static final fun livestreamAudioCallServiceConfig ()Lio/getstream/video/android/core/notifications/internal/service/CallServiceConfig; public static final fun livestreamCallServiceConfig ()Lio/getstream/video/android/core/notifications/internal/service/CallServiceConfig; public static final fun livestreamGuestCallServiceConfig ()Lio/getstream/video/android/core/notifications/internal/service/CallServiceConfig; } diff --git a/stream-video-android-core/src/main/AndroidManifest.xml b/stream-video-android-core/src/main/AndroidManifest.xml index 701e3aadb5..7360e764c4 100644 --- a/stream-video-android-core/src/main/AndroidManifest.xml +++ b/stream-video-android-core/src/main/AndroidManifest.xml @@ -103,6 +103,11 @@ android:foregroundServiceType="camera|microphone" android:exported="false" /> + +