Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate GravatarQuickEditorActivity #544

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading