Skip to content

Commit

Permalink
Change deprecation status for Sounds (#1233)
Browse files Browse the repository at this point in the history
* Change deprecation level for Sounds

Change deprecation info for Sounds

* Actually remove deprecated constructor
  • Loading branch information
liviu-timar authored Nov 29, 2024
1 parent 9194905 commit ff6deff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 0 additions & 2 deletions stream-video-android-core/api/stream-video-android-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -5080,8 +5080,6 @@ public final class io/getstream/video/android/core/sounds/RingingConfigKt {
}

public final class io/getstream/video/android/core/sounds/Sounds {
public fun <init> (II)V
public synthetic fun <init> (IIILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun <init> (Lio/getstream/video/android/core/sounds/RingingConfig;)V
public final fun component1 ()Lio/getstream/video/android/core/sounds/RingingConfig;
public final fun copy (Lio/getstream/video/android/core/sounds/RingingConfig;)Lio/getstream/video/android/core/sounds/Sounds;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import androidx.annotation.RawRes
import io.getstream.log.StreamLog
import io.getstream.video.android.core.R
import io.getstream.video.android.core.utils.safeCallWithDefault
import org.jetbrains.annotations.ApiStatus

// Interface & API
/**
Expand All @@ -48,18 +47,7 @@ public interface RingingConfig {
replaceWith = ReplaceWith("SoundConfig"),
level = DeprecationLevel.WARNING,
)
public data class Sounds(val ringingConfig: RingingConfig) {
@ApiStatus.ScheduledForRemoval(inVersion = "1.0.18")
@Deprecated(
message = "Deprecated. This Constructor will now return a sound configuration with no sounds. Use constructor with SoundConfig parameter instead.",
replaceWith = ReplaceWith("defaultResourcesRingingConfig(context).toSounds()"),
level = DeprecationLevel.ERROR,
)
constructor(
@RawRes incomingCallSound: Int = R.raw.call_incoming_sound,
@RawRes outgoingCallSound: Int = R.raw.call_outgoing_sound,
) : this(emptyRingingConfig())
}
public data class Sounds(val ringingConfig: RingingConfig)

// Factories
/**
Expand Down

0 comments on commit ff6deff

Please sign in to comment.