im so tired man
This commit is contained in:
@@ -22,6 +22,9 @@ class AppConstants {
|
||||
if (!cleaned.startsWith('http://') && !cleaned.startsWith('https://')) {
|
||||
cleaned = 'http://$cleaned';
|
||||
}
|
||||
cleaned = cleaned
|
||||
.replaceFirst('://localhost', '://127.0.0.1')
|
||||
.replaceFirst('://0.0.0.0', '://127.0.0.1');
|
||||
while (cleaned.endsWith('/')) {
|
||||
cleaned = cleaned.substring(0, cleaned.length - 1);
|
||||
}
|
||||
@@ -61,7 +64,6 @@ class AppConstants {
|
||||
await prefs.setString(_selectedYoloModelKey, path);
|
||||
}
|
||||
|
||||
// Agora App ID tetap bisa dioverride saat build: --dart-define=AGORA_APP_ID=...
|
||||
static const String agoraAppId = String.fromEnvironment('AGORA_APP_ID',
|
||||
defaultValue: 'e36c2b6592e34cfda1f6ea6432a5e68d');
|
||||
// Set at build time with: --dart-define=AGORA_APP_ID=your_app_id
|
||||
static const String agoraAppId = String.fromEnvironment('AGORA_APP_ID');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user