mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-03-01 06:07:37 +00:00
Add BillingDependencies and shared implementation.
This commit is contained in:
committed by
Cody Henthorne
parent
36bfd19bcf
commit
982b90d423
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright 2024 Signal Messenger, LLC
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package org.signal.core.util.billing
|
||||
|
||||
import android.content.Context
|
||||
|
||||
/**
|
||||
* Provides a dependency model by which the billing api can request different resources.
|
||||
*/
|
||||
interface BillingDependencies {
|
||||
/**
|
||||
* Application context
|
||||
*/
|
||||
val context: Context
|
||||
|
||||
/**
|
||||
* Get the product id from the donations configuration object.
|
||||
*/
|
||||
suspend fun getProductId(): String
|
||||
|
||||
/**
|
||||
* Get the base plan id from the donations configuration object.
|
||||
*/
|
||||
suspend fun getBasePlanId(): String
|
||||
}
|
||||
Reference in New Issue
Block a user