mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-20 02:18:15 +00:00
* replace react-native-incall-manager with @mattermost/calls-native for audio management
Removes react-native-incall-manager entirely and implements audio session
lifecycle, route selection, and ringtone playback directly in calls-native
on both iOS (AVAudioSession) and Android (AudioManager). Adds smart
priority-based auto-routing (BT > WiredHeadset > Earpiece) with user-intent
pinning. Unifies AudioDevice/AudioRoute types in calls-native as the single
source of truth.
* feedback review
* feedback on tests
* feedback review
* have callkit use the ringtone selected by the user
* feedback review
* destroy db after test
* route to wired headset on android
* Android bring back vibration
(cherry picked from commit 6edb76ec68)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
22 lines
501 B
Swift
22 lines
501 B
Swift
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import Foundation
|
|
|
|
extension CallsBridge {
|
|
enum Event: String, CaseIterable {
|
|
case VoIPTokenUpdated
|
|
case IncomingCall
|
|
case CallAnswered
|
|
case CallDeclined
|
|
case CallEnded
|
|
case CallMuted
|
|
case AudioRouteChanged
|
|
}
|
|
|
|
@objc
|
|
public static var supportedEvents: [String] {
|
|
return Event.allCases.map(\.rawValue)
|
|
}
|
|
}
|