Skip to content

Commit

Permalink
Inline some paypal remote configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Dec 12, 2024
1 parent a93c1bc commit 010c45d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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()
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 010c45d

Please sign in to comment.