Update to stores VersionID 20.5

master
haroon amjad 2 days ago
parent b1ac1c1530
commit 33c11e6918

@ -214,7 +214,8 @@ internal class PenguinView(
.setIsEnableReportIssue(false) .setIsEnableReportIssue(false)
.setEnableSharedLocationCallBack(false) .setEnableSharedLocationCallBack(false)
.setShowUILoader(true) .setShowUILoader(true)
.setCampusId(creationParams["projectID"] as Int) // .setCampusId(creationParams["projectID"] as Int)
.setCampusId(1)
.build() .build()
// Set location delegate to handle location updates // Set location delegate to handle location updates

@ -20,4 +20,5 @@
Geofence requests happened too frequently. Geofence requests happened too frequently.
</string> </string>
<string name="mapbox_access_token" translatable="false">pk.eyJ1IjoicndhaWQiLCJhIjoiY2x5cGo4aHNjMGNsbTJyc2djempobGQxaSJ9.RCaC6WrUt4A4YnZNfxnONQ</string> <string name="mapbox_access_token" translatable="false">pk.eyJ1IjoicndhaWQiLCJhIjoiY2x5cGo4aHNjMGNsbTJyc2djempobGQxaSJ9.RCaC6WrUt4A4YnZNfxnONQ</string>
<!-- <string name="mapbox_access_token" translatable="false">pk.eyJ1IjoibWFqZDk5MyIsImEiOiJjbDF5b2RlcXAwZGxvM2JtdDBsdzhvYjYzIn0.DNhWsiLv4aKz7-GJFaMy-w</string>-->
</resources> </resources>

@ -47,8 +47,9 @@ struct PenguinModel {
let isEnableReportIssue = dictionary["isEnableReportIssue"] as? Bool, let isEnableReportIssue = dictionary["isEnableReportIssue"] as? Bool,
let languageCode = dictionary["languageCode"] as? String, let languageCode = dictionary["languageCode"] as? String,
let clinicID = dictionary["clinicID"] as? String, let clinicID = dictionary["clinicID"] as? String,
let patientID = dictionary["patientID"] as? String, let patientID = dictionary["patientID"] as? String
let projectID = dictionary["projectID"] as? String // let projectID = "1"
// let projectID = dictionary["projectID"] as? String
else { else {
print("Initialization failed due to missing or invalid keys.") print("Initialization failed due to missing or invalid keys.")
return nil return nil
@ -71,6 +72,6 @@ struct PenguinModel {
self.languageCode = languageCode self.languageCode = languageCode
self.clinicID = clinicID self.clinicID = clinicID
self.patientID = patientID self.patientID = patientID
self.projectID = projectID self.projectID = "1"
} }
} }

@ -14,7 +14,7 @@ class PenguinNavigator {
} }
func navigateToPOI( referenceId:String,completion: @escaping (Bool, String?) -> Void) { func navigateToPOI( referenceId:String,completion: @escaping (Bool, String?) -> Void) {
PenNavUIManager.shared.getToken(clientID: config.clientID, clientKey: config.clientKey) { [weak self] token, error in PenNavUIManager.shared.getToken(clientID: config.clientID, clientKey: config.clientKey, showProgress: false) { [weak self] token, error in
if let error = error { if let error = error {
let errorMessage = "Token error while getting the for Navigate to method" let errorMessage = "Token error while getting the for Navigate to method"

@ -16,6 +16,7 @@ import Foundation
import UIKit import UIKit
import Flutter import Flutter
import PenNavUI import PenNavUI
import PenguinINRenderer
import Foundation import Foundation
import Flutter import Flutter
@ -34,6 +35,7 @@ import UIKit
class PenguinView: NSObject, FlutterPlatformView, PIEventsDelegate, PenNavInitializationDelegate class PenguinView: NSObject, FlutterPlatformView, PIEventsDelegate, PenNavInitializationDelegate
{ {
// The main view displayed within the platform view // The main view displayed within the platform view
private var _view: UIView private var _view: UIView
@ -156,6 +158,8 @@ class PenguinView: NSObject, FlutterPlatformView, PIEventsDelegate, PenNavInitia
PenNavUIManager.shared.initializationDelegate = self PenNavUIManager.shared.initializationDelegate = self
PIRendererSettings.styleUri = "mapbox://styles/rwaid/cm3h30b36007v01qz7ik8a0sk"
// Configure the Penguin SDK with necessary parameters // Configure the Penguin SDK with necessary parameters
PenNavUIManager.shared PenNavUIManager.shared
@ -180,7 +184,9 @@ class PenguinView: NSObject, FlutterPlatformView, PIEventsDelegate, PenNavInitia
.setLanguage(args.languageCode) .setLanguage(args.languageCode)
.setBackButtonVisibility(true) .setBackButtonVisibility(visible: true)
.setCampusID(1)
.build() .build()
@ -270,7 +276,9 @@ class PenguinView: NSObject, FlutterPlatformView, PIEventsDelegate, PenNavInitia
*/ */
func onPenNavSuccess() {
// func onPenNavSuccess() {
func onPenNavInitializationSuccess() {
print("====== onPenNavSuccess =========") print("====== onPenNavSuccess =========")
@ -340,7 +348,7 @@ class PenguinView: NSObject, FlutterPlatformView, PIEventsDelegate, PenNavInitia
PenNavUIManager.shared.getToken(clientID: config.clientID, clientKey: config.clientKey) { [weak self] token, error in PenNavUIManager.shared.getToken(clientID: config.clientID, clientKey: config.clientKey, showProgress: false) { [weak self] token, error in
if let error = error { if let error = error {

@ -29,6 +29,7 @@ var BASE_URL = 'https://hmgwebservices.com/';
// var BASE_URL = 'https://vidamergeuat.cloudsolutions.com.sa/'; // var BASE_URL = 'https://vidamergeuat.cloudsolutions.com.sa/';
// var BASE_URL = 'https://webservices.hmg.com/'; // var BASE_URL = 'https://webservices.hmg.com/';
// var BASE_URL = 'https://webservices.hmg.com/ClientService/'; // RSG environment
// var BASE_URL = 'http://10.50.100.198:4422/'; // var BASE_URL = 'http://10.50.100.198:4422/';
@ -358,7 +359,7 @@ var CAN_PAY_FOR_FOR_WALKIN_APPOINTMENT = 'Services/Doctors.svc/REST/CanPayForWal
var CHANNEL = 3; var CHANNEL = 3;
var GENERAL_ID = 'Cs2020@2016\$2958'; var GENERAL_ID = 'Cs2020@2016\$2958';
var IP_ADDRESS = '10.20.10.20'; var IP_ADDRESS = '10.20.10.20';
var VERSION_ID = 20.4; var VERSION_ID = 20.5;
var SETUP_ID = '91877'; var SETUP_ID = '91877';
var LANGUAGE = 2; var LANGUAGE = 2;
// var PATIENT_OUT_SA = 0; // var PATIENT_OUT_SA = 0;

@ -189,7 +189,7 @@ class BaseAppClient {
// body['IdentificationNo'] = 1023854217; // body['IdentificationNo'] = 1023854217;
// body['MobileNo'] = "531940021"; //0560717232 // body['MobileNo'] = "531940021"; //0560717232
// body['PatientID'] = 1018977; //4609100 //2904826 // body['PatientID'] = 4773928; //4609100 //2904826
// body['TokenID'] = "@dm!n"; // body['TokenID'] = "@dm!n";
// Patient ID: 3027574 // Patient ID: 3027574

@ -220,7 +220,7 @@ class ServicesView extends StatelessWidget {
Permission.bluetoothScan, Permission.bluetoothScan,
Permission.activityRecognition, Permission.activityRecognition,
].request().whenComplete(() { ].request().whenComplete(() {
PenguinMethodChannel().launch("penguin", projectViewModel.isArabic ? "ar" : "en", projectViewModel.authenticatedUserObject.user.patientID.toString(), details: data); PenguinMethodChannel().launch("penguin", projectViewModel.isArabic ? "ar" : "en", projectViewModel.isLogin ? projectViewModel.authenticatedUserObject.user.patientID.toString() : "3628599", details: data);
}); });
} }
} }

@ -12,9 +12,13 @@ class PenguinMethodChannel {
try { try {
await _channel.invokeMethod('launchPenguin', { await _channel.invokeMethod('launchPenguin', {
"storyboardName": storyboardName, "storyboardName": storyboardName,
"baseURL": "https://prod.hmg.nav.penguinin.com", // "baseURL": "https://prod.hmg.nav.penguinin.com",
"dataURL": "https://prod.hmg.nav.penguinin.com", // "dataURL": "https://prod.hmg.nav.penguinin.com",
"positionURL": "https://prod.hmg.nav.penguinin.com", // "positionURL": "https://prod.hmg.nav.penguinin.com",
"baseURL": "https://eagleiq.hmg.com",
"dataURL": "https://eagleiq.hmg.com",
"positionURL": "https://eagleiq.hmg.com",
// "baseURL": "https://penguinuat.hmg.com", // "baseURL": "https://penguinuat.hmg.com",
// "dataURL": "https://penguinuat.hmg.com", // "dataURL": "https://penguinuat.hmg.com",
@ -36,6 +40,7 @@ class PenguinMethodChannel {
// "clinicID": "108", // 46 ,49, 133 // "clinicID": "108", // 46 ,49, 133
"patientID": details?.patientId ?? "", "patientID": details?.patientId ?? "",
"projectID": int.parse(details?.projectId ?? "-1"), "projectID": int.parse(details?.projectId ?? "-1"),
// "projectID": details?.projectId ?? "-1",
"loaderImage": image, "loaderImage": image,
}); });
} on PlatformException catch (e) { } on PlatformException catch (e) {

@ -1,8 +1,8 @@
name: hmg_patient_app name: hmg_patient_app
description: A new Flutter application. description: A new Flutter application.
#version: 4.6.030+1 #version: 4.6.033+1
version: 4.6.0984+40500984 version: 4.6.0988+40500988
environment: environment:
# sdk: ">=3.0.0 <3.13.0" # sdk: ">=3.0.0 <3.13.0"

Loading…
Cancel
Save