diff --git a/lib/components/sidebar_drawer.dart b/lib/components/sidebar_drawer.dart index 14badfd..0923315 100644 --- a/lib/components/sidebar_drawer.dart +++ b/lib/components/sidebar_drawer.dart @@ -107,10 +107,10 @@ class SidebarDrawer extends StatelessWidget { const Spacer(), - const Padding( - padding: EdgeInsets.all(20), + Padding( + padding: const EdgeInsets.all(20), child: Text('ReVoltVPN · v${ReVoltApp.appVersion}', textAlign: TextAlign.center, - style: TextStyle(color: AppColors.slate, fontSize: 11, letterSpacing: 1), + style: const TextStyle(color: AppColors.slate, fontSize: 11, letterSpacing: 1), ), ), ], diff --git a/lib/logic/app_config.example.dart b/lib/logic/app_config.example.dart index e77ac15..f5a5414 100644 --- a/lib/logic/app_config.example.dart +++ b/lib/logic/app_config.example.dart @@ -46,11 +46,4 @@ abstract final class AppConfig { // ── AdMob ────────────────────────────────────────────────────────────── static const String adUnitId = 'ca-app-pub-0000000000000000/0000000000'; // REPLACE - - // ── Debug ────────────────────────────────────────────────────────────── - /// When true, the client skips the real AdMob flow and sends a fake SSV - /// callback directly to the server (requires ADMOB_BYPASS=True server-side). - /// Set to false in production — the Dart compiler tree-shakes the bypass - /// code entirely when this is a compile-time constant false. - static const bool enableAdBypass = false; } \ No newline at end of file diff --git a/lib/logic/hivemind_service.dart b/lib/logic/hivemind_service.dart index a10c9b9..e1274cd 100644 --- a/lib/logic/hivemind_service.dart +++ b/lib/logic/hivemind_service.dart @@ -37,7 +37,7 @@ class HivemindService { final url = _url('/session/status?device_id=$deviceId'); // ── AD BYPASS (debug only) ──────────────────────────────────────── - if (AppConfig.enableAdBypass && !skipAdBypass) { + if (kDebugMode && !skipAdBypass) { try { final customData = jsonEncode({'device_id': deviceId, 'nonce': nonce}); final fakeUrl = _url(