From 3e8c8c7e9f5acced311512e4ca4acf32589041e0 Mon Sep 17 00:00:00 2001 From: mso7nueh Date: Fri, 8 Aug 2025 12:16:20 +0300 Subject: [PATCH] fix(env): remove default value from config --- lib/core/env_config.dart | 42 ++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/core/env_config.dart b/lib/core/env_config.dart index 23c18f62..b363ad70 100644 --- a/lib/core/env_config.dart +++ b/lib/core/env_config.dart @@ -1,43 +1,43 @@ import 'package:flutter_dotenv/flutter_dotenv.dart'; class EnvConfig { - static String get baseUrl => dotenv.env['BASE_URL'] ?? 'https://eatvio.ru'; - static String get devBaseUrl => dotenv.env['DEV_BASE_URL'] ?? 'https://dev2.eatvio.com'; + static String get baseUrl => dotenv.env['BASE_URL'] ?? ''; + static String get devBaseUrl => dotenv.env['DEV_BASE_URL'] ?? ''; // Sentry Configuration - static String get sentryDsn => dotenv.env['SENTRY_DSN'] ?? 'http://ba7f2653067776f3034e6e89850e85a1@sentry.md-desk.ru:9000/2'; + static String get sentryDsn => dotenv.env['SENTRY_DSN'] ?? ''; // Firebase Configuration - static String get firebaseProjectId => dotenv.env['FIREBASE_PROJECT_ID'] ?? 'eatvio-3467b'; - static String get firebaseDatabaseUrl => dotenv.env['FIREBASE_DATABASE_URL'] ?? 'https://eatvio-3467b-default-rtdb.europe-west1.firebasedatabase.app'; - static String get firebaseStorageBucket => dotenv.env['FIREBASE_STORAGE_BUCKET'] ?? 'eatvio-3467b.firebasestorage.app'; - static String get firebaseMessagingSenderId => dotenv.env['FIREBASE_MESSAGING_SENDER_ID'] ?? '613980912922'; + static String get firebaseProjectId => dotenv.env['FIREBASE_PROJECT_ID'] ?? ''; + static String get firebaseDatabaseUrl => dotenv.env['FIREBASE_DATABASE_URL'] ?? ''; + static String get firebaseStorageBucket => dotenv.env['FIREBASE_STORAGE_BUCKET'] ?? ''; + static String get firebaseMessagingSenderId => dotenv.env['FIREBASE_MESSAGING_SENDER_ID'] ?? ''; // Firebase Android Configuration - static String get firebaseAndroidApiKey => dotenv.env['FIREBASE_ANDROID_API_KEY'] ?? 'AIzaSyBUe1UqAAMfgMcd4hWdRoLF1Os-yn-HE9k'; - static String get firebaseAndroidAppId => dotenv.env['FIREBASE_ANDROID_APP_ID'] ?? '1:613980912922:android:4de95e5f2d50ba69ecc0a3'; + static String get firebaseAndroidApiKey => dotenv.env['FIREBASE_ANDROID_API_KEY'] ?? ''; + static String get firebaseAndroidAppId => dotenv.env['FIREBASE_ANDROID_APP_ID'] ?? ''; // Firebase iOS Configuration - static String get firebaseIosApiKey => dotenv.env['FIREBASE_IOS_API_KEY'] ?? 'AIzaSyBnE8tQjL9_1HuXrTnqNy6qbXpoenO36yQ'; - static String get firebaseIosAppId => dotenv.env['FIREBASE_IOS_APP_ID'] ?? '1:613980912922:ios:c557d140a1212e63ecc0a3'; - static String get firebaseIosBundleId => dotenv.env['FIREBASE_IOS_BUNDLE_ID'] ?? 'com.eatvioapp.app'; + static String get firebaseIosApiKey => dotenv.env['FIREBASE_IOS_API_KEY'] ?? ''; + static String get firebaseIosAppId => dotenv.env['FIREBASE_IOS_APP_ID'] ?? ''; + static String get firebaseIosBundleId => dotenv.env['FIREBASE_IOS_BUNDLE_ID'] ?? ''; // App Store URLs - static String get appStoreUrl => dotenv.env['APP_STORE_URL'] ?? 'https://apps.apple.com/app/idYOUR_APP_ID'; - static String get rustoreUrl => dotenv.env['RUSTORE_URL'] ?? 'https://www.rustore.ru/catalog/app/com.eatvioapp.app'; + static String get appStoreUrl => dotenv.env['APP_STORE_URL'] ?? ''; + static String get rustoreUrl => dotenv.env['RUSTORE_URL'] ?? ''; // Telegram Support - static String get telegramSupportUrl => dotenv.env['TELEGRAM_SUPPORT_URL'] ?? 'https://t.me/eatvio'; - static String get supportEmail => dotenv.env['SUPPORT_EMAIL'] ?? 'help@eatv.io'; + static String get telegramSupportUrl => dotenv.env['TELEGRAM_SUPPORT_URL'] ?? ''; + static String get supportEmail => dotenv.env['SUPPORT_EMAIL'] ?? ''; // Test Credentials (for development only) - static String get testEmail => dotenv.env['TEST_EMAIL'] ?? 'reshetnick.mike+user1@gmail.com'; - static String get testPassword => dotenv.env['TEST_PASSWORD'] ?? '1234567890'; + static String get testEmail => dotenv.env['TEST_EMAIL'] ?? ''; + static String get testPassword => dotenv.env['TEST_PASSWORD'] ?? ''; // Email Validation API - static String get emailValidationApiUrl => dotenv.env['EMAIL_VALIDATION_API_URL'] ?? 'https://api.validate.email/validate'; + static String get emailValidationApiUrl => dotenv.env['EMAIL_VALIDATION_API_URL'] ?? ''; // Connection Check URLs - static String get googleCheckUrl => dotenv.env['GOOGLE_CHECK_URL'] ?? 'https://google.com'; - static String get yandexCheckUrl => dotenv.env['YANDEX_CHECK_URL'] ?? 'https://yandex.ru'; + static String get googleCheckUrl => dotenv.env['GOOGLE_CHECK_URL'] ?? ''; + static String get yandexCheckUrl => dotenv.env['YANDEX_CHECK_URL'] ?? ''; }