aljohnston112

Results 32 comments of aljohnston112

``` -keep class org.jacoco.** { *; } ``` and ``` debug { testCoverageEnabled true multiDexKeepProguard file('multidex-config.pro') } ``` didn't help

Wow, so I needed ```debugImplementation 'androidx.test:core-ktx:1.4.0'```. ```androidTestImplementation 'androidx.test:core-ktx:1.4.0'``` was not enough.

Definitely something to add here https://developer.android.com/training/testing/instrumented-tests/androidx-test-libraries/test-setup unless it actually is a bug.

On another note, trying to debug with the test in the minimal reproducible example causes a NumberFormatException as the program is trying to parse "config_mainBuiltInDisplayCutout" as a number

``` val cdl = CountDownLatch(1) scenario.onActivity { val recyclerView = it.findViewById(R.id.fragment_editor_recycler_view) val ite = recyclerView.getChildAt(0) ite.getLocationOnScreen(location) cdl.countDown() } cdl.await() onView(isRoot()).perform( GeneralClickAction( Tap.LONG, { FloatArray(location.size){ i -> (location[i]+1).toFloat() } }, Press.FINGER,...

I think the problem is `android:launchMode="singleTop"` Here is my hack: ` inline fun launchFragmentInHiltContainer( navHost : Int, destFragment : Int, fragmentArgs: Bundle? = null, @StyleRes themeResId: Int = R.style.FragmentScenarioEmptyFragmentActivityTheme) {...

Here I set the graph and then perform navigation after the fact. ` inline fun launchFragmentInHiltContainer( navController: NavController, navHost: Int, navGraph: Int, ): ActivityScenario { val startActivityIntent = Intent.makeMainActivity( ComponentName(...

I have this issue on my Moto e6, but not even Android Studio's profiler can dump the heap, so it probably is device specific.