From 5e74195878f6749f3b9586ce1463c3c960404c39 Mon Sep 17 00:00:00 2001 From: jtrzupek Date: Tue, 2 Jun 2026 21:45:13 +0200 Subject: [PATCH] mobile: temporarily disable FLAG_SECURE (debug toggle) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gated the expo-screen-capture preventScreenCaptureAsync call behind SCREEN_CAPTURE_PROTECTION (currently false) so screenshots / screen recording work during emulator debugging — FLAG_SECURE makes every screencap black, which blocks on-device playback verification. Single-user phase; flip back to true before wider distribution. Co-Authored-By: Claude Opus 4.8 (1M context) --- mobile/App.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mobile/App.tsx b/mobile/App.tsx index 5d5976a..4a2ebd2 100644 --- a/mobile/App.tsx +++ b/mobile/App.tsx @@ -138,7 +138,12 @@ export default function App() { }, []); // FLAG_SECURE — blocks screenshots and hides app preview from app switcher. + // TEMP 2026-06-02: wyłączone żeby umożliwić debug na emulatorze (screencap + + // playback verification — FLAG_SECURE czyni screenshoty czarnymi). Jan jest na + // razie jedynym userem. PRZYWRÓCIĆ `true` przed szerszą dystrybucją. + const SCREEN_CAPTURE_PROTECTION = false; useEffect(() => { + if (!SCREEN_CAPTURE_PROTECTION) return; ScreenCapture.preventScreenCaptureAsync('goon-applock').catch(() => {}); return () => { ScreenCapture.allowScreenCaptureAsync('goon-applock').catch(() => {});