QaFlags.kt
1package com.peachpasswords.ui.components23/**4 * Debug-only, opt-in escape hatch so automated visual QA (screenshot-based Gate 25 * comparisons) can capture screens that are normally FLAG_SECURE-protected. Off by6 * default; MainActivity only ever flips it from `false` when both BuildConfig.DEBUG7 * is true AND the launching intent explicitly asks for it — never in release builds,8 * never implicitly. [SecureFlagEffect] re-checks BuildConfig.DEBUG itself as a second9 * gate, so this object being non-private doesn't widen the actual bypass surface.10 */11object QaFlags {12 const val EXTRA_DISABLE_SECURE_CAPTURE = "qa_disable_secure_flag"1314 var disableSecureCaptureForQa: Boolean = false15}