Skip to content

Commit

Permalink
provide a java wrapper method to access the clearAndroidUiDispatcher(…
Browse files Browse the repository at this point in the history
…) method

For some reason importing the test fixtures module into a separate project (e.g. GodTools) doesn't provide access to the kotlin clearAndroidUiDispatcher() method, but it can access Java methods.
  • Loading branch information
frett committed Oct 11, 2024
1 parent d478096 commit 70dcda1
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.ccci.gto.android.common.androidx.compose.ui.platform;

public class AndroidUiDispatcherUtil {
/**
* This method is provided to workaround a bug with Kotlin Test Fixtures not being accessible via an external aar
* dependency.
*/
public static void runScheduledDispatches() {
AndroidUiDispatcher_TestFixturesKt.clearAndroidUiDispatcher();
}
}

0 comments on commit 70dcda1

Please sign in to comment.