Fix AndroidJUnit4 runner shrinked out by R8 issue.

The shrink flag will use R8 to optimize dex size by removing
unused code. It's defaults true for apps, false for libraries
and tests. We need to set it false to keep AndroidJUnit4 runner
for running UI instrumented tests directly.

Test: am instrument -w -r -e class android.nearby.multidevices.fastpair.seeker.ui.DismissNearbyHalfSheetUiTest android.nearby.multidevices/androidx.test.runner.AndroidJUnitRunner
Bug: 214015364
Ignore-AOSP-First: nearby_not_in_aosp_yet
Change-Id: I1f186e20bf216d36b4636b80a30c2eb1045a7765
1 file changed