Use ModulesConfig for push provider modules.

This commit is contained in:
Benoit Marty 2024-09-24 12:31:18 +02:00
parent f119b09644
commit 77d7bacaf6
3 changed files with 32 additions and 5 deletions

View file

@ -0,0 +1,19 @@
/*
* Copyright 2024 New Vector Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only
* Please see LICENSE in the repository root for full details.
*/
package config
data class PushProvidersConfig(
val includeFirebase: Boolean,
val includeUnifiedPush: Boolean,
) {
init {
require(includeFirebase || includeUnifiedPush) {
"At least one push provider must be included"
}
}
}