mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Enable SyncNotificationsWithWorkManager in nightly and debug builds (#5573)
* Enable `SyncNotificationsWithWorkManager` in nightly and debug builds * Fix tests
This commit is contained in:
committed by
GitHub
parent
e9bd9a86ed
commit
dd395a5214
+2
-1
@@ -114,7 +114,8 @@ enum class FeatureFlags(
|
|||||||
title = "Sync notifications with WorkManager",
|
title = "Sync notifications with WorkManager",
|
||||||
description = "Use WorkManager to schedule notification sync tasks when a push is received." +
|
description = "Use WorkManager to schedule notification sync tasks when a push is received." +
|
||||||
" This should improve reliability and battery usage.",
|
" This should improve reliability and battery usage.",
|
||||||
defaultValue = { false },
|
// Enable by default on nightly and debug builds so we can get feedback before enabling it for everyone.
|
||||||
|
defaultValue = { meta -> meta.buildType != BuildType.RELEASE },
|
||||||
isFinished = false,
|
isFinished = false,
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -690,7 +690,7 @@ class DefaultPushHandlerTest {
|
|||||||
notificationChannels: FakeNotificationChannels = FakeNotificationChannels(),
|
notificationChannels: FakeNotificationChannels = FakeNotificationChannels(),
|
||||||
pushHistoryService: PushHistoryService = FakePushHistoryService(),
|
pushHistoryService: PushHistoryService = FakePushHistoryService(),
|
||||||
syncOnNotifiableEvent: SyncOnNotifiableEvent = SyncOnNotifiableEvent {},
|
syncOnNotifiableEvent: SyncOnNotifiableEvent = SyncOnNotifiableEvent {},
|
||||||
featureFlagService: FakeFeatureFlagService = FakeFeatureFlagService(),
|
featureFlagService: FakeFeatureFlagService = FakeFeatureFlagService(initialState = mapOf(FeatureFlags.SyncNotificationsWithWorkManager.key to false)),
|
||||||
workManagerScheduler: FakeWorkManagerScheduler = FakeWorkManagerScheduler(),
|
workManagerScheduler: FakeWorkManagerScheduler = FakeWorkManagerScheduler(),
|
||||||
): DefaultPushHandler {
|
): DefaultPushHandler {
|
||||||
return DefaultPushHandler(
|
return DefaultPushHandler(
|
||||||
|
|||||||
Reference in New Issue
Block a user