Skip to content

Commit

Permalink
[Calling][Beta] enable beta feature and useSDK beta for drops
Browse files Browse the repository at this point in the history
  • Loading branch information
iaulakh committed Sep 11, 2024
1 parent 7516a59 commit 319673a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion azure-communication-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ buildscript {
// and enable the beta features

// Latest GA version of the SDK
azure_calling_sdk_version_ga = '2.10.0'
azure_calling_sdk_version_ga = '2.11.0-beta.1'

// Newest version of the SDK, can be beta
azure_calling_sdk_version_beta = '2.11.0-beta.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.azure.android.communication.ui.calling.models.CallCompositeLocalOptions;
import android.content.Context;
import com.azure.android.communication.common.CommunicationTokenCredential;
/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
import com.azure.android.communication.ui.calling.models.CallCompositeAudioSelectionMode;
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */
import com.azure.android.communication.ui.calling.models.CallCompositeCallScreenOptions;
import com.azure.android.communication.ui.calling.models.CallCompositeLocalizationOptions;
import com.azure.android.communication.ui.calling.configuration.CallCompositeConfiguration;
Expand Down Expand Up @@ -43,9 +43,9 @@ public final class CallCompositeBuilder {
private CommunicationTokenCredential credential = null;
private Boolean disableInternalPushForIncomingCall = false;
private CommunicationIdentifier userId;
/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
private CallCompositeAudioSelectionMode audioSelectionMode = null;
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */

/**
* Sets an optional theme for call-composite to use by {@link CallComposite}.
Expand Down Expand Up @@ -203,18 +203,18 @@ public CallCompositeBuilder disableInternalPushForIncomingCall(final Boolean dis
return this;
}

/* <DEFAULT_AUDIO_MODE:0>
\**
/* <DEFAULT_AUDIO_MODE:0> */
/**
* Sets the audio selection mode.
*
* @param audioSelectionMode audio selection mode.
* @return {@link CallCompositeBuilder} for chaining options.
*\
*/
public CallCompositeBuilder audioSelectionMode(final CallCompositeAudioSelectionMode audioSelectionMode) {
this.audioSelectionMode = audioSelectionMode;
return this;
}
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */

/**
* Sets the communication identifier.
Expand Down Expand Up @@ -249,9 +249,9 @@ public CallComposite build() {
config.setDisableInternalPushForIncomingCall(disableInternalPushForIncomingCall);
config.setCapabilitiesChangedNotificationMode(capabilitiesChangedNotificationMode);
config.setSetupScreenOptions(setupScreenOptions);
/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
config.setAudioSelectionMode(audioSelectionMode);
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */
config.setIdentifier(userId);
return new CallComposite(config);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import com.azure.android.communication.common.CommunicationIdentifier
import com.azure.android.communication.common.CommunicationTokenCredential
import com.azure.android.communication.ui.calling.configuration.events.CallCompositeEventsHandler
import com.azure.android.communication.ui.calling.models.CallCompositeCapabilitiesChangedNotificationMode
/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
import com.azure.android.communication.ui.calling.models.CallCompositeAudioSelectionMode
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */
import com.azure.android.communication.ui.calling.models.CallCompositeCallScreenOptions
import com.azure.android.communication.ui.calling.models.CallCompositeLocalOptions
import com.azure.android.communication.ui.calling.models.CallCompositeLocalizationOptions
Expand All @@ -19,9 +19,9 @@ import com.azure.android.communication.ui.calling.models.CallCompositeSupportedS
import com.azure.android.communication.ui.calling.models.CallCompositeTelecomManagerOptions

internal class CallCompositeConfiguration {
/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
var audioSelectionMode: CallCompositeAudioSelectionMode? = null
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */
var themeConfig: Int? = null
var localizationConfig: CallCompositeLocalizationOptions? = null
var callCompositeEventsHandler = CallCompositeEventsHandler()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ internal class DependencyInjectionContainerImpl(
AudioSessionManager(
appStore,
applicationContext,
/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
configuration.audioSelectionMode
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ import androidx.annotation.RequiresApi
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.coroutineScope
import com.azure.android.communication.ui.calling.CallCompositeException
/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
import com.azure.android.communication.ui.calling.models.CallCompositeAudioSelectionMode
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */
import kotlinx.coroutines.launch
import java.lang.IllegalArgumentException
import com.azure.android.communication.ui.calling.redux.state.PermissionStatus

internal class AudioSessionManager(
private val store: Store<ReduxState>,
private val context: Context,
/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
private val audioSelectionMode: CallCompositeAudioSelectionMode? = null,
</DEFAULT_AUDIO_MODE:0> */
/* </DEFAULT_AUDIO_MODE:0> */

) : BluetoothProfile.ServiceListener, BroadcastReceiver() {

Expand Down Expand Up @@ -230,7 +230,7 @@ internal class AudioSessionManager(
if (initialized) return
initialized = true

/* <DEFAULT_AUDIO_MODE:0>
/* <DEFAULT_AUDIO_MODE:0> */
if (audioSelectionMode == CallCompositeAudioSelectionMode.RECEIVER) {
enableEarpiece()
store.dispatch(
Expand All @@ -241,13 +241,13 @@ internal class AudioSessionManager(
store.dispatch(
LocalParticipantAction.AudioDeviceChangeSucceeded(AudioDeviceSelectionStatus.BLUETOOTH_SCO_SELECTED)
)
} else { </DEFAULT_AUDIO_MODE:0> */
enableSpeakerPhone()
store.dispatch(
LocalParticipantAction.AudioDeviceChangeSucceeded(AudioDeviceSelectionStatus.SPEAKER_SELECTED)
)
/* <DEFAULT_AUDIO_MODE:0>
} </DEFAULT_AUDIO_MODE:0> */
} else { /* </DEFAULT_AUDIO_MODE:0> */
enableSpeakerPhone()
store.dispatch(
LocalParticipantAction.AudioDeviceChangeSucceeded(AudioDeviceSelectionStatus.SPEAKER_SELECTED)
)
/* <DEFAULT_AUDIO_MODE:0> */
} /* </DEFAULT_AUDIO_MODE:0> */

updateHeadphoneStatus()
}
Expand Down

0 comments on commit 319673a

Please sign in to comment.