From 9bb4c47249b37544d82f9f21415a4e9913b93d61 Mon Sep 17 00:00:00 2001 From: error500 Date: Wed, 8 Sep 2021 12:48:25 +0600 Subject: [PATCH] usesCleartextTraffic = false gettoken change to prod --- android/app/src/main/AndroidManifest.xml | 2 +- lib/core/services/ApiService.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f9d06d5..4f93139 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -28,7 +28,7 @@ android:icon="@mipmap/ic_launcher" android:label="Аман Касса" android:roundIcon="@mipmap/ic_launcher_rounded" - android:usesCleartextTraffic="true" + android:usesCleartextTraffic="false" android:networkSecurityConfig="@xml/network_security_config" > diff --git a/lib/core/services/ApiService.dart b/lib/core/services/ApiService.dart index 56b2ed8..a852114 100644 --- a/lib/core/services/ApiService.dart +++ b/lib/core/services/ApiService.dart @@ -73,7 +73,7 @@ class ApiService extends BaseService { print(hash); Map requestBody = {'login': login, 'hash': hash}; - var response = await requestFormData('/hb/pos/gettoken', requestBody, bodyEntry: true, posEndPoint: true, statusCheck: false); + var response = await requestFormData('/halykpos/gettoken', requestBody, bodyEntry: true, posEndPoint: true, statusCheck: false); print(response); return HalykPosSession.fromJson(jsonDecode(response)); }