6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit c996398c

AuthorEdmir Suljic<esu@dwarf.dk>
Date2025-10-02 10:07:24 +0200
Fixed bug in AndroidManifest and in /GetHotel url string

Changed files

comwell_key_app/android/app/src/main/AndroidManifest.xml | 10 +++++-----
 comwell_key_app/lib/services/api.dart                    |  4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

Diff

diff --git a/comwell_key_app/android/app/src/main/AndroidManifest.xml b/comwell_key_app/android/app/src/main/AndroidManifest.xml
index 0c983607..bdef8049 100644
--- a/comwell_key_app/android/app/src/main/AndroidManifest.xml
+++ b/comwell_key_app/android/app/src/main/AndroidManifest.xml
@@ -60,10 +60,7 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
- <data
- android:host="comwell-v2.ddev.site"
- android:path="/api/auth/login/callback"
- android:scheme="https" />
+
</intent-filter>
@@ -73,7 +70,10 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
-
+ <data
+ android:host="${applicationId}"
+ android:path="/PsrsGQrGkFzRWUJOtomYw29Pm1o="
+ android:scheme="msauth" />
</intent-filter>
</activity>
diff --git a/comwell_key_app/lib/services/api.dart b/comwell_key_app/lib/services/api.dart
index d9ada2bb..d0691c0d 100644
--- a/comwell_key_app/lib/services/api.dart
+++ b/comwell_key_app/lib/services/api.dart
@@ -167,8 +167,8 @@ class Api {
Future<dynamic> getHotelInfo(String hotelCode) async {
final cultureString = _currentLocale.toString().replaceAll('_', '-');
- final response = await dio.get<Json>(
- '${ApiEndpoints.getHotelInfo}x?hotelCode=$hotelCode&culture=$cultureString');
+ final url = '${ApiEndpoints.getHotelInfo}?hotelCode=$hotelCode&culture=$cultureString';
+ final response = await dio.get<Json>(url);
return response;
}