11 lines · 408 B · KotlinRaw
package com.cottondb.android.platformimport android.content.Contextimport com.cottondb.android.take.TakeVoice/** Debug-only adapter seam. Tests set and clear [testFactory] around a complete visit. */object PlatformTakeVoice { @Volatile var testFactory: (() -> TakeVoice)? = null fun create(context: Context): TakeVoice = testFactory?.invoke() ?: AndroidTakeVoice(context.applicationContext)}