mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Inline some paypal remote configs.
This commit is contained in:
@@ -46,8 +46,9 @@ object InAppDonations {
|
||||
private fun isPayPalAvailableForDonateToSignalType(inAppPaymentType: InAppPaymentType): Boolean {
|
||||
return when (inAppPaymentType) {
|
||||
InAppPaymentType.UNKNOWN -> error("Unsupported type UNKNOWN")
|
||||
InAppPaymentType.ONE_TIME_DONATION, InAppPaymentType.ONE_TIME_GIFT -> RemoteConfig.paypalOneTimeDonations
|
||||
InAppPaymentType.RECURRING_DONATION -> RemoteConfig.paypalRecurringDonations
|
||||
InAppPaymentType.ONE_TIME_DONATION -> true
|
||||
InAppPaymentType.ONE_TIME_GIFT -> true
|
||||
InAppPaymentType.RECURRING_DONATION -> true
|
||||
InAppPaymentType.RECURRING_BACKUP -> false
|
||||
} && !LocaleRemoteConfig.isPayPalDisabled()
|
||||
}
|
||||
@@ -63,7 +64,7 @@ object InAppDonations {
|
||||
* Whether the user is in a region that supports PayPal, based off local phone number.
|
||||
*/
|
||||
fun isPayPalAvailable(): Boolean {
|
||||
return (RemoteConfig.paypalOneTimeDonations || RemoteConfig.paypalRecurringDonations) && !LocaleRemoteConfig.isPayPalDisabled()
|
||||
return !LocaleRemoteConfig.isPayPalDisabled()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -992,13 +992,6 @@ object RemoteConfig {
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/** Make CDSI lookups via libsignal-net instead of native websocket. */
|
||||
val useLibsignalNetForCdsiLookup: Boolean by remoteBoolean(
|
||||
key = "android.cds.libsignal.4",
|
||||
defaultValue = false,
|
||||
hotSwappable = true
|
||||
)
|
||||
|
||||
/** The lifespan of a linked device (i.e. the time it can be inactive for before it expires), in milliseconds. */
|
||||
@JvmStatic
|
||||
val linkedDeviceLifespan: Long by remoteValue(
|
||||
|
||||
Reference in New Issue
Block a user