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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user