Skip to content

Commit

Permalink
Deprecate GravatarQuickEditorActivity (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamGrzybkowski authored Jan 23, 2025
1 parent e4974bc commit e0d81b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ import kotlinx.parcelize.Parcelize
*
* @see GravatarEditorActivityArguments
*/
@Deprecated(
message = "This class is deprecated and will be removed in a future release.",
replaceWith = ReplaceWith("GravatarQuickEditor.show()"),
)
public class GravatarQuickEditorActivity : AppCompatActivity() {
private var avatarHasChanged: Boolean = false

Expand Down Expand Up @@ -109,6 +113,10 @@ public class GravatarQuickEditorActivity : AppCompatActivity() {
* @see GravatarQuickEditorResult
* @see GravatarEditorActivityArguments
*/
@Deprecated(
message = "This class is deprecated and will be removed in a future release.",
replaceWith = ReplaceWith("GravatarQuickEditor.show()"),
)
public class GetQuickEditorResult :
ActivityResultContract<GravatarEditorActivityArguments, GravatarQuickEditorResult?>() {
override fun createIntent(context: Context, input: GravatarEditorActivityArguments): Intent {
Expand All @@ -129,6 +137,10 @@ public class GetQuickEditorResult :
/**
* Result enum for the [GravatarQuickEditorActivity].
*/
@Deprecated(
message = "This class is deprecated and will be removed in a future release.",
replaceWith = ReplaceWith("GravatarQuickEditor.show()"),
)
public enum class GravatarQuickEditorResult {
AVATAR_SELECTED,
DISMISSED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import android.os.Bundle
import androidx.activity.result.contract.ActivityResultContract
import androidx.appcompat.app.AppCompatActivity
import androidx.browser.customtabs.CustomTabsIntent
import com.gravatar.quickeditor.ui.GravatarQuickEditorActivity
import com.gravatar.types.Email
import java.net.URLDecoder

Expand Down Expand Up @@ -181,7 +180,7 @@ internal class GravatarOAuthActivityParams(
)

/**
* Result enum for the [GravatarQuickEditorActivity].
* Result enum for the [GravatarOAuthActivity].
*/
internal sealed class GravatarOAuthResult {
data class TOKEN(val token: String) : GravatarOAuthResult()
Expand Down

0 comments on commit e0d81b8

Please sign in to comment.