From 1bfb878d0a2b548f58c921d7eb28311e74e51a0f Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Wed, 18 Jun 2025 14:46:05 +0200 Subject: [PATCH] add adUnitId env variable --- Frontend/lib/mih_config/mih_env.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Frontend/lib/mih_config/mih_env.dart b/Frontend/lib/mih_config/mih_env.dart index 842552b8..53b5bb44 100644 --- a/Frontend/lib/mih_config/mih_env.dart +++ b/Frontend/lib/mih_config/mih_env.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + enum Enviroment { dev, prod } // @@ -5,6 +7,7 @@ abstract class AppEnviroment { static late String baseApiUrl; static late String baseAiUrl; static late String baseFileUrl; + static late String bannerAdUnitId; static late String whatsappAccessToken; static late String fingerPrintPluginKey; static late Enviroment _enviroment; @@ -18,10 +21,12 @@ abstract class AppEnviroment { baseApiUrl = "http://10.0.2.2:8080"; baseFileUrl = "http://10.0.2.2:9000"; baseAiUrl = "http://10.0.2.2:11434"; - //================= Web Dev Urls ================= + bannerAdUnitId = 'ca-app-pub-3940256099942544/9214589741'; + //================= Web & iOS Dev Urls ================= // baseApiUrl = "http://localhost:8080"; // baseFileUrl = "http://localhost:9000"; // baseAiUrl = "http://localhost:11434"; + // bannerAdUnitId = 'ca-app-pub-3940256099942544/2435281174'; break; } case Enviroment.prod: @@ -29,6 +34,9 @@ abstract class AppEnviroment { baseApiUrl = "https://api.mzansi-innovation-hub.co.za"; baseFileUrl = "https://minio.mzansi-innovation-hub.co.za"; baseAiUrl = "https://ai.mzansi-innovation-hub.co.za"; + bannerAdUnitId = Platform.isAndroid + ? 'ca-app-pub-4781880856775334/8868663088' // Android + : 'Inset-iOS-Unit-Id'; // iOS //fingerPrintPluginKey = 'h5X7a5j14iUZCobI1ZeX'; break; }