@@ -60,8 +76,16 @@ class FlowDelegateUsageDetector : Detector(), SourceCodeScanner {
companion object {
// The name of the method for the flow accessor
private const val GET_FLOW = "getFlow"
// The containing file and implicitly generated class
private const val FLOW_DELEGATE = "io.livekit.android.util.FlowDelegateKt"
private const val FLOW_OBSERVABLE_ANNOTATION = "io.livekit.android.util.FlowObservable"
private const val DEFAULT_MSG =
"Incorrect flow property usage: Only properties marked with the @FlowObservable annotation can be observed using `io.livekit.android.util.flow`."
"Incorrect flow property usage: Only properties marked with the @FlowObservable annotation can be observed using `io.livekit.android.util.flow`. Improper usage will result in a NullPointerException."