Skip to content

Commit

Permalink
Add ConfigCache capability
Browse files Browse the repository at this point in the history
  • Loading branch information
ianrumac committed Sep 24, 2024
1 parent 987d2c2 commit 6c8d5b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ internal sealed class Capability(
@Serializable
@SerialName("multiple_paywall_urls")
object MultiplePaywallUrls : Capability("multiple_paywall_urls")

@Serializable
@SerialName("config_caching")
object ConfigCaching : Capability("config_caching")
}

internal fun List<Capability>.toJson(json: Json): JsonElement = json.encodeToJsonElement(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ class DeviceHelper(
null
}
val capabilities: List<Capability> =
listOf(Capability.PaywallEventReceiver(), Capability.MultiplePaywallUrls)
listOf(Capability.PaywallEventReceiver(), Capability.MultiplePaywallUrls, Capability.ConfigCaching)

val deviceTemplate =
DeviceTemplate(
Expand Down

0 comments on commit 6c8d5b2

Please sign in to comment.