fix(android): Add Robolectric SDK config for tests

Added @Config(sdk = [28]) annotation to DailyNotificationRecoveryTests to fix Robolectric initialization error (targetSdkVersion=35 > maxSdkVersion=34).

All 3 combined edge case tests now pass:
- test_combined_dst_boundary_duplicate_delivery_cold_start 
- test_combined_rollover_duplicate_delivery_cold_start 
- test_combined_schema_version_cold_start_recovery 
This commit is contained in:
Matthew Raymer
2025-12-23 03:45:12 +00:00
parent 38188d590e
commit 6f71180fd4
2 changed files with 4 additions and 1 deletions

View File

@@ -49,8 +49,9 @@ android {
testOptions {
unitTests.all {
enabled = true
includeAndroidResources = true // Enable Robolectric if used
}
// Enable Android resources for Robolectric (only for test tasks, not all tasks)
unitTests.includeAndroidResources = true
}
}