/// Zentrale App-Konfiguration – alle URLs, Keys, Feature-Toggles class AppConfig { // Server-Adressen static const navidromeUrl = 'https://musik.baka-net.de'; static const cloudUrl = 'https://cloud.baka-net.de'; static const logUrl = 'https://baka-net.de'; static const authUrl = 'https://baka-net.de/auth'; // API-Key – XOR-obfuskiert, damit `strings` keinen Klartext zeigt. // Key: "melo-cloud-2026-secret-key" XOR 0x55 static const _xorKey = 0x55; static const _obfuscatedKeyBytes = [ 0x38, 0x30, 0x39, 0x3A, 0x78, 0x36, 0x39, 0x3A, 0x20, 0x31, 0x78, 0x67, 0x65, 0x67, 0x63, 0x78, 0x26, 0x30, 0x36, 0x27, 0x30, 0x21, 0x78, 0x3E, 0x30, 0x2C, ]; /// API-Key: dart-define überschreibt; sonst fällt auf XOR-deobfuskierten Key zurück. static String get ytProxyApiKey { final env = const String.fromEnvironment('MELO_API_KEY'); if (env.isNotEmpty) return env; return String.fromCharCodes( _obfuscatedKeyBytes.map((b) => b ^ _xorKey), ); } // Feature-Toggles static bool sendeDiagnosedaten = true; }