You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating robolectric to 4.11 and target sdk to 34 simple test I have stopped working
fun `test hasApplicationLocales`() {
assertFalse(application.hasApplicationLocales())
application.localeManager?.applicationLocales = LocaleList(Locale.FRANCE)
assertTrue(application.hasApplicationLocales())
}
@RequiresApi(33)
fun Context.hasApplicationLocales() = localeManager?.applicationLocales?.isEmpty == false
However running the same test with @Config(sdk = [33]) succeeds. It looks like ShadowLocaleManager.setApplicationLocales does not conform to Android's LocaleManager.setApplicationLocales method signature
Robolectric & Android Version
Robolectric 4.11
Android 14 (API 34)
The text was updated successfully, but these errors were encountered:
Android U introduced a new 3-arg variant of
LocaleManager.setApplicationLocales. Add a shadow for this, which will fix
LocaleManager.setApplicationLocales(LocaleList) in U+.
Fixes#8580
PiperOrigin-RevId: 577900687
Android U introduced a new 3-arg variant of
LocaleManager.setApplicationLocales. Add a shadow for this, which will fix
LocaleManager.setApplicationLocales(LocaleList) in U+.
Fixes#8580
PiperOrigin-RevId: 578049631
Description
After updating robolectric to 4.11 and target sdk to 34 simple test I have stopped working
However running the same test with
@Config(sdk = [33])
succeeds. It looks likeShadowLocaleManager.setApplicationLocales
does not conform to Android'sLocaleManager.setApplicationLocales
method signatureRobolectric & Android Version
Robolectric 4.11
Android 14 (API 34)
The text was updated successfully, but these errors were encountered: