From 883676f23868a06405e362e4ea75229855b53f6f Mon Sep 17 00:00:00 2001 From: hamed akhlaghi Date: Tue, 9 Jul 2019 11:58:24 +0430 Subject: [PATCH] Appstor version is Ready #261 --- Configuration/CarreneDevRelease.xcconfig | 10 ++++----- .../xcschemes/MobileTokenAppStore.xcscheme | 2 +- MobileToken/data/remote/ApiHelper.swift | 4 ++-- .../repository/user/UserRestRepository.swift | 22 +++++++++---------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Configuration/CarreneDevRelease.xcconfig b/Configuration/CarreneDevRelease.xcconfig index 19924fc..5c585cb 100644 --- a/Configuration/CarreneDevRelease.xcconfig +++ b/Configuration/CarreneDevRelease.xcconfig @@ -1,13 +1,13 @@ #include "Pods/Target Support Files/Pods-Common-MobileToken/Pods-Common-MobileToken.releasecarrenedev.xcconfig" -URL_ENDPOINT=192.168.222.40 +URL_ENDPOINT=agama.carrene.com -URL_PORT=81 +URL_PORT=443 -URL_SCHEME=http +URL_SCHEME=https -INITIAL_TOKEN=eyJhbGciOiJIUzI1NiIsImlhdCI6MTU1NTE1MjgwOCwiZXhwIjoxNTg2Njg4ODA4fQ.e30.B57qgqMYn3KLNtObtw1S3qzClXMn2sm_2qeosf110xQ -SELF_SIGNED = YES +INITIAL_TOKEN=eyJhbGciOiJIUzI1NiIsImlhdCI6MTU2MjIyNjMyMiwiZXhwIjoxODE0NTE0MzIyfQ.e30.QFCsgzs-Rkzd4EJz9mWC5KDUIL5o78Fx7jbcyAsHoL8 +SELF_SIGNED = NO VERSION=1 diff --git a/MobileToken.xcodeproj/xcshareddata/xcschemes/MobileTokenAppStore.xcscheme b/MobileToken.xcodeproj/xcshareddata/xcschemes/MobileTokenAppStore.xcscheme index 98d533c..4f48fbe 100644 --- a/MobileToken.xcodeproj/xcshareddata/xcschemes/MobileTokenAppStore.xcscheme +++ b/MobileToken.xcodeproj/xcshareddata/xcschemes/MobileTokenAppStore.xcscheme @@ -42,7 +42,7 @@ ) -> ())?) { let urlComponents = ApiHelper.newUrlComponentsInstance() urlComponents.path = "\(urlComponents.path ?? "")/\(ApiHelper.CLAIM_PATH)" - + let url = urlComponents.url! let parameters: [String: Any?] = - [ - "phone": user.phone, - "udid": user.udid, - "bankId" : user.bank?.id + [ + "phone": user.phone, + "udid": user.udid, + "bankId" : user.bank?.id ] let json = try! JSONSerialization.data(withJSONObject: parameters) var request = URLRequest(url: url)