mirror of
https://github.com/androidx/media.git
synced 2025-05-07 15:40:37 +08:00

Previously, any constructors instrumented by Robolectric were made public. This caused two types of issues: 1) If Android classes had non-public constructors which were made public and added to the Android API, Robolectric allowed tests to incorrectly use the constructors on older SDK levels (where they were non-public). This most commonly occurs for AccessibiltyEvent and AccessibilityNodeInfo. 2) When reflection was used to instantiate classes that were instrumented by Robolectric, all constructors were accessible, which did not match what happened when running on an Android test. Update the instrumentation in Robolectric to prevent making all public constructors. PiperOrigin-RevId: 510049123
ExoPlayer library
The ExoPlayer library is split into multiple modules. See ExoPlayer's top level README for more information about the available library modules and how to use them.