diff --git a/assets/config/config_dev.json b/assets/config/config_dev.json new file mode 100644 index 0000000..7c95a7c --- /dev/null +++ b/assets/config/config_dev.json @@ -0,0 +1,6 @@ +{ + "backend": { + "baseUrl": "http://localhost:5000/api", + "apiKey": "6848e18f-d1d7-49fb-a047-c213c646904b" + } +} diff --git a/assets/config/config_preprod.json b/assets/config/config_preprod.json new file mode 100644 index 0000000..4a5abee --- /dev/null +++ b/assets/config/config_preprod.json @@ -0,0 +1,6 @@ +{ + "backend": { + "baseUrl": "https://espaces-naturels-mobile-orange.intranet.etat.lu/api", + "apiKey": "6848e18f-d1d7-49fb-a047-c213c646904b" + } +} diff --git a/lib/Screens/login_screen.dart b/lib/Screens/login_screen.dart index f0369fb..2f392a8 100644 --- a/lib/Screens/login_screen.dart +++ b/lib/Screens/login_screen.dart @@ -30,7 +30,7 @@ class LoginScreen extends StatefulWidget { class _LoginScreenState extends State { String email = ""; // DEV "test@email.be" String password = ""; // DEV = "kljqsdkljqsd" - String? host = "http://localhost:5000"; // "https://api.myinfomate.be" // "https://api.mymuseum.be" // DEV = "http://192.168.31.96" // http://localhost:5000 // https://api.mymuseum.be // myCore http://192.168.31.140:8089 + String? host = "https://api.mymuseum.be"; // "https://api.myinfomate.be" // "https://api.mymuseum.be" // DEV = "http://192.168.31.96" // http://localhost:5000 // https://api.mymuseum.be // myCore http://192.168.31.140:8089 Client? clientAPI; bool isLoading = false; bool isRememberMe = false; diff --git a/pubspec.yaml b/pubspec.yaml index dc7567d..916d4a2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -97,6 +97,7 @@ flutter: - assets/animations/ - assets/files/ - assets/files/policy_text.text + - assets/config/ msix_config: display_name: Manager