Detect storage space issues during restore.

This commit is contained in:
Alex Hart
2024-11-14 13:26:30 -04:00
committed by Greyson Parrelli
parent b4472833b8
commit 7f1a866e79
14 changed files with 163 additions and 35 deletions

View File

@@ -14,6 +14,7 @@ import kotlin.time.Duration.Companion.milliseconds
*/
sealed interface BillingPurchaseResult {
data class Success(
val purchaseState: BillingPurchaseState,
val purchaseToken: String,
val isAcknowledged: Boolean,
val purchaseTime: Long,

View File

@@ -0,0 +1,15 @@
/*
* Copyright 2024 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.signal.core.util.billing
/**
* BillingPurchaseState which aligns with the Google Play Billing purchased state.
*/
enum class BillingPurchaseState {
UNSPECIFIED,
PURCHASED,
PENDING
}