Skip to content

Instantly share code, notes, and snippets.

View jfresen's full-sized avatar

Jelle Fresen jfresen

View GitHub Profile
@jfresen
jfresen / Jelle.icls
Last active March 12, 2024 13:02
Logcat colors for Android Studio
<scheme name="Jelle" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2024-03-12T12:29:44</property>
<property name="ide">AndroidStudio</property>
<property name="ideVersion">2023.3.1.12</property>
<property name="modified">2024-03-12T12:29:59</property>
<property name="originalScheme">Jelle</property>
</metaInfo>
<option name="LINE_SPACING" value="1.2" />
@jfresen
jfresen / ObserveStateChangesCreateComposeRule.kt
Last active July 10, 2024 08:47
Logs all state changes so you can find out what causes a self-invalidating loop in your app in case you keep running into timeouts in your tests
// Use this template if you use ComposeTestRule (createComposeRule())
// Use the other template if you use ComposeUiTest (runComposeUiTest())
private val TAG = "TEST_TAG"
private var I = 0 // add a sequence number to every log message for disambiguation
private var unregisterApplyObserver: ObserverHandle? = null
@Test
fun test() {
// your test here