Skip to content

Commit

Permalink
feat(config): add a dedicated flag for lowering key-packages limit
Browse files Browse the repository at this point in the history
  • Loading branch information
mchenani committed Apr 23, 2024
1 parent de8ade9 commit 49221ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class KaliumConfigsModule {
forceConstantBitrateCalls = BuildConfig.FORCE_CONSTANT_BITRATE_CALLS,
// we use upsert, available from SQL3.24, which is supported from Android API30, so for older APIs we have to use SQLCipher
shouldEncryptData = !BuildConfig.DEBUG || Build.VERSION.SDK_INT < Build.VERSION_CODES.R,
lowerKeyPackageLimits = BuildConfig.PRIVATE_BUILD,
lowerKeyPackageLimits = BuildConfig.LOWER_KEYPACKAGE_LIMIT,
lowerKeyingMaterialsUpdateThreshold = BuildConfig.PRIVATE_BUILD,
isMLSSupportEnabled = BuildConfig.MLS_SUPPORT_ENABLED,
developmentApiEnabled = BuildConfig.DEVELOPMENT_API_ENABLED,
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/customization/FeatureConfigs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ enum class FeatureConfigs(val value: String, val configType: ConfigType) {
* Security/Cryptography stuff
*/
MLS_SUPPORT_ENABLED("mls_support_enabled", ConfigType.BOOLEAN),
LOWER_KEYPACKAGE_LIMIT("lower_keypackage_limit", ConfigType.BOOLEAN),
ENCRYPT_PROTEUS_STORAGE("encrypt_proteus_storage", ConfigType.BOOLEAN),
WIPE_ON_COOKIE_INVALID("wipe_on_cookie_invalid", ConfigType.BOOLEAN),
WIPE_ON_ROOTED_DEVICE("wipe_on_rooted_device", ConfigType.BOOLEAN),
Expand Down
1 change: 1 addition & 0 deletions default.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
"force_constant_bitrate_calls": false,
"ignore_ssl_certificates": false,
"mls_support_enabled": true,
"lower_keypackage_limit": false,
"encrypt_proteus_storage": false,
"self_deleting_messages": true,
"wipe_on_cookie_invalid": false,
Expand Down

0 comments on commit 49221ab

Please sign in to comment.