fix platform specific code not working on web
This commit is contained in:
parent
281ea863e8
commit
5135629b33
11 changed files with 29 additions and 14 deletions
|
|
@ -20,7 +20,15 @@ abstract class AppEnviroment {
|
|||
switch (env) {
|
||||
case Enviroment.dev:
|
||||
{
|
||||
if (kIsWeb || Platform.isIOS || Platform.isLinux) {
|
||||
if (kIsWeb) {
|
||||
//================= Web Dev Urls =================
|
||||
baseAppUrl = "http://localhost:80";
|
||||
baseApiUrl = "http://localhost:8080";
|
||||
baseFileUrl = "http://localhost:9000";
|
||||
baseAiUrl = "http://localhost:11434";
|
||||
bannerAdUnitId = 'ca-app-pub-3940256099942544/2435281174'; // IOS ID
|
||||
break;
|
||||
} else if (Platform.isIOS || Platform.isLinux) {
|
||||
//================= Web Dev Urls =================
|
||||
baseAppUrl = "http://localhost:80";
|
||||
baseApiUrl = "http://localhost:8080";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue