add adUnitId env variable

This commit is contained in:
2025-06-18 14:46:05 +02:00
parent 0b8fb4cc46
commit 1bfb878d0a

View File

@@ -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;
}