alqindiirsyam 2 лет назад
Родитель
Сommit
4c3f22360a
62 измененных файлов с 465 добавлено и 441 удалено
  1. BIN
      appbuilder-ios/DigiXLite/DigiXLite.xcworkspace/xcuserdata/akhmadalqindiirsyam.xcuserdatad/UserInterfaceState.xcuserstate
  2. 5 5
      appbuilder-ios/DigiXLite/DigiXLite/Source/Callback.swift
  3. 9 9
      appbuilder-ios/DigiXLite/DigiXLite/Source/Database.swift
  4. 2 2
      appbuilder-ios/DigiXLite/DigiXLite/Source/Download.swift
  5. 3 3
      appbuilder-ios/DigiXLite/DigiXLite/Source/Extension.swift
  6. 53 53
      appbuilder-ios/DigiXLite/DigiXLite/Source/IncomingThread.swift
  7. 7 7
      appbuilder-ios/DigiXLite/DigiXLite/Source/InquiryThread.swift
  8. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/Model/User.swift
  9. 24 24
      appbuilder-ios/DigiXLite/DigiXLite/Source/Network.swift
  10. 66 66
      appbuilder-ios/DigiXLite/DigiXLite/Source/Nexilis.swift
  11. 8 8
      appbuilder-ios/DigiXLite/DigiXLite/Source/OutgoingThread.swift
  12. 2 2
      appbuilder-ios/DigiXLite/DigiXLite/Source/TMessage.swift
  13. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/AudioViewController.swift
  14. 2 2
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/CallManager.swift
  15. 12 12
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/CallProviderDelegate.swift
  16. 3 3
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/QmeraAudioConference.swift
  17. 6 6
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/QmeraAudioViewController.swift
  18. 5 5
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/QmeraVideoViewController.swift
  19. 5 5
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/ScreenSharingViewController.swift
  20. 6 6
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/WhiteboardViewController.swift
  21. 3 3
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Chat/EditorGroup.swift
  22. 6 6
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Chat/EditorPersonal.swift
  23. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Chat/FormEditor.swift
  24. 9 9
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Chat/PreviewAttachmentImageVideo.swift
  25. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Contact/ContactCallViewController.swift
  26. 26 14
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/BackupRestoreView.swift
  27. 3 3
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/BroadcastMembersTableViewController.swift
  28. 19 19
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/BroadcastViewController.swift
  29. 6 6
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/ContactChatViewController.swift
  30. 2 2
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/GroupDetailViewController.swift
  31. 2 2
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/HistoryCCViewController.swift
  32. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/QRScannerView.swift
  33. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/ScannerViewController.swift
  34. 2 2
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/SettingTableViewController.swift
  35. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Streaming/CreateSeminarViewController.swift
  36. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Streaming/CreateViewController.swift
  37. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Streaming/QmeraCreateStreamingViewController.swift
  38. 1 1
      appbuilder-ios/DigiXLite/DigiXLite/Source/View/Streaming/StreamingViewController.swift
  39. 2 2
      appbuilder-ios/DigiXLite/DigiXLite/Source/Whiteboard.swift
  40. 3 3
      appbuilder-ios/DigiXLite/DigiXLite/Source/WhiteboardCanvas.swift
  41. 40 40
      appbuilder-ios/NexilisLite/NexilisLite.xcodeproj/project.pbxproj
  42. 2 2
      appbuilder-ios/NexilisLite/NexilisLite/Source/Callback.swift
  43. 7 7
      appbuilder-ios/NexilisLite/NexilisLite/Source/Database.swift
  44. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/Extension.swift
  45. 32 32
      appbuilder-ios/NexilisLite/NexilisLite/Source/IncomingThread.swift
  46. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/InquiryThread.swift
  47. 6 6
      appbuilder-ios/NexilisLite/NexilisLite/Source/Network.swift
  48. 20 20
      appbuilder-ios/NexilisLite/NexilisLite/Source/Nexilis.swift
  49. 2 2
      appbuilder-ios/NexilisLite/NexilisLite/Source/OutgoingThread.swift
  50. 2 2
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Call/QmeraAudioConference.swift
  51. 2 2
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Call/QmeraAudioViewController.swift
  52. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Call/QmeraVideoViewController.swift
  53. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Chat/EditorGroup.swift
  54. 3 3
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Chat/EditorPersonal.swift
  55. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Chat/FormEditor.swift
  56. 24 12
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/BackupRestoreView.swift
  57. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/BroadcastMembersTableViewController.swift
  58. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/ContactChatViewController.swift
  59. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/QRScannerView.swift
  60. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Streaming/CreateSeminarViewController.swift
  61. 1 1
      appbuilder-ios/NexilisLite/NexilisLite/Source/View/Streaming/QmeraCreateStreamingViewController.swift
  62. 4 4
      appbuilder-ios/NexilisLite/Podfile.lock

BIN
appbuilder-ios/DigiXLite/DigiXLite.xcworkspace/xcuserdata/akhmadalqindiirsyam.xcuserdatad/UserInterfaceState.xcuserstate


+ 5 - 5
appbuilder-ios/DigiXLite/DigiXLite/Source/Callback.swift

@@ -13,7 +13,7 @@ class Callback : CallBack {
     var sID: String = "Callback"
     
     func connectionStateChanged(sUserID: String!, sDeviceID: String!, bConState: Bool!, nConType: Int!, nConSubType: Int!, nCLMConStat: UInt8!) {
-        print(sUserID, "/", sDeviceID, "/", bConState, "/", nConType, "/", nConSubType, "/", nCLMConStat)
+        //print(sUserID, "/", sDeviceID, "/", bConState, "/", nConType, "/", nConSubType, "/", nCLMConStat)
         if let dispatch = Nexilis.dispatch, bConState {
             dispatch.leave()
         }
@@ -32,7 +32,7 @@ class Callback : CallBack {
     }
     
     func callStateChanged(nState: Int!, sMessage: String!) -> Int {
-        print(nState,"/",sMessage)
+        //print(nState,"/",sMessage)
         if nState == 21 || nState == 31 {
             if let delegate = Nexilis.shared.callDelegate {
                 delegate.onIncomingCall(state: nState, message: sMessage)
@@ -54,7 +54,7 @@ class Callback : CallBack {
     }
     
     func bcastStateChanged(nState: Int!, sMessage: String!) -> Int {
-        //print("LS CALLBACK ",nState,"/",sMessage)
+        //print(("LS CALLBACK ",nState,"/",sMessage)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onStartLS(state: nState, message: sMessage)
         }
@@ -71,7 +71,7 @@ class Callback : CallBack {
     }
     
     func sshareStateChanged(nState: Int!, sMessage: String!) -> Int {
-        //print("Screen sharing state: ",nState,"/",sMessage)
+        //print(("Screen sharing state: ",nState,"/",sMessage)
         switch nState {
             case 0:
                 if (sMessage.starts(with: "Initiating")){
@@ -109,7 +109,7 @@ class Callback : CallBack {
     }
     
     func asycnACKReceived(sPacketID: String!) throws {
-        //print("asycnACKReceived: \(sPacketID)")
+        //print(("asycnACKReceived: \(sPacketID)")
         DispatchQueue.global().async {
             Database.shared.database?.inTransaction({ (fmdb, rollback) in
                 OutgoingThread.default.delOutgoing(fmdb: fmdb, packageId: sPacketID)

+ 9 - 9
appbuilder-ios/DigiXLite/DigiXLite/Source/Database.swift

@@ -20,12 +20,12 @@ public class Database {
     func openDatabase() {
         database?.inDatabase({(fmdb) in
             fmdb.setKey("lumia")
-            //print("Open Done")
+            //print(("Open Done")
         })
         database?.inTransaction({(fmdb, rollback) in
             do {
                 try createDatabase(fmdb: fmdb)
-                //print("Create Done")
+                //print(("Create Done")
             } catch {
             }
         })
@@ -448,7 +448,7 @@ public class Database {
                 try fmdb.executeUpdate(sql, values: nil)
             }
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
     }
     
@@ -456,7 +456,7 @@ public class Database {
         do {
             try fmdb.executeUpdate(queries, values: nil)
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
     }
     
@@ -505,7 +505,7 @@ public class Database {
             }
             _result = try fmdb.executeQuery("select " + _fields + " from " + table + _whereClause, values: nil)
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
         return _result
     }
@@ -515,7 +515,7 @@ public class Database {
         do {
             _result = try fmdb.executeQuery(query, values: nil)
         } catch {
-            print(error)
+            //print(error)
         }
         return _result
     }
@@ -534,7 +534,7 @@ public class Database {
             try fmdb.executeUpdate("update " + table + " set " + fields, values: data)
             _result = 1
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
         return _result
     }
@@ -557,7 +557,7 @@ public class Database {
             try fmdb.executeUpdate("update " + table + " set " + fields + _whereClause, values: data)
             _result = 1
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
         return _result
     }
@@ -572,7 +572,7 @@ public class Database {
             try fmdb.executeUpdate("delete from " + table + _whereClause, values: nil)
             _result = 1
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
         return _result
     }

+ 2 - 2
appbuilder-ios/DigiXLite/DigiXLite/Source/Download.swift

@@ -56,12 +56,12 @@ public class Download {
         }
         .responseData { result in
             if let successResponse = result.value as? Data{
-                //print("Response success")
+                //print(("Response success")
                 onCompletion?(successResponse)
             }
             else {
                 let statusCode = result.response?.statusCode
-                //print("Response fail: \(statusCode)")
+                //print(("Response fail: \(statusCode)")
                 onError?()
             }
         }

+ 3 - 3
appbuilder-ios/DigiXLite/DigiXLite/Source/Extension.swift

@@ -950,7 +950,7 @@ extension Bundle {
 
         guard let resourceBundleURL = frameworkBundle.url(forResource: "DigiXLiteResources", withExtension: "bundle"),
               let resourceBundle = Bundle(url: resourceBundleURL) else {
-            //print("\(moduleName).bundle not found in \(frameworkBundle)")
+            //print(("\(moduleName).bundle not found in \(frameworkBundle)")
             return frameworkBundle
         }
 
@@ -1072,12 +1072,12 @@ extension UIImageView {
                     return
                 }
 
-                print(error)
+                //print(error)
                 return
             }
 
             guard let data = data, let downloadedImage = UIImage(data: data) else {
-                //print("unable to extract image")
+                //print(("unable to extract image")
                 return
             }
 

+ 53 - 53
appbuilder-ios/DigiXLite/DigiXLite/Source/IncomingThread.swift

@@ -48,7 +48,7 @@ class IncomingThread {
     }
     
     private func process(message: TMessage) {
-        //print("incoming process", message.toLogString())
+        //print(("incoming process", message.toLogString())
         if message.getCode() == CoreMessage_TMessageCode.LOGIN_FILE {
             loginFile(message: message)
         } else if message.getCode() == CoreMessage_TMessageCode.PUSH_MYSELF || message.getCode() == CoreMessage_TMessageCode.PUSH_MYSELF_ACK || message.getCode() == CoreMessage_TMessageCode.PULL_MYSELF {
@@ -172,7 +172,7 @@ class IncomingThread {
         } else if message.getCode() == CoreMessage_TMessageCode.GET_BATCH_GROUP_NO_MEMBERS {
             pushGroupNoMembers(message: message)
         } else {
-            //print("unprocessed code", message.getCode())
+            //print(("unprocessed code", message.getCode())
             ack(message: message)
         }
 //        case (CoreMessage_TMessageCode.FORM_PUSH_UPDATE):
@@ -211,7 +211,7 @@ class IncomingThread {
                         ack(message: message)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -290,7 +290,7 @@ class IncomingThread {
         if type == "wb" {
             switch (Int(status)) {
             case CoreMessage_TMessageCode.WB_INCOMING:
-                //print("WB_INCOMING")
+                //print(("WB_INCOMING")
                 DispatchQueue.main.async {
                     let controller = AppStoryBoard.Palio.instance.instantiateViewController(identifier: "wbVC") as! WhiteboardViewController
                     controller.modalPresentationStyle = .overFullScreen
@@ -303,7 +303,7 @@ class IncomingThread {
                     }
                 }
             default:
-                //print("default")
+                //print(("default")
                 var dataMessage: [AnyHashable : Any] = [:]
                 dataMessage["message"] = message
                 NotificationCenter.default.post(name: NSNotification.Name(rawValue: "wbSession"), object: nil, userInfo: dataMessage)
@@ -311,7 +311,7 @@ class IncomingThread {
         } else if type == "ss"{
             switch (Int(status)) {
             case CoreMessage_TMessageCode.SS_INCOMING:
-                //print("SS_INCOMING")
+                //print(("SS_INCOMING")
                 DispatchQueue.main.async {
                     let controller = ScreenSharingViewController()
                     controller.modalPresentationStyle = .overFullScreen
@@ -324,7 +324,7 @@ class IncomingThread {
                     }
                 }
             default:
-                //print("default")
+                //print(("default")
                 var dataMessage: [AnyHashable : Any] = [:]
                 dataMessage["message"] = message
                 NotificationCenter.default.post(name: NSNotification.Name(rawValue: "ssSession"), object: nil, userInfo: dataMessage)
@@ -465,11 +465,11 @@ class IncomingThread {
         if err_code == "00" {
             self.updateInquiry(messageId: message_id)
         } else {
-            //print("MASUK MINQ SEND CHAT")
+            //print(("MASUK MINQ SEND CHAT")
             Database.shared.database?.inTransaction({ (fmdb, rollback) in
                 if let cursor = Database.shared.getRecords(fmdb: fmdb, query: "select message from INQUIRY where id = '\(message_id)'"), cursor.next() {
                     if let message = cursor.string(forColumnIndex: 0) {
-                        //print("MASUK MINQ ADA MESSAGE")
+                        //print(("MASUK MINQ ADA MESSAGE")
                         OutgoingThread.default.addQueue(message: TMessage(data: message))
                         if message_scope != "3" {
                             DispatchQueue.main.async {
@@ -484,7 +484,7 @@ class IncomingThread {
     }
     
     private func updateInquiry(messageId: String) {
-        //print("UPDATE INQUIRY")
+        //print(("UPDATE INQUIRY")
         Database.shared.database?.inTransaction({ (fmdb, rollback) in
             _ = Database.shared.updateRecord(fmdb: fmdb, table: "INQUIRY", cvalues: [
                 "status" : "1"
@@ -555,7 +555,7 @@ class IncomingThread {
     }
     
     private func sendUpdateTyping(message: TMessage) -> Void {
-        //print("update typing \(message)")
+        //print(("update typing \(message)")
         if let delegate = Nexilis.shared.messageDelegate {
             delegate.onTyping(message: message)
         }
@@ -606,7 +606,7 @@ class IncomingThread {
         var data = Data(media)
         
         if !key_filename.isEmpty, data.count == 0, let download = Nexilis.getDownload(forKey: key_filename) {
-            //print("corrupted...", key_filename)
+            //print(("corrupted...", key_filename)
             if let delegate = download.delegate {
                 delegate.onDownloadProgress(fileName: key_filename, progress: -1)
             } else if let completion = download.onDownloadProgress {
@@ -635,7 +635,7 @@ class IncomingThread {
         do {
             let documentDir = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
             let url = documentDir.appendingPathComponent(key_filename)
-            //print("write file \(url.path)")
+            //print(("write file \(url.path)")
             try data.write(to: url, options: .atomic)
             if let download = Nexilis.getDownload(forKey: key_filename) {
                 if let delegate = download.delegate {
@@ -645,7 +645,7 @@ class IncomingThread {
                 }
             }
         } catch {
-            print(error)
+            //print(error)
             if let download = Nexilis.getDownload(forKey: key_filename) {
                 if let delegate = download.delegate {
                     delegate.onDownloadProgress(fileName: key_filename, progress: -1)
@@ -703,7 +703,7 @@ class IncomingThread {
                         ack(message: message)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -855,7 +855,7 @@ class IncomingThread {
                             ack(message: message)
                         } catch {
                             rollback.pointee = true
-                            print(error)
+                            //print(error)
                         }
                     })
                 }
@@ -894,7 +894,7 @@ class IncomingThread {
                         }
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -937,7 +937,7 @@ class IncomingThread {
                         ack(message: message)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -974,7 +974,7 @@ class IncomingThread {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1013,7 +1013,7 @@ class IncomingThread {
                         ack(message: message)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -1047,7 +1047,7 @@ class IncomingThread {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1056,7 +1056,7 @@ class IncomingThread {
     private func receiveMessage(message: TMessage) -> Void {
         let message_id = message.getBody(key: CoreMessage_TMessageKey.MESSAGE_ID)
         guard let _ = UserDefaults.standard.string(forKey: "status") else {
-            //print("App not ready!!! skip receive message \(message_id)")
+            //print(("App not ready!!! skip receive message \(message_id)")
             ack(message: message)
             return
         }
@@ -1068,14 +1068,14 @@ class IncomingThread {
             }
         })
         let media = message.getMedia()
-        //print("MEDIA \(media)");
+        //print(("MEDIA \(media)");
         let thumb_id = message.getBody(key: CoreMessage_TMessageKey.THUMB_ID)
         if media.count > 0 {
             do {
                 let data = Data(media)
                 let documentDir = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: true)
                 let url = documentDir.appendingPathComponent(thumb_id)
-                //print("write thumb \(url.path)")
+                //print(("write thumb \(url.path)")
                 try data.write(to: url, options: .atomic)
 //                let image = UIImage(data: data)
 //                let save = UserDefaults.standard.bool(forKey: "saveToGallery")
@@ -1083,7 +1083,7 @@ class IncomingThread {
 //                    UIImageWriteToSavedPhotosAlbum(image!, nil, nil, nil)
 //                }
             } catch {
-                print(error)
+                //print(error)
             }
         }
         if (!thumb_id.isEmpty) {
@@ -1091,21 +1091,21 @@ class IncomingThread {
                 print ("masuk download \(progress)")
                 if(progress == 100) {
                     Nexilis.saveMessage(message: message, withStatus: false)
-                    //print("save message incoming")
+                    //print(("save message incoming")
                 }
             }
             ack(message: message)
             return
         }
         Nexilis.saveMessage(message: message, withStatus: false)
-        //print("save message incoming")
+        //print(("save message incoming")
         ack(message: message)
     }
     
     private func receiveMessageStatus(message: TMessage) -> Void {
         let message_id = message.getBody(key: CoreMessage_TMessageKey.MESSAGE_ID)
         guard let _ = UserDefaults.standard.string(forKey: "status") else {
-            //print("App not ready!!! skip receive message \(message_id)")
+            //print(("App not ready!!! skip receive message \(message_id)")
             return
         }
         Nexilis.updateMessageStatus(message: message)
@@ -1217,7 +1217,7 @@ class IncomingThread {
                     ack(message: message)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1234,7 +1234,7 @@ class IncomingThread {
                     _ = Database.shared.deleteRecord(fmdb: fmdb, table: "MESSAGE_SUMMARY", _where: "l_pin='\(l_pin)'")
                     _ = Database.shared.deleteRecord(fmdb: fmdb, table: "POST", _where: "author_f_pin='\(l_pin)'")
                     cursor.close()
-                    //print("Buddy deleted: \(l_pin)")
+                    //print(("Buddy deleted: \(l_pin)")
                     if let delegate = Nexilis.shared.personInfoDelegate {
                         delegate.onUpdatePersonInfo(state: 99, message: "delete_buddy,\(l_pin)")
                     }
@@ -1378,7 +1378,7 @@ class IncomingThread {
                 }
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -1432,7 +1432,7 @@ class IncomingThread {
                     ack(message: message)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1469,7 +1469,7 @@ class IncomingThread {
                     ack(message: message)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1512,7 +1512,7 @@ class IncomingThread {
                     ack(message: message)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1565,7 +1565,7 @@ class IncomingThread {
     
     private func getLiveVideoList(message: TMessage) -> Void {
         let data  = message.getBody(key: CoreMessage_TMessageKey.DATA)
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onStartLS(state: 99, message: data)
         }
@@ -1573,7 +1573,7 @@ class IncomingThread {
     }
     private func getLSTitle(message: TMessage) -> Void {
         let title  = message.getBody(key: CoreMessage_TMessageKey.TITLE)
-        print(title)
+        //print(title)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 999, message: title)
         }
@@ -1595,7 +1595,7 @@ class IncomingThread {
         let last_loc_update = message.getBody(key: CoreMessage_TMessageKey.LAST_LOC_UPDATE)
         let user_type = message.getBody(key: CoreMessage_TMessageKey.USER_TYPE)
         if let delegate = Nexilis.shared.personInfoDelegate {
-            //print("INcoming \(connected)")
+            //print(("INcoming \(connected)")
             delegate.onUpdatePersonInfo(state: 00, message: connected)
         }
         Database.shared.database?.inTransaction({ (fmdb, rollback) in
@@ -1625,7 +1625,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = broadcaster+","+f_pin+","+thumb_id+","+name+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 98, message: data)
         }
@@ -1639,7 +1639,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = broadcaster+","+f_pin+","+thumb_id+","+name+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 97, message: data)
         }
@@ -1650,7 +1650,7 @@ class IncomingThread {
         let likes = message.getBody(key: CoreMessage_TMessageKey.LIKES,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = l_pin+","+likes+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 96, message: data)
         }
@@ -1664,7 +1664,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let messages = message.getBody(key: CoreMessage_TMessageKey.MESSAGE_TEXT,default_value: "")
         let data = l_pin+","+f_pin+","+thumb_id+","+name+","+messages
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 95, message: data)
         }
@@ -1675,7 +1675,7 @@ class IncomingThread {
         let likes = message.getBody(key: CoreMessage_TMessageKey.LIKES,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = l_pin+","+likes+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 94, message: data)
         }
@@ -1688,7 +1688,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = broadcaster+","+f_pin+","+thumb_id+","+name+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.seminarDelegate {
             delegate.onJoinSeminar(state: 98, message: data)
         }
@@ -1701,7 +1701,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = broadcaster+","+f_pin+","+thumb_id+","+name+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.seminarDelegate {
             delegate.onJoinSeminar(state: 97, message: data)
         }
@@ -1712,7 +1712,7 @@ class IncomingThread {
         let f_pin = message.getBody(key: CoreMessage_TMessageKey.F_PIN,default_value: "")
         let status = message.getBody(key: CoreMessage_TMessageKey.STATUS,default_value: "")
         let data = f_pin+","+l_pin+","+status
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.seminarDelegate {
             delegate.onJoinSeminar(state: 96, message: data)
         }
@@ -1726,7 +1726,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let messages = message.getBody(key: CoreMessage_TMessageKey.MESSAGE_TEXT,default_value: "")
         let data = l_pin+","+f_pin+","+thumb_id+","+name+","+messages
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.seminarDelegate {
             delegate.onJoinSeminar(state: 95, message: data)
         }
@@ -1736,10 +1736,10 @@ class IncomingThread {
         let f_pin = message.getBody(key: CoreMessage_TMessageKey.F_PIN,default_value: "")
         let l_pin = message.getBody(key: CoreMessage_TMessageKey.L_PIN,default_value: "")
         let data = f_pin
-        //print("data ss")
-        print(data)
-        print(l_pin)
-        print(state)
+        //print(("data ss")
+        //print(data)
+        //print(l_pin)
+        //print(state)
         if let delegate = Nexilis.shared.screenSharingDelegate {
             delegate.onJoinScreenSharing(state: state, message: data)
         }
@@ -1749,7 +1749,7 @@ class IncomingThread {
     private func sendMSISDN(message: TMessage) -> Void {
         let errcod = message.getBody(key: CoreMessage_TMessageKey.ERRCOD,default_value: "")
         let data = errcod
-        print(data)
+        //print(data)
         if (errcod == "00"){
             if let delegate = Nexilis.shared.loginDelegate {
                 delegate.onProcess(message: "Success", status: "1")
@@ -1773,7 +1773,7 @@ class IncomingThread {
                 let l_name = message.getBody(key: CoreMessage_TMessageKey.LAST_NAME, default_value: "")
                 let thumb_id = message.getBody(key: CoreMessage_TMessageKey.THUMB_ID, default_value: "")
                 let data = f_pin+"|"+f_name+"|"+l_name+"|"+thumb_id
-                print(data)
+                //print(data)
                 if let delegate = Nexilis.shared.loginDelegate {
                     delegate.onProcess(message: data, status: reg_status)
                 }
@@ -1856,7 +1856,7 @@ class IncomingThread {
                 ack(message: message)
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }

+ 7 - 7
appbuilder-ios/DigiXLite/DigiXLite/Source/InquiryThread.swift

@@ -46,7 +46,7 @@ class InquiryThread {
     }
     
     func addQueue(message: TMessage) {
-        //print("MASUK INQUIRY ADD")
+        //print(("MASUK INQUIRY ADD")
         addInquiry(message: message)
         queue.append(message)
         semaphore.signal()
@@ -64,7 +64,7 @@ class InquiryThread {
             if !messageId.isEmpty {
                 Database.shared.database?.inTransaction({ (fmdb, rollback) in
                     do {
-                        //print("SIMPAN MESSAGE TO INQUIRY TABLE")
+                        //print(("SIMPAN MESSAGE TO INQUIRY TABLE")
                         _ = try Database.shared.insertRecord(fmdb: fmdb, table: "INQUIRY", cvalues: [
                             "id" : messageId,
                             "status" : 0,
@@ -72,7 +72,7 @@ class InquiryThread {
                         ], replace: true)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -90,7 +90,7 @@ class InquiryThread {
     
     func getQueue() -> TMessage {
         while queue.isEmpty || queue.count == 0 {
-            //print("QUEUE INQUIRY.wait")
+            //print(("QUEUE INQUIRY.wait")
             semaphore.wait()
         }
         return queue.remove(at: 0)
@@ -104,7 +104,7 @@ class InquiryThread {
         dispatchQueue.async {
             while self.isRunning {
                 if self.isWait {
-                    //print("CONNECTION INQUIRY.wait")
+                    //print(("CONNECTION INQUIRY.wait")
                     self.connection.wait()
                 }
                 self.process(message: self.getQueue())
@@ -113,7 +113,7 @@ class InquiryThread {
     }
     
     private func process(message: TMessage) {
-        //print("inquiry process", message.toLogString())
+        //print(("inquiry process", message.toLogString())
         mobileInquiry(message: message)
     }
     
@@ -123,7 +123,7 @@ class InquiryThread {
     
     private func mobileInquiry(message: TMessage) {
         Nexilis.saveMessage(message: message)
-        //print("save message sendChat")
+        //print(("save message sendChat")
         _ = Nexilis.write(message: CoreMessage_TMessageBank.getMobileInquiry(message_id: message.getBody(key: CoreMessage_TMessageKey.MESSAGE_ID)))
     }
 }

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/Model/User.swift

@@ -218,7 +218,7 @@ public class User: Model {
         let listName = name.components(separatedBy: " ")
         let firstName = listName[0]
         var lastName = ""
-        //print("firstName: \(firstName) <> lastName: \(lastName)")
+        //print(("firstName: \(firstName) <> lastName: \(lastName)")
         if listName.count > 1 {
             for i in 1..<listName.count {
                 if lastName.isEmpty {

+ 24 - 24
appbuilder-ios/DigiXLite/DigiXLite/Source/Network.swift

@@ -31,10 +31,10 @@ public class Network {
                     let attrib = try FileManager.default.attributesOfItem(atPath: path)
                     let fileSize = attrib[.size] as! Int
                     let fileName = (path as NSString).lastPathComponent
-                    //print("file exists: \(path) -> \(fileSize)")
+                    //print(("file exists: \(path) -> \(fileSize)")
                     if (fileSize > self.CHUNK_SIZE) {
                         Nexilis.putUploadFile(forKey: fileName, uploader: self)
-                        //print("[bytes_processing] Size: " + String(fileSize))
+                        //print(("[bytes_processing] Size: " + String(fileSize))
                         var totalPart = fileSize / self.CHUNK_SIZE
                         if (fileSize % self.CHUNK_SIZE > 0) {
                             totalPart += 1
@@ -50,7 +50,7 @@ public class Network {
                                     break
                                 }
                                 self.uploadGroup.enter()
-                                //print("[bytes_processing] Sending bytes part #" + String(index + 1) + " of " + String(totalPart) + " -->  " + String(data.count))
+                                //print(("[bytes_processing] Sending bytes part #" + String(index + 1) + " of " + String(totalPart) + " -->  " + String(data.count))
                                 
                                 let message = CoreMessage_TMessageBank.getUploadFile(p_image_id: fileName, file_size: String(fileSize), part_of: String(index), part_size: String(totalPart), p_file: [UInt8] (data))
                                 
@@ -58,10 +58,10 @@ public class Network {
                                     completion(false, self.progress)
                                     break
                                 }
-                                //print("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " uploading...")
+                                //print(("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " uploading...")
                                 
                                 let wait = self.uploadGroup.wait(timeout: .now() + 30)
-                                //print("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " wait!", wait)
+                                //print(("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " wait!", wait)
                                 if wait == DispatchTimeoutResult.timedOut {
                                     completion(false, self.progress)
                                     Nexilis.removeUploadFile(forKey: fileName)
@@ -71,14 +71,14 @@ public class Network {
                                 self.progress = Double(index + 1) / Double(totalPart) * 100
                                 completion(true, self.progress)
                                 
-                                //print("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " uploaded!")
+                                //print(("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " uploaded!")
                                 data = outputFileHandle.readData(ofLength: self.CHUNK_SIZE)
                                 index = index + 1
                             }
                             outputFileHandle.closeFile()
                             _ = Nexilis.removeUploadFile(forKey: fileName)
                         } catch {
-                            print(error.localizedDescription)
+                            //print(error.localizedDescription)
                         }
                     }
                     else {
@@ -90,15 +90,15 @@ public class Network {
                             completion(false, self.progress)
                             return
                         }
-                        //print("[bytes_processing] File uploaded!")
+                        //print(("[bytes_processing] File uploaded!")
                         completion(response.count > 1, 100)
                     }
                 } else {
-                    //print("file not exists \(name)")
+                    //print(("file not exists \(name)")
                     completion(false, 0)
                 }
             } catch {
-                print(error.localizedDescription)
+                //print(error.localizedDescription)
             }
         }
     }
@@ -111,10 +111,10 @@ public class Network {
                     let attrib = try FileManager.default.attributesOfItem(atPath: path)
                     let fileSize = attrib[.size] as! Int
                     let fileName = (path as NSString).lastPathComponent
-                    //print("file exists: \(path) -> \(fileSize)")
+                    //print(("file exists: \(path) -> \(fileSize)")
                     if (fileSize > self.CHUNK_SIZE) {
                         Nexilis.putUploadFile(forKey: fileName, uploader: self)
-                        //print("[bytes_processing] Size: " + String(fileSize))
+                        //print(("[bytes_processing] Size: " + String(fileSize))
                         var totalPart = fileSize / self.CHUNK_SIZE
                         if (fileSize % self.CHUNK_SIZE > 0) {
                             totalPart += 1
@@ -130,7 +130,7 @@ public class Network {
                                     break
                                 }
                                 self.uploadGroup.enter()
-                                //print("[bytes_processing] Sending bytes part #" + String(index + 1) + " of " + String(totalPart) + " -->  " + String(data.count))
+                                //print(("[bytes_processing] Sending bytes part #" + String(index + 1) + " of " + String(totalPart) + " -->  " + String(data.count))
                                 
                                 let message = CoreMessage_TMessageBank.getUploadFile(p_image_id: fileName, file_size: String(fileSize), part_of: String(index), part_size: String(totalPart), p_file: [UInt8] (data))
                                 
@@ -138,10 +138,10 @@ public class Network {
                                     completion(false, self.progress)
                                     break
                                 }
-                                //print("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " uploading...")
+                                //print(("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " uploading...")
                                 
                                 let wait = self.uploadGroup.wait(timeout: .now() + 30)
-                                //print("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " wait!", wait)
+                                //print(("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " wait!", wait)
                                 if wait == DispatchTimeoutResult.timedOut {
                                     completion(false, self.progress)
                                     Nexilis.removeUploadFile(forKey: fileName)
@@ -151,14 +151,14 @@ public class Network {
                                 self.progress = Double(index + 1) / Double(totalPart) * 100
                                 completion(true, self.progress)
                                 
-                                //print("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " uploaded!")
+                                //print(("[bytes_processing] part #" + String(index + 1) + " of " + String(totalPart) + " uploaded!")
                                 data = outputFileHandle.readData(ofLength: self.CHUNK_SIZE)
                                 index = index + 1
                             }
                             outputFileHandle.closeFile()
                             _ = Nexilis.removeUploadFile(forKey: fileName)
                         } catch {
-                            print(error.localizedDescription)
+                            //print(error.localizedDescription)
                         }
                     }
                     else {
@@ -170,15 +170,15 @@ public class Network {
                             completion(false, self.progress)
                             return
                         }
-                        //print("[bytes_processing] File uploaded!")
+                        //print(("[bytes_processing] File uploaded!")
                         completion(response.count > 1, 100)
                     }
                 } else {
-                    //print("file not exists \(fileUrl)")
+                    //print(("file not exists \(fileUrl)")
                     completion(false, 0)
                 }
             } catch {
-                print(error.localizedDescription)
+                //print(error.localizedDescription)
             }
         }
     }
@@ -202,23 +202,23 @@ public class Network {
         let uploadRequest = AF.upload(multipartFormData: { (multipartFormData: MultipartFormData) in
             for (key, value) in parameters {
                 multipartFormData.append("\(value)".data(using: String.Encoding.utf8)!, withName: key as String)
-                print(multipartFormData)
+                //print(multipartFormData)
             }
             
             for i in 0..<filesIn.count {
                 multipartFormData.append(filesIn[i], withName: "file\(i+1)")
-                print(multipartFormData)
+                //print(multipartFormData)
             }
             
         }, to: endUrl)
         .responseJSON { result in
             if let successResponse = result.value as? [String:Any] {
-                //print("Response success")
+                //print(("Response success")
                 onCompletion?(successResponse)
             }
             else {
                 let statusCode = result.response?.statusCode
-                //print("Response fail: \(statusCode)")
+                //print(("Response fail: \(statusCode)")
                 onError?()
             }
         }

+ 66 - 66
appbuilder-ios/DigiXLite/DigiXLite/Source/Nexilis.swift

@@ -55,7 +55,7 @@ public class Nexilis: NSObject {
     public static var loadingAlert = UIAlertController()
     
     private func createDelegate() {
-        //print("createDelegate...")
+        //print(("createDelegate...")
         callDelegate = self
         messageDelegate = self
         groupDelegate = self
@@ -98,7 +98,7 @@ public class Nexilis: NSObject {
             }
             Nexilis.ADDRESS = ip
             Nexilis.PORT = port
-            print(API.sGetVersion())
+            //print(API.sGetVersion())
             var id = ""
             if let device_id = UserDefaults.standard.string(forKey: "device_id") {
                 try API.initConnection(bSwitchIP: false, sAPIK: apiKey, aAppMain: nil, cbiI: Callback(), sTCPAddr: Nexilis.ADDRESS, nTCPPort: Nexilis.PORT, sUserID: device_id, sStartWH: "09:00")
@@ -203,10 +203,10 @@ public class Nexilis: NSObject {
             if UIFont.systemFont(ofSize: 12).familyName == ".AppleSystemUIFont" {
                 UIFont.libOverrideInitialize()
             }
-            //print("MANIA \(UIFont.systemFont(ofSize: 12)) <> \(UIFont.italicSystemFont(ofSize: 12)) <> \(UIFont.boldSystemFont(ofSize: 12))")
+            //print(("MANIA \(UIFont.systemFont(ofSize: 12)) <> \(UIFont.italicSystemFont(ofSize: 12)) <> \(UIFont.boldSystemFont(ofSize: 12))")
         }
         catch {
-            print(error)
+            //print(error)
             delegate.onFailed(error: "99:Something went wrong")
         }
     }
@@ -225,7 +225,7 @@ public class Nexilis: NSObject {
         DispatchQueue.global().asyncAfter(deadline: .now(), execute: {
             if let response = Nexilis.writeSync(message: CoreMessage_TMessageBank.pullGroupNoMember(), timeout: 30 * 1000), response.isOk() {
                 let data = response.getBody(key: CoreMessage_TMessageKey.DATA)
-                //print("KUACAU \(data)")
+                //print(("KUACAU \(data)")
                 if !data.isEmpty {
                     if let jsonArray = try! JSONSerialization.jsonObject(with: data.data(using: String.Encoding.utf8)!, options: JSONSerialization.ReadingOptions()) as? [AnyObject] {
                         Database.shared.database?.inTransaction({ (fmdb, rollback) in
@@ -256,7 +256,7 @@ public class Nexilis: NSObject {
                                 }
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                     }
@@ -293,7 +293,7 @@ public class Nexilis: NSObject {
                                 }
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                     }
@@ -326,7 +326,7 @@ public class Nexilis: NSObject {
                     ], replace: true)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
             if officer == idMe {
@@ -362,7 +362,7 @@ public class Nexilis: NSObject {
     
     public static func changeUser(f_pin: String){
         do {
-            //print("change user to fpin")
+            //print(("change user to fpin")
             Nexilis.dispatch = DispatchGroup()
             Nexilis.dispatch?.enter()
             
@@ -371,10 +371,10 @@ public class Nexilis: NSObject {
             // wait until connection true
             Nexilis.dispatch?.wait()
             Nexilis.dispatch = nil
-            //print("success change user to fpin")
+            //print(("success change user to fpin")
 //            _ = Nexilis.write(message: CoreMessage_TMessageBank.getChangeConnectionID(p_pin: f_pin))
         } catch{
-            print(error)
+            //print(error)
         }
     }
     
@@ -454,7 +454,7 @@ public class Nexilis: NSObject {
         }
         task.resume()
         _ = semaphore.wait(timeout: .distantFuture)
-        //print("[App] getAddress:", result)
+        //print(("[App] getAddress:", result)
         return result
     }
     
@@ -467,14 +467,14 @@ public class Nexilis: NSObject {
     
     public static func writeSync(message: TMessage, timeout: Int = 15 * 1000) -> TMessage? {
         do {
-            //print(">> SENDING MESSAGE >> ", message.toLogString())
+            //print((">> SENDING MESSAGE >> ", message.toLogString())
             if let data = try API.sGetResponse(sRequest: message.pack(), lTimeout: timeout, bKeepTOResp: true) {
                 let response = TMessage(data: data)
-                //print("<< RESPONSE MESSAGE << ", response.toLogString())
+                //print(("<< RESPONSE MESSAGE << ", response.toLogString())
                 return response
             }
         } catch {
-            print(error)
+            //print(error)
         }
         return nil
     }
@@ -484,20 +484,20 @@ public class Nexilis: NSObject {
             if API.nGetCLXConnState() == 0 {
                 return nil
             }
-            //print(">> SENDING MESSAGE >> ", message.toLogString())
+            //print((">> SENDING MESSAGE >> ", message.toLogString())
             if message.getMedia().count == 0 {
                 if let data = try API.sSend(sData: message.pack(), nPriority: 1, lTimeout: timeout) {
-                    //print("<< RESPONSE MESSAGE << ", data)
+                    //print(("<< RESPONSE MESSAGE << ", data)
                     return data
                 }
             }
             // media
             if let data = try API.sSend(abData: message.toBytes(), nPriority: 2, lTimeout: timeout) {
-                //print("<< RESPONSE MESSAGE << ", data)
+                //print(("<< RESPONSE MESSAGE << ", data)
                 return data
             }
         } catch {
-            print(error)
+            //print(error)
         }
         return nil
     }
@@ -507,13 +507,13 @@ public class Nexilis: NSObject {
             if !API.bInetConnAvailable() {
                 return nil
             }
-            //print(">> SENDING MESSAGE >> ", data)
+            //print((">> SENDING MESSAGE >> ", data)
             if let data = try API.sSend(sData: data, nPriority: 1, lTimeout: timeout) {
-                //print("<< RESPONSE MESSAGE << ", data)
+                //print(("<< RESPONSE MESSAGE << ", data)
                 return data
             }
         } catch {
-            print(error)
+            //print(error)
         }
         return nil
     }
@@ -524,10 +524,10 @@ public class Nexilis: NSObject {
             if !API.bInetConnAvailable() {
                 return nil
             }
-            //print(">> RESPONSE >> " + packetId + " " + message.toLogString());
+            //print((">> RESPONSE >> " + packetId + " " + message.toLogString());
             result = try API.sSendResponse(sRequestID: packetId, sResponse: message.pack(), lTimeout: timeout)
         } catch {
-            print(error)
+            //print(error)
         }
         return result
     }
@@ -538,10 +538,10 @@ public class Nexilis: NSObject {
             if !API.bInetConnAvailable() {
                 return nil
             }
-            //print(">> RESPONSE >> " + packetId + " " + message);
+            //print((">> RESPONSE >> " + packetId + " " + message);
             result = try API.sSendResponse(sRequestID: packetId, sResponse: message, lTimeout: timeout)
         } catch {
-            print(error)
+            //print(error)
         }
         return result
     }
@@ -590,12 +590,12 @@ public class Nexilis: NSObject {
                 try AVAudioSession.sharedInstance().setCategory(.playAndRecord)
             }
         }catch{
-            print(error)
+            //print(error)
         }
     }
 
     public static func buttonClicked(index: Int, id: String = "") {
-        //print("BTNCLICK \(index) \(id)")
+        //print(("BTNCLICK \(index) \(id)")
         if index == 2 {
             Nexilis.openUrl(url: id)
         } else if index == 3 {
@@ -657,7 +657,7 @@ public class Nexilis: NSObject {
     }
     
     public static func openApp(id: String) {
-        //print("openApp itms-apps://apple.com/app/\(id)")
+        //print(("openApp itms-apps://apple.com/app/\(id)")
         let isChangeProfile = Utils.getSetProfile()
         if !isChangeProfile {
             let alert = UIAlertController(title: "Change Profile".localized(), message: "You must change your name to use this feature".localized(), preferredStyle: .alert)
@@ -776,7 +776,7 @@ public class Nexilis: NSObject {
         if data is String {
             let d = data as! String
             guard message.unpack(data: d) else {
-                //print("UNKNOWN DATA STRING...", data)
+                //print(("UNKNOWN DATA STRING...", data)
                 if(data.hasPrefix("WB")){
                     let dataWB = data.components(separatedBy: "/")
                     if(dataWB[1] == "1"){
@@ -812,17 +812,17 @@ public class Nexilis: NSObject {
         } else if data is [UInt8] {
             let d = data as! [UInt8]
             guard message.unpack(bytes_data: d) else {
-                //print("UNKNOWN DATA BYTES...", data)
+                //print(("UNKNOWN DATA BYTES...", data)
                 return
             }
         }
         message.mBodies[CoreMessage_TMessageKey.PACKET_ID] = packetId
         if let _ = waitQueue[message.getStatus()] {
-            //print("MESSAGE INCOMING DATA \(message.toLogString())")
+            //print(("MESSAGE INCOMING DATA \(message.toLogString())")
             if message.mBodies.keys.contains(CoreMessage_TMessageKey.ERRCOD) {
                 if onDispatchGroupLeave != message.getStatus() {
                     onDispatchGroupLeave = message.getStatus()
-                    //print("LEAVE GROUP INCOMING DATA")
+                    //print(("LEAVE GROUP INCOMING DATA")
                     waitQueue[message.getStatus()] = message
                     groupWait.leave()
                     return
@@ -847,7 +847,7 @@ public class Nexilis: NSObject {
         Database.shared.database?.inTransaction({ (fmdb, rollback) in
             if let cursor = Database.shared.getRecords(fmdb: fmdb, query: "select message_id from MESSAGE where message_id = '\(message_id)'") {
                 if cursor.next() {
-                    //print("message exist")
+                    //print(("message exist")
                     return
                 }
                 cursor.close()
@@ -860,7 +860,7 @@ public class Nexilis: NSObject {
             let is_call_center = message.getBody(key: CoreMessage_TMessageKey.IS_CALL_CENTER, default_value: "0")
             let call_center_id = message.getBody(key: CoreMessage_TMessageKey.CALL_CENTER_ID, default_value: "")
             let opposite_pin = message.getBody(key: CoreMessage_TMessageKey.OPPOSITE_PIN, default_value: "")
-            //print("prepare save db")
+            //print(("prepare save db")
             do {
                 _ = try Database.shared.insertRecord(fmdb: fmdb, table: "MESSAGE", cvalues: [
                     "message_id" : message_id,
@@ -894,7 +894,7 @@ public class Nexilis: NSObject {
                 ], replace: true)
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
             
             if withStatus {
@@ -919,7 +919,7 @@ public class Nexilis: NSObject {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             } else {
                 DispatchQueue.main.async {
@@ -942,11 +942,11 @@ public class Nexilis: NSObject {
                     counter = Int(cursor.int(forColumnIndex: 0))
                     counter! += 1
                     cursor.close()
-                    //print("select db message summary")
+                    //print(("select db message summary")
                 }
                 if counter == nil {
                     counter = 1
-                    //print("set counter message summary")
+                    //print(("set counter message summary")
                 }
             }
             if counter == nil {
@@ -969,10 +969,10 @@ public class Nexilis: NSObject {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             }
-            //print("insert db message summary \(message_id)")
+            //print(("insert db message summary \(message_id)")
         })
         
     }
@@ -1022,7 +1022,7 @@ public class Nexilis: NSObject {
                 ], replace: true)
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
         let pin = "-999"
@@ -1032,12 +1032,12 @@ public class Nexilis: NSObject {
                 counter = Int(cursor.int(forColumnIndex: 0))
                 counter! += 1
                 cursor.close()
-                //print("select db message summary")
+                //print(("select db message summary")
             }
         })
         if counter == nil {
             counter = 1
-            //print("set counter message summary")
+            //print(("set counter message summary")
         }
         Database.shared.database?.inTransaction({ (fmdb, rollback) in
             do {
@@ -1048,10 +1048,10 @@ public class Nexilis: NSObject {
                 ], replace: true)
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
-        //print("insert db message summary \(message_id)")
+        //print(("insert db message summary \(message_id)")
     }
     
     static func updateMessageStatus(message: TMessage) -> Void {
@@ -1157,7 +1157,7 @@ public class Nexilis: NSObject {
                     completion(false)
                 }
             } catch {
-                print(error)
+                //print(error)
             }
         }
     }
@@ -1188,7 +1188,7 @@ public class Nexilis: NSObject {
                                 }
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                     }
@@ -1216,7 +1216,7 @@ public class Nexilis: NSObject {
 //        ret = true
 //    } catch {
 //        rollback.pointee = true
-//        print(error)
+//        //print(error)
 //    }
     
     private static var uploadQueue = DispatchQueue(label: "UPLOAD_DICT", attributes: .concurrent)
@@ -1274,13 +1274,13 @@ public class Nexilis: NSObject {
                 fileHandle.write(data)
                 fileHandle.closeFile()
             } else {
-                //print("Can't open file to write")
+                //print(("Can't open file to write")
             }
         } else {
             do {
                 try data.write(to: fileURL, options: .atomic)
             } catch {
-                //print("Unable to write in new file")
+                //print(("Unable to write in new file")
             }
         }
     }
@@ -1296,13 +1296,13 @@ public class Nexilis: NSObject {
                 fileHandle.write(data)
                 fileHandle.closeFile()
             } else {
-                //print("Can't open file to write")
+                //print(("Can't open file to write")
             }
         } else {
             do {
                 try data.write(to: fileURL, options: .atomic)
             } catch {
-                //print("Unable to write in new file")
+                //print(("Unable to write in new file")
             }
         }
     }
@@ -1318,13 +1318,13 @@ public class Nexilis: NSObject {
                 fileHandle.write(data)
                 fileHandle.closeFile()
             } else {
-                //print("Can't open file to write")
+                //print(("Can't open file to write")
             }
         } else {
             do {
                 try data.write(to: fileURL, options: .atomic)
             } catch {
-                //print("Unable to write in new file")
+                //print(("Unable to write in new file")
             }
         }
     }
@@ -1371,7 +1371,7 @@ public class Nexilis: NSObject {
             if(!openBroadcast && !broadcastList.isEmpty){
                 openBroadcast = true
                 let m = broadcastList.removeFirst()
-                //print("broadcast show: \(m)")
+                //print(("broadcast show: \(m)")
                 DispatchQueue.main.async {
                     Nexilis.shared.showBroadcastMessage(m: m)
                 }
@@ -1493,22 +1493,22 @@ extension UIFont {
     class func jbs_registerFont(withFilenameString filenameString: String) {
 
         guard let pathForResourceString = Bundle.resourceBundle(for: Nexilis.self).path(forResource: filenameString, ofType: "ttf") else {
-            //print("UIFont+:  Failed to register font - path for resource not found.")
+            //print(("UIFont+:  Failed to register font - path for resource not found.")
             return
         }
 
         guard let fontData = NSData(contentsOfFile: pathForResourceString) else {
-            //print("UIFont+:  Failed to register font - font data could not be loaded.")
+            //print(("UIFont+:  Failed to register font - font data could not be loaded.")
             return
         }
 
         guard let dataProvider = CGDataProvider(data: fontData) else {
-            //print("UIFont+:  Failed to register font - data provider could not be loaded.")
+            //print(("UIFont+:  Failed to register font - data provider could not be loaded.")
             return
         }
 
         guard let font = CGFont(dataProvider) else {
-            //print("UIFont+:  Failed to register font - font could not be loaded.")
+            //print(("UIFont+:  Failed to register font - font could not be loaded.")
             return
         }
 
@@ -1719,14 +1719,14 @@ extension Nexilis: CallDelegate {
         let r = message.split(separator: ",")
         if state == 23 {
             if let call = callManager.call(with: String(r[0])) {
-                //print("onStatusCall:connectingCall")
+                //print(("onStatusCall:connectingCall")
                 DispatchQueue.main.async {
                     call.connectingCall()
                 }
             }
         } else if state == 22 {
 //            if let call = callManager.call(with: String(r[1])) {
-//                //print("onStatusCall:answerCall")
+//                //print(("onStatusCall:answerCall")
 //                DispatchQueue.main.async {
 //                    call.answerCall()
 //                }
@@ -3300,9 +3300,9 @@ extension Nexilis: MessageDelegate {
     }
     
 //    public static func faceDetect(fd: FaceDetector?,image: UIImage, completion: ((Bool) -> ())?){
-//        //print("enter vision")
+//        //print(("enter vision")
 //        let visionImage = VisionImage(image: image)
-//        //print("exit vision")
+//        //print(("exit vision")
 //        var retval = false
 //        visionImage.orientation = image.imageOrientation
 //        var fd1 : FaceDetector?
@@ -3316,12 +3316,12 @@ extension Nexilis: MessageDelegate {
 //        // [START detect_faces]
 //        fd1?.process(visionImage) {faces, error in
 //            guard error == nil, let faces = faces, !faces.isEmpty else {
-//              //print("faces empty")
+//              //print(("faces empty")
 //                completion?(false)
 //                return
 //            }
 //            if(faces.count > 0){
-//                //print("face count: \(faces.count)")
+//                //print(("face count: \(faces.count)")
 //                retval = true
 //            }
 //            completion?(retval)

+ 8 - 8
appbuilder-ios/DigiXLite/DigiXLite/Source/OutgoingThread.swift

@@ -60,7 +60,7 @@ class OutgoingThread {
                         ], replace: true)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -86,7 +86,7 @@ class OutgoingThread {
     
     func getQueue() -> TMessage {
         while queue.isEmpty || queue.count == 0 {
-            //print("QUEUE.wait")
+            //print(("QUEUE.wait")
             semaphore.wait()
         }
         return queue.remove(at: 0)
@@ -100,7 +100,7 @@ class OutgoingThread {
         dispatchQueue.async {
             while self.isRunning {
                 if self.isWait {
-                    //print("CONNECTION.wait")
+                    //print(("CONNECTION.wait")
                     self.connection.wait()
                 }
                 self.process(message: self.getQueue())
@@ -109,7 +109,7 @@ class OutgoingThread {
     }
     
     private func process(message: TMessage) {
-        //print("outgoing process", message.toLogString())
+        //print(("outgoing process", message.toLogString())
         if message.getCode() == CoreMessage_TMessageCode.SEND_CHAT {
             sendChat(message: message)
         } else if message.getCode() == CoreMessage_TMessageCode.DELETE_CTEXT {
@@ -155,7 +155,7 @@ class OutgoingThread {
                                 }
                                 if progress == 100 {
                                     if let response = Nexilis.writeSync(message: message) {
-                                        //print("sendChat", response.toLogString())
+                                        //print(("sendChat", response.toLogString())
                                         let messageId = response.getBody(key: CoreMessage_TMessageKey.MESSAGE_ID)
                                         Database.shared.database?.inTransaction({ (fmdb, rollback) in
                                             _ = Database.shared.updateRecord(fmdb: fmdb, table: "MESSAGE", cvalues: [
@@ -181,7 +181,7 @@ class OutgoingThread {
                         }
                         if progress == 100 {
                             if let response = Nexilis.writeSync(message: message) {
-                                //print("sendChat", response.toLogString())
+                                //print(("sendChat", response.toLogString())
                                 let messageId = response.getBody(key: CoreMessage_TMessageKey.MESSAGE_ID)
                                 Database.shared.database?.inTransaction({ (fmdb, rollback) in
                                     _ = Database.shared.updateRecord(fmdb: fmdb, table: "MESSAGE", cvalues: [
@@ -200,7 +200,7 @@ class OutgoingThread {
             }
         } else {
             if let response = Nexilis.writeSync(message: message) {
-                //print("sendChat", response.toLogString())
+                //print(("sendChat", response.toLogString())
                 let messageId = response.getBody(key: CoreMessage_TMessageKey.MESSAGE_ID)
                 Database.shared.database?.inTransaction({ (fmdb, rollback) in
                     _ = Database.shared.updateRecord(fmdb: fmdb, table: "MESSAGE", cvalues: [
@@ -267,7 +267,7 @@ class OutgoingThread {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
                 self.delOutgoing(fmdb: fmdb, messageId: messageId)
             }

+ 2 - 2
appbuilder-ios/DigiXLite/DigiXLite/Source/TMessage.swift

@@ -166,7 +166,7 @@ public class TMessage {
     public func toBytes() -> [UInt8] {
         let data:String = pack()
         var result: [UInt8] = Array(data.utf8)
-        //print("[bytes_processing] build bytes data:" + String(result.count) + ", media:" + String(getMedia().count))
+        //print(("[bytes_processing] build bytes data:" + String(result.count) + ", media:" + String(getMedia().count))
         if (!getMedia().isEmpty) {
             for index in 0...getMedia().count - 1 {
                 result.append(getMedia()[index])
@@ -236,7 +236,7 @@ public class TMessage {
             result   = true
         }
         else {
-            //print("[bytes_processing] Invalid header length: " + String(headers.count))
+            //print(("[bytes_processing] Invalid header length: " + String(headers.count))
         }
         return result
     }

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/AudioViewController.swift

@@ -102,7 +102,7 @@ class AudioViewController: UIViewController {
     }
     
     @objc func didEnd(sender: AnyObject?) {
-        //print("didEnd:\(pin)")
+        //print(("didEnd:\(pin)")
         if let pin = self.pin, let call = Nexilis.shared.callManager.call(with: pin) {
             Nexilis.shared.callManager.end(call: call)
             if isOutgoing {

+ 2 - 2
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/CallManager.swift

@@ -54,9 +54,9 @@ final class CallManager: NSObject, ObservableObject {
     private func requestTransaction(_ transaction: CXTransaction) {
         callController.request(transaction) { error in
             if let error = error {
-                //print("Error requesting transaction:", error.localizedDescription)
+                //print(("Error requesting transaction:", error.localizedDescription)
             } else {
-                //print("Requested transaction successfully")
+                //print(("Requested transaction successfully")
             }
         }
     }

+ 12 - 12
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/CallProviderDelegate.swift

@@ -61,7 +61,7 @@ class CallProviderDelegate: NSObject {
 extension CallProviderDelegate: CXProviderDelegate {
     
     func providerDidReset(_ provider: CXProvider) {
-        //print("providerDidReset...")
+        //print(("providerDidReset...")
         for call in callManager.calls {
             call.endCall()
         }
@@ -69,7 +69,7 @@ extension CallProviderDelegate: CXProviderDelegate {
     }
     
     func provider(_ provider: CXProvider, perform action: CXStartCallAction) {
-        //print("CXStartCallAction...\(action.callUUID)")
+        //print(("CXStartCallAction...\(action.callUUID)")
         let call = Call(uuid: action.callUUID, isOutgoing: true)
         call.handle = action.handle.value
         call.hasStartedConnectingDidChange = { [weak self] in
@@ -82,7 +82,7 @@ extension CallProviderDelegate: CXProviderDelegate {
             self.callManager.setOnHoldStatus(for: self.callManager.calls.last!, to: true)
         }
         action.fulfill()
-        //print("JUMLAH START CALL \(self.callManager.calls.count)")
+        //print(("JUMLAH START CALL \(self.callManager.calls.count)")
         self.callManager.addCall(call)
         if self.callManager.calls.count > 1 {
             Nexilis.shared.callManager.startGroupCall(uuid1: call.uuid)
@@ -91,7 +91,7 @@ extension CallProviderDelegate: CXProviderDelegate {
     }
     
     func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) {
-        //print("CXAnswerCallAction...\(action.callUUID)")
+        //print(("CXAnswerCallAction...\(action.callUUID)")
         guard let call = callManager.callWithUUID(uuid: action.callUUID) else {
             action.fail()
             return
@@ -127,7 +127,7 @@ extension CallProviderDelegate: CXProviderDelegate {
     }
     
     func provider(_ provider: CXProvider, perform action: CXEndCallAction) {
-        //print("CXEndCallAction...\(action.callUUID)")
+        //print(("CXEndCallAction...\(action.callUUID)")
         guard let call = callManager.callWithUUID(uuid: action.callUUID) else {
             action.fail()
             return
@@ -135,9 +135,9 @@ extension CallProviderDelegate: CXProviderDelegate {
         call.endCall()
         action.fulfill()
         self.callManager.removeCall(call)
-        //print("JUMLAH CALL \(self.callManager.calls.count)")
+        //print(("JUMLAH CALL \(self.callManager.calls.count)")
         if self.callManager.calls.count == 0, !call.isReceiveEnd {
-            //print("MASUK TERMINATE CALL DELEGATE")
+            //print(("MASUK TERMINATE CALL DELEGATE")
             API.terminateCall(sParty: nil)
             DispatchQueue.global().async {
                 if let pin = call.handle {
@@ -148,7 +148,7 @@ extension CallProviderDelegate: CXProviderDelegate {
     }
     
     func provider(_ provider: CXProvider, perform action: CXSetHeldCallAction) {
-        //print("CXSetHeldCallAction...\(action.callUUID)")
+        //print(("CXSetHeldCallAction...\(action.callUUID)")
         guard let call = callManager.callWithUUID(uuid: action.callUUID) else {
             action.fail()
             return
@@ -163,11 +163,11 @@ extension CallProviderDelegate: CXProviderDelegate {
     }
     
     func provider(_ provider: CXProvider, timedOutPerforming action: CXAction) {
-        //print("Timed out", #function)
+        //print(("Timed out", #function)
     }
     
     func provider(_ provider: CXProvider, didActivate audioSession: AVAudioSession) {
-        //print("Received", #function)
+        //print(("Received", #function)
         
         /*
          Start call audio media, now that the audio session is activated,
@@ -183,13 +183,13 @@ extension CallProviderDelegate: CXProviderDelegate {
     }
     
     func provider(_ provider: CXProvider, perform action: CXSetGroupCallAction) {
-        //print("CXGroupCallAction...\(action.callUUID)")
+        //print(("CXGroupCallAction...\(action.callUUID)")
         // perform merge call here where you merge ports of two call audio i/o
         action.fulfill()
     }
     
     func provider(_ provider: CXProvider, didDeactivate audioSession: AVAudioSession) {
-        //print("Received", #function)
+        //print(("Received", #function)
         /*
          Restart any non-call related audio now that the app's audio session is deactivated,
          after having its priority restored to normal.

+ 3 - 3
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/QmeraAudioConference.swift

@@ -334,7 +334,7 @@ class QmeraAudioConference: UIViewController {
                             ], replace: true)
                         } catch {
                             rollback.pointee = true
-                            print(error)
+                            //print(error)
                         }
                     })
                     UserDefaults.standard.removeObject(forKey: "onGoingCC")
@@ -370,7 +370,7 @@ class QmeraAudioConference: UIViewController {
                             ], replace: true)
                         } catch {
                             rollback.pointee = true
-                            print(error)
+                            //print(error)
                         }
                     })
                     if requester == idMe {
@@ -468,7 +468,7 @@ class QmeraAudioConference: UIViewController {
            let state = data["state"] as? Int,
            let message = data["message"] as? String {
             let arrayMessage = message.split(separator: ",")
-            //print("UYY \(state) \(message)")
+            //print(("UYY \(state) \(message)")
             if state == 22 {
                 if users.count == 1 && firstCall {
                     DispatchQueue.main.async {

+ 6 - 6
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/QmeraAudioViewController.swift

@@ -622,7 +622,7 @@ class QmeraAudioViewController: UIViewController {
                                 ], replace: true)
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                     }
@@ -659,7 +659,7 @@ class QmeraAudioViewController: UIViewController {
                             ], replace: true)
                         } catch {
                             rollback.pointee = true
-                            print(error)
+                            //print(error)
                         }
                     })
                     if officer == idMe {
@@ -936,10 +936,10 @@ class QmeraAudioViewController: UIViewController {
 extension QmeraAudioViewController : WhiteboardReceiver {
     
     func incomingWB(roomId: String) {
-        //print("incoming wb")
+        //print(("incoming wb")
         self.wbTimer.invalidate()
         if(wbRoomId.isEmpty){
-            //print("wbroom empty")
+            //print(("wbroom empty")
             DispatchQueue.main.async {
                 self.wbTimer = Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(self.runTimer), userInfo: nil, repeats: true)
             }
@@ -978,11 +978,11 @@ extension QmeraAudioViewController : WhiteboardReceiver {
         DispatchQueue.main.async {
             self.wbBlink = !self.wbBlink
             if(self.wbBlink){
-                //print("set wb blink on")
+                //print(("set wb blink on")
                 self.buttonWB.backgroundColor = .green
             }
             else {
-                //print("set wb blink off")
+                //print(("set wb blink off")
                 self.buttonWB.backgroundColor = .lightGray
             }
             self.buttonWB.setNeedsDisplay()

+ 5 - 5
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/QmeraVideoViewController.swift

@@ -828,7 +828,7 @@ class QmeraVideoViewController: UIViewController {
                         ], replace: true)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
                 if officer == idMe {
@@ -1408,10 +1408,10 @@ class QmeraVideoViewController: UIViewController {
 extension QmeraVideoViewController : WhiteboardReceiver {
     
     func incomingWB(roomId: String) {
-        //print("incoming wb")
+        //print(("incoming wb")
         self.wbTimer.invalidate()
         if(wbRoomId.isEmpty){
-            //print("wbroom empty")
+            //print(("wbroom empty")
             DispatchQueue.main.async {
                 self.wbTimer = Timer.scheduledTimer(timeInterval: 1.0, target: self, selector: #selector(self.runTimer), userInfo: nil, repeats: true)
             }
@@ -1450,11 +1450,11 @@ extension QmeraVideoViewController : WhiteboardReceiver {
         DispatchQueue.main.async {
             self.wbBlink = !self.wbBlink
             if(self.wbBlink){
-                //print("set wb blink on")
+                //print(("set wb blink on")
                 self.buttonWB.backgroundColor = .green
             }
             else {
-                //print("set wb blink off")
+                //print(("set wb blink off")
                 self.buttonWB.backgroundColor = .lightGray
             }
             self.buttonWB.setNeedsDisplay()

+ 5 - 5
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/ScreenSharingViewController.swift

@@ -196,7 +196,7 @@ class ScreenSharingViewController: UIViewController {
                 let status = message.getBody(key: CoreMessage_TMessageKey.STATUS, default_value: "")
                 switch (Int(status)) {
                 case CoreMessage_TMessageCode.SS_ACCEPT_INCOMING:
-                    //print("SS_ACCEPT_INCOMING")
+                    //print(("SS_ACCEPT_INCOMING")
                     let f_pin = message.getBody(key: CoreMessage_TMessageKey.F_USER_ID, default_value: "")
                     _ = Nexilis.write(message: CoreMessage_TMessageBank.ssOffhook(l_pin: f_pin))
                     DispatchQueue.main.async {
@@ -237,7 +237,7 @@ class ScreenSharingViewController: UIViewController {
                         labelSSInit.text = "You are now sharing your screen".localized()
                     }
                 case CoreMessage_TMessageCode.SS_REJECT_INCOMING,CoreMessage_TMessageCode.SS_END:
-                    //print("SS_END \(status)")
+                    //print(("SS_END \(status)")
                     if self.labelIncomingOutgoing.isDescendant(of: self.view) {
                         self.labelIncomingOutgoing.text = "Screen Sharing session is over".localized()
                     }
@@ -265,13 +265,13 @@ class ScreenSharingViewController: UIViewController {
                         self.dismiss(animated: true, completion: nil)
                     }
                 case CoreMessage_TMessageCode.SS_OFFHOOK:
-                    //print("SS_OFFHOOK")
+                    //print(("SS_OFFHOOK")
                     break
                 case CoreMessage_TMessageCode.SS_RINGING:
-                    //print("SS_RINGING")
+                    //print(("SS_RINGING")
                     break
                 default:
-                    //print("default")
+                    //print(("default")
                     break
                 }
             }

+ 6 - 6
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Call/WhiteboardViewController.swift

@@ -221,7 +221,7 @@ class WhiteboardViewController: UIViewController, WhiteboardDelegate {
                 let status = message.getBody(key: CoreMessage_TMessageKey.STATUS, default_value: "")
                 switch (Int(status)) {
                 case CoreMessage_TMessageCode.WB_ACCEPT_INCOMING:
-                    ////print("WB_ACCEPT_INCOMING")
+                    ////print(("WB_ACCEPT_INCOMING")
                     let f_pin = message.getBody(key: CoreMessage_TMessageKey.F_USER_ID, default_value: "")
                     _ = Nexilis.write(message: CoreMessage_TMessageBank.wbOffhook(l_pin: f_pin))
                     DispatchQueue.main.async {
@@ -242,7 +242,7 @@ class WhiteboardViewController: UIViewController, WhiteboardDelegate {
                         UserDefaults.standard.set("\(User.getMyPin() ?? ""),\(f_pin)", forKey: "wb_vc")
                     }
                 case CoreMessage_TMessageCode.WB_REJECT_INCOMING,CoreMessage_TMessageCode.WB_END:
-                    ////print("WB_REJECT_INCOMING \(status)")
+                    ////print(("WB_REJECT_INCOMING \(status)")
                     if self.labelIncomingOutgoing.isDescendant(of: self.view) {
                         self.labelIncomingOutgoing.text = "WhiteBoard session is over".localized()
                     }
@@ -269,13 +269,13 @@ class WhiteboardViewController: UIViewController, WhiteboardDelegate {
                         self.dismiss(animated: true, completion: nil)
                     }
                 case CoreMessage_TMessageCode.WB_OFFHOOK:
-                    ////print("WB_OFFHOOK")
+                    ////print(("WB_OFFHOOK")
                     break
                 case CoreMessage_TMessageCode.WB_RINGING:
-                    ////print("WB_RINGING")
+                    ////print(("WB_RINGING")
                     break
                 default:
-                    ////print("default")
+                    ////print(("default")
                     break
                 }
             }
@@ -300,7 +300,7 @@ class WhiteboardViewController: UIViewController, WhiteboardDelegate {
     
     func sendInit(){
         let d = destinations.joined(separator: ",")
-        ////print("KOCAK \(d)")
+        ////print(("KOCAK \(d)")
 //            roomId = "\(me)\(tid)"
         wb?.setRoomId(roomId: roomId)
         wb!.sendInit(destinations: d)

+ 3 - 3
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Chat/EditorGroup.swift

@@ -1649,9 +1649,9 @@ extension EditorGroup: UIDocumentPickerDelegate, DocumentPickerDelegate, QLPrevi
             if !FileManager.default.fileExists(atPath: fileURL.path) {
                 do {
                     try dataFile.write(to: fileURL)
-                    //print("file saved")
+                    //print(("file saved")
                 } catch {
-                    //print("error saving file:", error)
+                    //print(("error saving file:", error)
                 }
             }
             sendChat(message_text: "\(originaFileName)|", attachment_flag: "6", file_id: renamedNameFile, viewController: self)
@@ -1897,7 +1897,7 @@ extension EditorGroup: UITextViewDelegate {
                                 ], replace: true)
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                         if self.showingLink != text {

+ 6 - 6
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Chat/EditorPersonal.swift

@@ -1354,7 +1354,7 @@ public class EditorPersonal: UIViewController, ImageVideoPickerDelegate, UIGestu
                                     ], replace: true)
                                 } catch {
                                     rollback.pointee = true
-                                    print(error)
+                                    //print(error)
                                 }
                             })
                         }
@@ -1677,7 +1677,7 @@ public class EditorPersonal: UIViewController, ImageVideoPickerDelegate, UIGestu
             if !onGoingCC.isEmpty {
                 let officer = onGoingCC.isEmpty ? "" : onGoingCC.components(separatedBy: ",")[1]
                 if message.getBody(key: CoreMessage_TMessageKey.F_PIN) != officer {
-//                    //print("RESET TIMER")
+//                    //print(("RESET TIMER")
 //                    timeoutCC.invalidate()
 //                    timeoutCC = Timer.scheduledTimer(withTimeInterval: 30.0, repeats: false, block: {_ in
 //                        let imageView = UIImageView(image: UIImage(systemName: "info.circle"))
@@ -2123,7 +2123,7 @@ public class EditorPersonal: UIViewController, ImageVideoPickerDelegate, UIGestu
                     ], replace: true)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
             if officer == idMe {
@@ -2930,9 +2930,9 @@ extension EditorPersonal: UIDocumentPickerDelegate, DocumentPickerDelegate, QLPr
             if !FileManager.default.fileExists(atPath: fileURL.path) {
                 do {
                     try dataFile.write(to: fileURL)
-                    //print("file saved")
+                    //print(("file saved")
                 } catch {
-                    //print("error saving file:", error)
+                    //print(("error saving file:", error)
                 }
             }
             sendChat(message_text: "\(originaFileName)|", attachment_flag: "6", file_id: renamedNameFile, viewController: self)
@@ -3064,7 +3064,7 @@ extension EditorPersonal: UITextViewDelegate {
                                 ], replace: true)
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                         if self.showingLink != text {

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Chat/FormEditor.swift

@@ -318,7 +318,7 @@ class FormEditor: UIViewController {
 //                        ], replace: true)
 //                    } catch {
 //                        rollback.pointee = true
-//                        print(error)
+//                        //print(error)
 //                    }
 //                })
                 DispatchQueue.main.async {

+ 9 - 9
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Chat/PreviewAttachmentImageVideo.swift

@@ -57,7 +57,7 @@ class PreviewAttachmentImageVideo: UIViewController, UIScrollViewDelegate, UITex
                     scrollViewImage.addGestureRecognizer(objectTap)
                     objectTap.videoURL = imageVideoData![.mediaURL] as? NSURL
                 } catch let error {
-                    //print("*** Error generating thumbnail: \(error.localizedDescription)")
+                    //print(("*** Error generating thumbnail: \(error.localizedDescription)")
                 }
             } else {
                 imagePreview.image = imageVideoData![.originalImage] as? UIImage
@@ -297,9 +297,9 @@ class PreviewAttachmentImageVideo: UIViewController, UIScrollViewDelegate, UITex
                !FileManager.default.fileExists(atPath: fileURL.path) {
                 do {
                     try data.write(to: fileURL)
-                    //print("file saved")
+                    //print(("file saved")
                 } catch {
-                    //print("error saving file:", error)
+                    //print(("error saving file:", error)
                 }
             }
             let thumbImage = UIImage(data: compressedImage!)
@@ -308,9 +308,9 @@ class PreviewAttachmentImageVideo: UIViewController, UIScrollViewDelegate, UITex
                !FileManager.default.fileExists(atPath: fileURLTHUMB.path) {
                 do {
                     try dataThumb.write(to: fileURLTHUMB)
-                    //print("thumb saved")
+                    //print(("thumb saved")
                 } catch {
-                    //print("error saving file:", error)
+                    //print(("error saving file:", error)
                 }
             }
             self.dismiss(animated: true, completion: nil)
@@ -362,9 +362,9 @@ class PreviewAttachmentImageVideo: UIViewController, UIScrollViewDelegate, UITex
             if !FileManager.default.fileExists(atPath: fileURL.path) {
                 do {
                     try dataVideo.write(to: fileURL)
-                    //print("file saved")
+                    //print(("file saved")
                 } catch {
-                    //print("error saving file:", error)
+                    //print(("error saving file:", error)
                 }
             }
             let dataThumbVideo = imagePreview.image!.jpegData(compressionQuality:  1.0)
@@ -372,9 +372,9 @@ class PreviewAttachmentImageVideo: UIViewController, UIScrollViewDelegate, UITex
             if !FileManager.default.fileExists(atPath: fileURLTHUMB.path) {
                 do {
                     try dataThumbVideo!.write(to: fileURLTHUMB)
-                    //print("thumb saved")
+                    //print(("thumb saved")
                 } catch {
-                    //print("error saving file:", error)
+                    //print(("error saving file:", error)
                 }
             }
             self.dismiss(animated: true, completion: nil)

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Contact/ContactCallViewController.swift

@@ -116,7 +116,7 @@ class ContactCallViewController: UIViewController {
     
     @objc func refresh(notification: NSNotification) {
         DispatchQueue.main.async {
-            //print("MASuK SINI DONG")
+            //print(("MASuK SINI DONG")
             self.getData()
             self.dataPersonNotChange = self.dataPerson
             self.tableView.reloadData()

+ 26 - 14
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/BackupRestoreView.swift

@@ -340,7 +340,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 if !centerLogoIsRotated{
                     centerLogoIsRotated = true
                     centerLogo.transform = centerLogo.transform.rotated(by: .pi / 2)
-                    //print("LOHE \(centerLogo.transform)")
+                    //print(("LOHE \(centerLogo.transform)")
                 }
             }
             logo.addSubview(centerLogo)
@@ -476,7 +476,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -492,7 +492,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -517,7 +517,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -542,7 +542,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -567,7 +567,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -643,7 +643,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 tableView.endUpdates()
             })
         } catch {
-            print(error)
+            //print(error)
             self.view.makeToast("Backup files are corrupted".localized(), duration: 0.5)
             DispatchQueue.global().async { [self] in
                 _ = Nexilis.write(message: CoreMessage_TMessageBank.getBackupRestored(option: optionBackup, fileid: fileIdBackup))
@@ -699,7 +699,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_message.write(to: file_message, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //Make File UC_LIST
@@ -737,7 +739,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_uc_list.write(to: file_uc_list, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //Make File FORM_DATA
@@ -772,7 +776,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_form_data.write(to: file_form_data, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //Make File TASK_PIC
@@ -807,7 +813,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_task_pic.write(to: file_task_pic, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //Make File TASK_DETAIL
@@ -842,7 +850,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_task_detail.write(to: file_task_detail, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //ZIP ALL FILES
@@ -870,7 +880,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                     try archive.addEntry(with: file_task_pic.lastPathComponent, relativeTo: file_task_pic.deletingLastPathComponent())
                     try archive.addEntry(with: file_task_detail.lastPathComponent, relativeTo: file_task_detail.deletingLastPathComponent())
                 } catch {
-                    //print("Adding entry to ZIP archive failed with error:\(error)")
+                    //print(("Adding entry to ZIP archive failed with error:\(error)")
                 }
                 self.labelPreparing.text = "Uploading...".localized()
                 Network().upload(fileUrl: zipFiles, completion: { result,progress in
@@ -927,7 +937,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                         }
                     }
                 })
-            } catch {print(error)}
+            } catch {//print(error)
+                
+            }
         })
     }
 

+ 3 - 3
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/BroadcastMembersTableViewController.swift

@@ -161,7 +161,7 @@ class BroadcastMembersTableViewController: UITableViewController, UISearchContro
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
                 completion()
             })
@@ -369,8 +369,8 @@ class BroadcastMembersTableViewController: UITableViewController, UISearchContro
                     destination.contacts.append(contacts[cell.tag])
                 }
             }
-            //print("GROUPS \(destination.groups)")
-            //print("CONTACTS \(destination.contacts)")
+            //print(("GROUPS \(destination.groups)")
+            //print(("CONTACTS \(destination.contacts)")
             destination.memberTable.reloadData()
             destination.tableView.reloadData()
         }

+ 19 - 19
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/BroadcastViewController.swift

@@ -264,11 +264,11 @@ class BroadcastViewController: UITableViewController, UITextFieldDelegate, UITex
                     imagePreview.image = thumbnail
                     self.fileType = BroadcastViewController.FILE_TYPE_VIDEO
                 } catch let error {
-                    //print("*** Error generating thumbnail: \(error.localizedDescription)")
+                    //print(("*** Error generating thumbnail: \(error.localizedDescription)")
                 }
             } else {
                 let url = imageVideoData![.imageURL] as! URL
-                //print("url: \(url.lastPathComponent)")
+                //print(("url: \(url.lastPathComponent)")
                 imagePreview.image = imageVideoData![.originalImage] as? UIImage
                 self.fileType = BroadcastViewController.FILE_TYPE_IMAGE
             }
@@ -374,13 +374,13 @@ class BroadcastViewController: UITableViewController, UITextFieldDelegate, UITex
             let jsonData = try! JSONSerialization.data(withJSONObject: cs, options: [])
             membersInvited = String(data: jsonData, encoding: .utf8) ?? ""
         }
-        //print("dest: \(dest)")
-        //print("type: \(type)")
-        //print("mode: \(mode)")
-        //print("fileType: \(fileType)")
-        //print("thumb_id: \(thumbId)")
-        //print("file_id: \(fileId)")
-        //print("members: \(membersInvited)")
+        //print(("dest: \(dest)")
+        //print(("type: \(type)")
+        //print(("mode: \(mode)")
+        //print(("fileType: \(fileType)")
+        //print(("thumb_id: \(thumbId)")
+        //print(("file_id: \(fileId)")
+        //print(("members: \(membersInvited)")
         if !CheckConnection.isConnectedToNetwork() {
             let imageView = UIImageView(image: UIImage(systemName: "xmark.circle.fill"))
             imageView.tintColor = .white
@@ -447,9 +447,9 @@ class BroadcastViewController: UITableViewController, UITextFieldDelegate, UITex
            !FileManager.default.fileExists(atPath: fileURL.path) {
             do {
                 try data.write(to: fileURL)
-                //print("file saved")
+                //print(("file saved")
             } catch {
-                //print("error saving file:", error)
+                //print(("error saving file:", error)
             }
         }
         let thumbImage = UIImage(data: compressedImage!)
@@ -458,9 +458,9 @@ class BroadcastViewController: UITableViewController, UITextFieldDelegate, UITex
            !FileManager.default.fileExists(atPath: fileURLTHUMB.path) {
             do {
                 try dataThumb.write(to: fileURLTHUMB)
-                //print("thumb saved")
+                //print(("thumb saved")
             } catch {
-                //print("error saving file:", error)
+                //print(("error saving file:", error)
             }
         }
         fileId = compressedImageName
@@ -510,9 +510,9 @@ class BroadcastViewController: UITableViewController, UITextFieldDelegate, UITex
         if !FileManager.default.fileExists(atPath: fileURL.path) {
             do {
                 try dataVideo.write(to: fileURL)
-                //print("file saved")
+                //print(("file saved")
             } catch {
-                //print("error saving file:", error)
+                //print(("error saving file:", error)
             }
         }
         let dataThumbVideo = imagePreview.image!.jpegData(compressionQuality:  1.0)
@@ -520,9 +520,9 @@ class BroadcastViewController: UITableViewController, UITextFieldDelegate, UITex
         if !FileManager.default.fileExists(atPath: fileURLTHUMB.path) {
             do {
                 try dataThumbVideo!.write(to: fileURLTHUMB)
-                //print("thumb saved")
+                //print(("thumb saved")
             } catch {
-                //print("error saving file:", error)
+                //print(("error saving file:", error)
             }
         }
         fileId = renamedVideoName
@@ -541,9 +541,9 @@ class BroadcastViewController: UITableViewController, UITextFieldDelegate, UITex
             if !FileManager.default.fileExists(atPath: fileURL.path) {
                 do {
                     try dataFile.write(to: fileURL)
-                    //print("file saved")
+                    //print(("file saved")
                 } catch {
-                    //print("error saving file:", error)
+                    //print(("error saving file:", error)
                 }
             }
             fileId = renamedNameFile

+ 6 - 6
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/ContactChatViewController.swift

@@ -13,7 +13,7 @@ import Toast_Swift
 class ContactChatViewController: UITableViewController {
     
     deinit {
-        print(#function, ">>>> TADAA")
+        //print(#function, ">>>> TADAA")
         NotificationCenter.default.removeObserver(self)
     }
     
@@ -266,7 +266,7 @@ class ContactChatViewController: UITableViewController {
                 self.getData()
             }
         } else if data["state"] as? Int == 99 {
-            //print("MASUK 99")
+            //print(("MASUK 99")
             DispatchQueue.main.async {
                 self.getData()
             }
@@ -739,9 +739,9 @@ extension ContactChatViewController {
             } else {
                 getGroups(id: group.id) { g in
                     DispatchQueue.main.async {
-                        //print("index path section: \(indexPath.section)")
-                        //print("index path row: \(indexPath.row)")
-//                            //print("index path item: \(indexPath.item)")
+                        //print(("index path section: \(indexPath.section)")
+                        //print(("index path row: \(indexPath.row)")
+//                            //print(("index path item: \(indexPath.item)")
                         if self.isFilltering {
 //                                self.fillteredData.remove(at: indexPath.section)
                             if self.fillteredData[indexPath.section] is Group {
@@ -753,7 +753,7 @@ extension ContactChatViewController {
                             self.groupMap[self.groups[indexPath.section].id] = 1
                             self.groups.insert(contentsOf: g, at: indexPath.section + 1)
                         }
-                        //print("groupMap: \(self.groupMap)")
+                        //print(("groupMap: \(self.groupMap)")
                         tableView.reloadData()
                         
                         self.expandCollapseGroup(tableView: tableView, indexPath: IndexPath(row: 0, section: indexPath.section + 1))

+ 2 - 2
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/GroupDetailViewController.swift

@@ -169,7 +169,7 @@ class GroupDetailViewController: UITableViewController {
             } else {
                 level = "\(Int(level)! + 1)"
             }
-            //print("level: \(level)")
+            //print(("level: \(level)")
             DispatchQueue.main.async {
                 if let response = Nexilis.writeAndWait(message: CoreMessage_TMessageBank.getCreateSubGroup(group_id: self.idSubGroup, group_name: textField!.text!, parent_id: self.group!.id, level: level)) {
                     if response.isOk() {
@@ -647,7 +647,7 @@ class GroupDetailViewController: UITableViewController {
                 navigationController?.present(alert, animated: true)
             }
         default:
-            //print("No handler..")
+            //print(("No handler..")
             break
         }
     }

+ 2 - 2
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/HistoryCCViewController.swift

@@ -274,7 +274,7 @@ public class HistoryCCViewController: UITableViewController, QLPreviewController
             else { fatalError("Destination URL not created") }
         
         pdfData.write(to: outputURL, atomically: true)
-        //print("open \(outputURL.path)")
+        //print(("open \(outputURL.path)")
         
         if FileManager.default.fileExists(atPath: outputURL.path){
             
@@ -288,7 +288,7 @@ public class HistoryCCViewController: UITableViewController, QLPreviewController
             self.present(previewController, animated: true, completion: nil)
         }
         else {
-            //print("document was not found")
+            //print(("document was not found")
         }
         
     }

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/QRScannerView.swift

@@ -66,7 +66,7 @@ extension QRScannerView {
         do {
             videoInput = try AVCaptureDeviceInput(device: videoCaptureDevice)
         } catch let error {
-            print(error)
+            //print(error)
             return
         }
         

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/ScannerViewController.swift

@@ -97,6 +97,6 @@ public class ScannerViewController: UIViewController, QRScannerViewDelegate {
     }
     
     func qrScanningDidStop() {
-        //print("SCANNED STOP")
+        //print(("SCANNED STOP")
     }
 }

+ 2 - 2
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Control/SettingTableViewController.swift

@@ -757,8 +757,8 @@ public class SettingTableViewController: UITableViewController, UIGestureRecogni
     
     @objc func alertTextFieldDidChange(_ sender: UITextField) {
         if(!textFields.isEmpty){
-            //print("text count 0: \(textFields[0].text!.count)")
-            //print("text count 1: \(textFields[1].text!.count)")
+            //print(("text count 0: \(textFields[0].text!.count)")
+            //print(("text count 1: \(textFields[1].text!.count)")
             alert?.actions[0].isEnabled = textFields[0].text!.count > 0 && textFields[1].text!.count > 0
         }
         else {

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Streaming/CreateSeminarViewController.swift

@@ -73,7 +73,7 @@ public class CreateSeminarViewController: UITableViewController {
     }()
     
     deinit {
-        print(#function, ">>>> TADAA1")
+        //print(#function, ">>>> TADAA1")
         NotificationCenter.default.removeObserver(self)
         NotificationCenter.default.post(name: NSNotification.Name(rawValue: "refreshView"), object: nil, userInfo: nil)
     }

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Streaming/CreateViewController.swift

@@ -72,7 +72,7 @@ class CreateViewController: UITableViewController {
     @objc func didTapRight(sender: Any?) {
         let controller = QmeraStreamingViewController()
         controller.isLive = !isJoin
-        //print(">>>>> \(data)")
+        //print((">>>>> \(data)")
         if isJoin {
             guard let by = data["by"] as? String else {
                 return

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Streaming/QmeraCreateStreamingViewController.swift

@@ -82,7 +82,7 @@ public class QmeraCreateStreamingViewController: UITableViewController {
     }()
     
     deinit {
-        print(#function, ">>>> TADAA1")
+        //print(#function, ">>>> TADAA1")
         NotificationCenter.default.removeObserver(self)
         NotificationCenter.default.post(name: NSNotification.Name(rawValue: "refreshView"), object: nil, userInfo: nil)
     }

+ 1 - 1
appbuilder-ios/DigiXLite/DigiXLite/Source/View/Streaming/StreamingViewController.swift

@@ -47,7 +47,7 @@ class StreamingViewController: UIViewController {
 extension StreamingViewController: LiveStreamingDelegate {
     
     func onStartLS(state: Int, message: String) {
-        //print("onStartLS: \(state):\(message)")
+        //print(("onStartLS: \(state):\(message)")
         if message.contains("Initiating") {
             DispatchQueue.main.async {
                 self.cameraView.transform = CGAffineTransform.init(scaleX: 1.6, y: 1.6)

+ 2 - 2
appbuilder-ios/DigiXLite/DigiXLite/Source/Whiteboard.swift

@@ -88,7 +88,7 @@ public class Whiteboard: WhiteboardDelegate {
     }
     
     public func draw(x: String, y: String, w: String, h: String, fc: String, sw: String, xo: String, yo: String, data: String) {
-        //print("Draw whiteboard: "+x+","+y+","+w+","+h+","+fc+","+sw+","+xo+","+yo)
+        //print(("Draw whiteboard: "+x+","+y+","+w+","+h+","+fc+","+sw+","+xo+","+yo)
         canvas?.incomingData(x: x,y: y,w: w,h: h,fc: fc,sw: sw,xo: xo,yo: yo)
     }
     
@@ -98,7 +98,7 @@ public class Whiteboard: WhiteboardDelegate {
     }
     
     public func clear() {
-        //print("Clear whiteboard")
+        //print(("Clear whiteboard")
         DispatchQueue.main.async {
             self.canvas?.clear()
         }

+ 3 - 3
appbuilder-ios/DigiXLite/DigiXLite/Source/WhiteboardCanvas.swift

@@ -125,7 +125,7 @@ public class WhiteboardCanvas: UIView {
                 drawShapeLayer(color: colorDraw)
             } else {
                 let dataWB = UserDefaults.standard.string(forKey: "wb_vc")!
-                //print("DATA WB \(dataWB)")
+                //print(("DATA WB \(dataWB)")
                 var colorDraw = UIColor.red
                 let requester = dataWB.components(separatedBy: ",")[0]
                 let idMe = UserDefaults.standard.string(forKey: "me")!
@@ -164,7 +164,7 @@ public class WhiteboardCanvas: UIView {
     }
     
     func incomingDraw(x:CGFloat, y:CGFloat, w:CGFloat, h:CGFloat, fc:String, sw:CGFloat, xo:CGFloat, yo:CGFloat) {
-        //print("DRAWING >> x:\(x) y:\(y) w:\(w) h:\(h) fc:\(fc) sw:\(sw) xo:\(xo) yo:\(yo)")
+        //print(("DRAWING >> x:\(x) y:\(y) w:\(w) h:\(h) fc:\(fc) sw:\(sw) xo:\(xo) yo:\(yo)")
         
         let xoScaled = nWidth / w * xo;
         let yoScaled = nHeight / h * yo;
@@ -237,7 +237,7 @@ public class WhiteboardCanvas: UIView {
     }
     
     func drawWhiteboard(destination: String, x: String, y: String, w: String, h: String, fc: String, sw: String, xo: String, yo: String){
-        //print("DRAW HMM \(destination)")
+        //print(("DRAW HMM \(destination)")
         _ = Nexilis.writeDraw(data: "WB/1/\(x)/\(y)/\(w)/\(h)/\(fc)/\(sw)/\(xo)/\(yo)")
     }
     

+ 40 - 40
appbuilder-ios/NexilisLite/NexilisLite.xcodeproj/project.pbxproj

@@ -7,7 +7,8 @@
 	objects = {
 
 /* Begin PBXBuildFile section */
-		B70E6EEE42E8599AE3E234EB /* Pods_NexilisLite.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B4C6CACD7DA8A9F327A41E45 /* Pods_NexilisLite.framework */; };
+		176601FEB7690EB1DB13A6BB /* Pods_NexilisLite.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 210AAC1AD908F75AFE03A1C2 /* Pods_NexilisLite.framework */; };
+		6D2DD00E9400DA79A3A6F915 /* Pods_NexilisLite_NexilisLiteTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 944759F0D38C733B025F929F /* Pods_NexilisLite_NexilisLiteTests.framework */; };
 		CD1E6E6D2A0B7C3600BF871F /* NexilisLite.docc in Sources */ = {isa = PBXBuildFile; fileRef = CD1E6E6C2A0B7C3600BF871F /* NexilisLite.docc */; };
 		CD1E6E732A0B7C3600BF871F /* NexilisLite.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CD1E6E682A0B7C3600BF871F /* NexilisLite.framework */; };
 		CD1E6E782A0B7C3600BF871F /* NexilisLiteTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = CD1E6E772A0B7C3600BF871F /* NexilisLiteTests.swift */; };
@@ -191,7 +192,6 @@
 		CDDF46752A2DD81300049A19 /* CreateSeminarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDDF46732A2DD81300049A19 /* CreateSeminarViewController.swift */; };
 		CDDF46762A2DD81300049A19 /* SeminarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDDF46742A2DD81300049A19 /* SeminarViewController.swift */; };
 		CDDF467A2A2EF0A700049A19 /* ScreenSharingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDDF46792A2EF0A700049A19 /* ScreenSharingViewController.swift */; };
-		E041D3F3664E6832F1C7D472 /* Pods_NexilisLite_NexilisLiteTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 29B82D1BED77BA49C75DE10C /* Pods_NexilisLite_NexilisLiteTests.framework */; };
 /* End PBXBuildFile section */
 
 /* Begin PBXContainerItemProxy section */
@@ -225,12 +225,12 @@
 /* End PBXCopyFilesBuildPhase section */
 
 /* Begin PBXFileReference section */
-		20C4CB5AC0587988A5920E59 /* Pods-NexilisLite-NexilisLiteTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NexilisLite-NexilisLiteTests.debug.xcconfig"; path = "Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests.debug.xcconfig"; sourceTree = "<group>"; };
-		21404A523FB436B8AEC7E4EC /* Pods-NexilisLite.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NexilisLite.release.xcconfig"; path = "Target Support Files/Pods-NexilisLite/Pods-NexilisLite.release.xcconfig"; sourceTree = "<group>"; };
-		29B82D1BED77BA49C75DE10C /* Pods_NexilisLite_NexilisLiteTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NexilisLite_NexilisLiteTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
-		3061C3DBD93D011424C9863F /* Pods-NexilisLite.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NexilisLite.debug.xcconfig"; path = "Target Support Files/Pods-NexilisLite/Pods-NexilisLite.debug.xcconfig"; sourceTree = "<group>"; };
-		4BEC265A00B388B11B91C0A2 /* Pods-NexilisLite-NexilisLiteTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NexilisLite-NexilisLiteTests.release.xcconfig"; path = "Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests.release.xcconfig"; sourceTree = "<group>"; };
-		B4C6CACD7DA8A9F327A41E45 /* Pods_NexilisLite.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NexilisLite.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+		210AAC1AD908F75AFE03A1C2 /* Pods_NexilisLite.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NexilisLite.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+		46FFE3B97CD2021AE0364376 /* Pods-NexilisLite.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NexilisLite.debug.xcconfig"; path = "Target Support Files/Pods-NexilisLite/Pods-NexilisLite.debug.xcconfig"; sourceTree = "<group>"; };
+		74C251092FE54211AAFE702F /* Pods-NexilisLite-NexilisLiteTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NexilisLite-NexilisLiteTests.debug.xcconfig"; path = "Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests.debug.xcconfig"; sourceTree = "<group>"; };
+		944759F0D38C733B025F929F /* Pods_NexilisLite_NexilisLiteTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NexilisLite_NexilisLiteTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+		9D57F13A3250C7AF05FB6D04 /* Pods-NexilisLite-NexilisLiteTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NexilisLite-NexilisLiteTests.release.xcconfig"; path = "Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests.release.xcconfig"; sourceTree = "<group>"; };
+		C83123A59DEDED9F2AC5CB17 /* Pods-NexilisLite.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NexilisLite.release.xcconfig"; path = "Target Support Files/Pods-NexilisLite/Pods-NexilisLite.release.xcconfig"; sourceTree = "<group>"; };
 		CD1E6E682A0B7C3600BF871F /* NexilisLite.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = NexilisLite.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		CD1E6E6B2A0B7C3600BF871F /* NexilisLite.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NexilisLite.h; sourceTree = "<group>"; };
 		CD1E6E6C2A0B7C3600BF871F /* NexilisLite.docc */ = {isa = PBXFileReference; lastKnownFileType = folder.documentationcatalog; path = NexilisLite.docc; sourceTree = "<group>"; };
@@ -432,7 +432,7 @@
 			isa = PBXFrameworksBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
-				B70E6EEE42E8599AE3E234EB /* Pods_NexilisLite.framework in Frameworks */,
+				176601FEB7690EB1DB13A6BB /* Pods_NexilisLite.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -441,7 +441,7 @@
 			buildActionMask = 2147483647;
 			files = (
 				CD1E6E732A0B7C3600BF871F /* NexilisLite.framework in Frameworks */,
-				E041D3F3664E6832F1C7D472 /* Pods_NexilisLite_NexilisLiteTests.framework in Frameworks */,
+				6D2DD00E9400DA79A3A6F915 /* Pods_NexilisLite_NexilisLiteTests.framework in Frameworks */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -465,8 +465,8 @@
 				CD1E79142A0CA43600BF871F /* SDWebImage.framework */,
 				CD1E79152A0CA43600BF871F /* SnapKit.framework */,
 				CD1E79162A0CA43600BF871F /* Toast_Swift.framework */,
-				B4C6CACD7DA8A9F327A41E45 /* Pods_NexilisLite.framework */,
-				29B82D1BED77BA49C75DE10C /* Pods_NexilisLite_NexilisLiteTests.framework */,
+				210AAC1AD908F75AFE03A1C2 /* Pods_NexilisLite.framework */,
+				944759F0D38C733B025F929F /* Pods_NexilisLite_NexilisLiteTests.framework */,
 			);
 			name = Frameworks;
 			sourceTree = "<group>";
@@ -475,10 +475,10 @@
 			isa = PBXGroup;
 			children = (
 				CD46A0BE2A0CE4FD009E4C87 /* NexilisLite.podspec */,
-				3061C3DBD93D011424C9863F /* Pods-NexilisLite.debug.xcconfig */,
-				21404A523FB436B8AEC7E4EC /* Pods-NexilisLite.release.xcconfig */,
-				20C4CB5AC0587988A5920E59 /* Pods-NexilisLite-NexilisLiteTests.debug.xcconfig */,
-				4BEC265A00B388B11B91C0A2 /* Pods-NexilisLite-NexilisLiteTests.release.xcconfig */,
+				46FFE3B97CD2021AE0364376 /* Pods-NexilisLite.debug.xcconfig */,
+				C83123A59DEDED9F2AC5CB17 /* Pods-NexilisLite.release.xcconfig */,
+				74C251092FE54211AAFE702F /* Pods-NexilisLite-NexilisLiteTests.debug.xcconfig */,
+				9D57F13A3250C7AF05FB6D04 /* Pods-NexilisLite-NexilisLiteTests.release.xcconfig */,
 			);
 			path = Pods;
 			sourceTree = "<group>";
@@ -814,7 +814,7 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = CD1E6E7C2A0B7C3600BF871F /* Build configuration list for PBXNativeTarget "NexilisLite" */;
 			buildPhases = (
-				6B2BFB186019D8012C247535 /* [CP] Check Pods Manifest.lock */,
+				69D278C37B38058A2E249D4D /* [CP] Check Pods Manifest.lock */,
 				CD1E6E632A0B7C3600BF871F /* Headers */,
 				CD1E6E642A0B7C3600BF871F /* Sources */,
 				CD1E6E652A0B7C3600BF871F /* Frameworks */,
@@ -835,11 +835,11 @@
 			isa = PBXNativeTarget;
 			buildConfigurationList = CD1E6E7F2A0B7C3600BF871F /* Build configuration list for PBXNativeTarget "NexilisLiteTests" */;
 			buildPhases = (
-				0E9648FCA4E52BBD02B5257E /* [CP] Check Pods Manifest.lock */,
+				A922D12F691984CEFC144601 /* [CP] Check Pods Manifest.lock */,
 				CD1E6E6E2A0B7C3600BF871F /* Sources */,
 				CD1E6E6F2A0B7C3600BF871F /* Frameworks */,
 				CD1E6E702A0B7C3600BF871F /* Resources */,
-				0AF5BF9EE5A7E3EECC334B94 /* [CP] Embed Pods Frameworks */,
+				6F11E4F1B2D25D718DDFED7E /* [CP] Embed Pods Frameworks */,
 			);
 			buildRules = (
 			);
@@ -1017,46 +1017,46 @@
 /* End PBXResourcesBuildPhase section */
 
 /* Begin PBXShellScriptBuildPhase section */
-		0AF5BF9EE5A7E3EECC334B94 /* [CP] Embed Pods Frameworks */ = {
+		69D278C37B38058A2E249D4D /* [CP] Check Pods Manifest.lock */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
 			);
 			inputFileListPaths = (
-				"${PODS_ROOT}/Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 			);
-			name = "[CP] Embed Pods Frameworks";
+			inputPaths = (
+				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+				"${PODS_ROOT}/Manifest.lock",
+			);
+			name = "[CP] Check Pods Manifest.lock";
 			outputFileListPaths = (
-				"${PODS_ROOT}/Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
+			);
+			outputPaths = (
+				"$(DERIVED_FILE_DIR)/Pods-NexilisLite-checkManifestLockResult.txt",
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests-frameworks.sh\"\n";
+			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
 			showEnvVarsInLog = 0;
 		};
-		0E9648FCA4E52BBD02B5257E /* [CP] Check Pods Manifest.lock */ = {
+		6F11E4F1B2D25D718DDFED7E /* [CP] Embed Pods Frameworks */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
 			);
 			inputFileListPaths = (
+				"${PODS_ROOT}/Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
 			);
-			inputPaths = (
-				"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
-				"${PODS_ROOT}/Manifest.lock",
-			);
-			name = "[CP] Check Pods Manifest.lock";
+			name = "[CP] Embed Pods Frameworks";
 			outputFileListPaths = (
-			);
-			outputPaths = (
-				"$(DERIVED_FILE_DIR)/Pods-NexilisLite-NexilisLiteTests-checkManifestLockResult.txt",
+				"${PODS_ROOT}/Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n    # print error to STDERR\n    echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n    exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+			shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NexilisLite-NexilisLiteTests/Pods-NexilisLite-NexilisLiteTests-frameworks.sh\"\n";
 			showEnvVarsInLog = 0;
 		};
-		6B2BFB186019D8012C247535 /* [CP] Check Pods Manifest.lock */ = {
+		A922D12F691984CEFC144601 /* [CP] Check Pods Manifest.lock */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
 			files = (
@@ -1071,7 +1071,7 @@
 			outputFileListPaths = (
 			);
 			outputPaths = (
-				"$(DERIVED_FILE_DIR)/Pods-NexilisLite-checkManifestLockResult.txt",
+				"$(DERIVED_FILE_DIR)/Pods-NexilisLite-NexilisLiteTests-checkManifestLockResult.txt",
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
@@ -1353,7 +1353,7 @@
 		};
 		CD1E6E7D2A0B7C3600BF871F /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 3061C3DBD93D011424C9863F /* Pods-NexilisLite.debug.xcconfig */;
+			baseConfigurationReference = 46FFE3B97CD2021AE0364376 /* Pods-NexilisLite.debug.xcconfig */;
 			buildSettings = {
 				BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
 				CODE_SIGN_STYLE = Automatic;
@@ -1393,7 +1393,7 @@
 		};
 		CD1E6E7E2A0B7C3600BF871F /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 21404A523FB436B8AEC7E4EC /* Pods-NexilisLite.release.xcconfig */;
+			baseConfigurationReference = C83123A59DEDED9F2AC5CB17 /* Pods-NexilisLite.release.xcconfig */;
 			buildSettings = {
 				BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
 				CODE_SIGN_STYLE = Automatic;
@@ -1433,7 +1433,7 @@
 		};
 		CD1E6E802A0B7C3600BF871F /* Debug */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 20C4CB5AC0587988A5920E59 /* Pods-NexilisLite-NexilisLiteTests.debug.xcconfig */;
+			baseConfigurationReference = 74C251092FE54211AAFE702F /* Pods-NexilisLite-NexilisLiteTests.debug.xcconfig */;
 			buildSettings = {
 				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
 				CODE_SIGN_STYLE = Automatic;
@@ -1451,7 +1451,7 @@
 		};
 		CD1E6E812A0B7C3600BF871F /* Release */ = {
 			isa = XCBuildConfiguration;
-			baseConfigurationReference = 4BEC265A00B388B11B91C0A2 /* Pods-NexilisLite-NexilisLiteTests.release.xcconfig */;
+			baseConfigurationReference = 9D57F13A3250C7AF05FB6D04 /* Pods-NexilisLite-NexilisLiteTests.release.xcconfig */;
 			buildSettings = {
 				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
 				CODE_SIGN_STYLE = Automatic;

+ 2 - 2
appbuilder-ios/NexilisLite/NexilisLite/Source/Callback.swift

@@ -13,7 +13,7 @@ class Callback : CallBack {
     var sID: String = "Callback"
     
     func connectionStateChanged(sUserID: String!, sDeviceID: String!, bConState: Bool!, nConType: Int!, nConSubType: Int!, nCLMConStat: UInt8!) {
-        print(sUserID, "/", sDeviceID, "/", bConState, "/", nConType, "/", nConSubType, "/", nCLMConStat)
+        //print(sUserID, "/", sDeviceID, "/", bConState, "/", nConType, "/", nConSubType, "/", nCLMConStat)
         if let dispatch = Nexilis.dispatch, bConState {
             dispatch.leave()
         }
@@ -32,7 +32,7 @@ class Callback : CallBack {
     }
     
     func callStateChanged(nState: Int!, sMessage: String!) -> Int {
-        print(nState,"/",sMessage)
+        //print(nState,"/",sMessage)
         if nState == 21 || nState == 31 {
             if let delegate = Nexilis.shared.callDelegate {
                 delegate.onIncomingCall(state: nState, message: sMessage)

+ 7 - 7
appbuilder-ios/NexilisLite/NexilisLite/Source/Database.swift

@@ -448,7 +448,7 @@ public class Database {
                 try fmdb.executeUpdate(sql, values: nil)
             }
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
     }
     
@@ -456,7 +456,7 @@ public class Database {
         do {
             try fmdb.executeUpdate(queries, values: nil)
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
     }
     
@@ -505,7 +505,7 @@ public class Database {
             }
             _result = try fmdb.executeQuery("select " + _fields + " from " + table + _whereClause, values: nil)
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
         return _result
     }
@@ -515,7 +515,7 @@ public class Database {
         do {
             _result = try fmdb.executeQuery(query, values: nil)
         } catch {
-            print(error)
+            //print(error)
         }
         return _result
     }
@@ -534,7 +534,7 @@ public class Database {
             try fmdb.executeUpdate("update " + table + " set " + fields, values: data)
             _result = 1
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
         return _result
     }
@@ -557,7 +557,7 @@ public class Database {
             try fmdb.executeUpdate("update " + table + " set " + fields + _whereClause, values: data)
             _result = 1
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
         return _result
     }
@@ -572,7 +572,7 @@ public class Database {
             try fmdb.executeUpdate("delete from " + table + _whereClause, values: nil)
             _result = 1
         } catch {
-            print(error.localizedDescription)
+            //print(error.localizedDescription)
         }
         return _result
     }

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/Extension.swift

@@ -1072,7 +1072,7 @@ extension UIImageView {
                     return
                 }
 
-                print(error)
+                //print(error)
                 return
             }
 

+ 32 - 32
appbuilder-ios/NexilisLite/NexilisLite/Source/IncomingThread.swift

@@ -211,7 +211,7 @@ class IncomingThread {
                         ack(message: message)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -645,7 +645,7 @@ class IncomingThread {
                 }
             }
         } catch {
-            print(error)
+            //print(error)
             if let download = Nexilis.getDownload(forKey: key_filename) {
                 if let delegate = download.delegate {
                     delegate.onDownloadProgress(fileName: key_filename, progress: -1)
@@ -703,7 +703,7 @@ class IncomingThread {
                         ack(message: message)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -855,7 +855,7 @@ class IncomingThread {
                             ack(message: message)
                         } catch {
                             rollback.pointee = true
-                            print(error)
+                            //print(error)
                         }
                     })
                 }
@@ -894,7 +894,7 @@ class IncomingThread {
                         }
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -937,7 +937,7 @@ class IncomingThread {
                         ack(message: message)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -974,7 +974,7 @@ class IncomingThread {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1013,7 +1013,7 @@ class IncomingThread {
                         ack(message: message)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -1047,7 +1047,7 @@ class IncomingThread {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1083,7 +1083,7 @@ class IncomingThread {
 //                    UIImageWriteToSavedPhotosAlbum(image!, nil, nil, nil)
 //                }
             } catch {
-                print(error)
+                //print(error)
             }
         }
         if (!thumb_id.isEmpty) {
@@ -1217,7 +1217,7 @@ class IncomingThread {
                     ack(message: message)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1378,7 +1378,7 @@ class IncomingThread {
                 }
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -1432,7 +1432,7 @@ class IncomingThread {
                     ack(message: message)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1469,7 +1469,7 @@ class IncomingThread {
                     ack(message: message)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1512,7 +1512,7 @@ class IncomingThread {
                     ack(message: message)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
         }
@@ -1565,7 +1565,7 @@ class IncomingThread {
     
     private func getLiveVideoList(message: TMessage) -> Void {
         let data  = message.getBody(key: CoreMessage_TMessageKey.DATA)
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onStartLS(state: 99, message: data)
         }
@@ -1573,7 +1573,7 @@ class IncomingThread {
     }
     private func getLSTitle(message: TMessage) -> Void {
         let title  = message.getBody(key: CoreMessage_TMessageKey.TITLE)
-        print(title)
+        //print(title)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 999, message: title)
         }
@@ -1625,7 +1625,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = broadcaster+","+f_pin+","+thumb_id+","+name+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 98, message: data)
         }
@@ -1639,7 +1639,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = broadcaster+","+f_pin+","+thumb_id+","+name+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 97, message: data)
         }
@@ -1650,7 +1650,7 @@ class IncomingThread {
         let likes = message.getBody(key: CoreMessage_TMessageKey.LIKES,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = l_pin+","+likes+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 96, message: data)
         }
@@ -1664,7 +1664,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let messages = message.getBody(key: CoreMessage_TMessageKey.MESSAGE_TEXT,default_value: "")
         let data = l_pin+","+f_pin+","+thumb_id+","+name+","+messages
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 95, message: data)
         }
@@ -1675,7 +1675,7 @@ class IncomingThread {
         let likes = message.getBody(key: CoreMessage_TMessageKey.LIKES,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = l_pin+","+likes+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.streamingDelagate {
             delegate.onJoinLS(state: 94, message: data)
         }
@@ -1688,7 +1688,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = broadcaster+","+f_pin+","+thumb_id+","+name+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.seminarDelegate {
             delegate.onJoinSeminar(state: 98, message: data)
         }
@@ -1701,7 +1701,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let quantity = message.getBody(key: CoreMessage_TMessageKey.QUANTITY,default_value: "")
         let data = broadcaster+","+f_pin+","+thumb_id+","+name+","+quantity
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.seminarDelegate {
             delegate.onJoinSeminar(state: 97, message: data)
         }
@@ -1712,7 +1712,7 @@ class IncomingThread {
         let f_pin = message.getBody(key: CoreMessage_TMessageKey.F_PIN,default_value: "")
         let status = message.getBody(key: CoreMessage_TMessageKey.STATUS,default_value: "")
         let data = f_pin+","+l_pin+","+status
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.seminarDelegate {
             delegate.onJoinSeminar(state: 96, message: data)
         }
@@ -1726,7 +1726,7 @@ class IncomingThread {
         let name = message.getBody(key: CoreMessage_TMessageKey.NAME,default_value: "")
         let messages = message.getBody(key: CoreMessage_TMessageKey.MESSAGE_TEXT,default_value: "")
         let data = l_pin+","+f_pin+","+thumb_id+","+name+","+messages
-        print(data)
+        //print(data)
         if let delegate = Nexilis.shared.seminarDelegate {
             delegate.onJoinSeminar(state: 95, message: data)
         }
@@ -1737,9 +1737,9 @@ class IncomingThread {
         let l_pin = message.getBody(key: CoreMessage_TMessageKey.L_PIN,default_value: "")
         let data = f_pin
         //print("data ss")
-        print(data)
-        print(l_pin)
-        print(state)
+        //print(data)
+        //print(l_pin)
+        //print(state)
         if let delegate = Nexilis.shared.screenSharingDelegate {
             delegate.onJoinScreenSharing(state: state, message: data)
         }
@@ -1749,7 +1749,7 @@ class IncomingThread {
     private func sendMSISDN(message: TMessage) -> Void {
         let errcod = message.getBody(key: CoreMessage_TMessageKey.ERRCOD,default_value: "")
         let data = errcod
-        print(data)
+        //print(data)
         if (errcod == "00"){
             if let delegate = Nexilis.shared.loginDelegate {
                 delegate.onProcess(message: "Success", status: "1")
@@ -1773,7 +1773,7 @@ class IncomingThread {
                 let l_name = message.getBody(key: CoreMessage_TMessageKey.LAST_NAME, default_value: "")
                 let thumb_id = message.getBody(key: CoreMessage_TMessageKey.THUMB_ID, default_value: "")
                 let data = f_pin+"|"+f_name+"|"+l_name+"|"+thumb_id
-                print(data)
+                //print(data)
                 if let delegate = Nexilis.shared.loginDelegate {
                     delegate.onProcess(message: data, status: reg_status)
                 }
@@ -1856,7 +1856,7 @@ class IncomingThread {
                 ack(message: message)
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/InquiryThread.swift

@@ -72,7 +72,7 @@ class InquiryThread {
                         ], replace: true)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }

+ 6 - 6
appbuilder-ios/NexilisLite/NexilisLite/Source/Network.swift

@@ -78,7 +78,7 @@ public class Network {
                             outputFileHandle.closeFile()
                             _ = Nexilis.removeUploadFile(forKey: fileName)
                         } catch {
-                            print(error.localizedDescription)
+                            //print(error.localizedDescription)
                         }
                     }
                     else {
@@ -98,7 +98,7 @@ public class Network {
                     completion(false, 0)
                 }
             } catch {
-                print(error.localizedDescription)
+                //print(error.localizedDescription)
             }
         }
     }
@@ -158,7 +158,7 @@ public class Network {
                             outputFileHandle.closeFile()
                             _ = Nexilis.removeUploadFile(forKey: fileName)
                         } catch {
-                            print(error.localizedDescription)
+                            //print(error.localizedDescription)
                         }
                     }
                     else {
@@ -178,7 +178,7 @@ public class Network {
                     completion(false, 0)
                 }
             } catch {
-                print(error.localizedDescription)
+                //print(error.localizedDescription)
             }
         }
     }
@@ -202,12 +202,12 @@ public class Network {
         let uploadRequest = AF.upload(multipartFormData: { (multipartFormData: MultipartFormData) in
             for (key, value) in parameters {
                 multipartFormData.append("\(value)".data(using: String.Encoding.utf8)!, withName: key as String)
-                print(multipartFormData)
+                //print(multipartFormData)
             }
             
             for i in 0..<filesIn.count {
                 multipartFormData.append(filesIn[i], withName: "file\(i+1)")
-                print(multipartFormData)
+                //print(multipartFormData)
             }
             
         }, to: endUrl)

+ 20 - 20
appbuilder-ios/NexilisLite/NexilisLite/Source/Nexilis.swift

@@ -98,7 +98,7 @@ public class Nexilis: NSObject {
             }
             Nexilis.ADDRESS = ip
             Nexilis.PORT = port
-            print(API.sGetVersion())
+            //print(API.sGetVersion())
             var id = ""
             if let device_id = UserDefaults.standard.string(forKey: "device_id") {
                 try API.initConnection(bSwitchIP: false, sAPIK: apiKey, aAppMain: nil, cbiI: Callback(), sTCPAddr: Nexilis.ADDRESS, nTCPPort: Nexilis.PORT, sUserID: device_id, sStartWH: "09:00")
@@ -206,7 +206,7 @@ public class Nexilis: NSObject {
             //print("MANIA \(UIFont.systemFont(ofSize: 12)) <> \(UIFont.italicSystemFont(ofSize: 12)) <> \(UIFont.boldSystemFont(ofSize: 12))")
         }
         catch {
-            print(error)
+            //print(error)
             delegate.onFailed(error: "99:Something went wrong")
         }
     }
@@ -256,7 +256,7 @@ public class Nexilis: NSObject {
                                 }
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                     }
@@ -293,7 +293,7 @@ public class Nexilis: NSObject {
                                 }
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                     }
@@ -326,7 +326,7 @@ public class Nexilis: NSObject {
                     ], replace: true)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
             if officer == idMe {
@@ -374,7 +374,7 @@ public class Nexilis: NSObject {
             //print("success change user to fpin")
 //            _ = Nexilis.write(message: CoreMessage_TMessageBank.getChangeConnectionID(p_pin: f_pin))
         } catch{
-            print(error)
+            //print(error)
         }
     }
     
@@ -474,7 +474,7 @@ public class Nexilis: NSObject {
                 return response
             }
         } catch {
-            print(error)
+            //print(error)
         }
         return nil
     }
@@ -497,7 +497,7 @@ public class Nexilis: NSObject {
                 return data
             }
         } catch {
-            print(error)
+            //print(error)
         }
         return nil
     }
@@ -513,7 +513,7 @@ public class Nexilis: NSObject {
                 return data
             }
         } catch {
-            print(error)
+            //print(error)
         }
         return nil
     }
@@ -527,7 +527,7 @@ public class Nexilis: NSObject {
             //print(">> RESPONSE >> " + packetId + " " + message.toLogString());
             result = try API.sSendResponse(sRequestID: packetId, sResponse: message.pack(), lTimeout: timeout)
         } catch {
-            print(error)
+            //print(error)
         }
         return result
     }
@@ -541,7 +541,7 @@ public class Nexilis: NSObject {
             //print(">> RESPONSE >> " + packetId + " " + message);
             result = try API.sSendResponse(sRequestID: packetId, sResponse: message, lTimeout: timeout)
         } catch {
-            print(error)
+            //print(error)
         }
         return result
     }
@@ -590,7 +590,7 @@ public class Nexilis: NSObject {
                 try AVAudioSession.sharedInstance().setCategory(.playAndRecord)
             }
         }catch{
-            print(error)
+            //print(error)
         }
     }
 
@@ -894,7 +894,7 @@ public class Nexilis: NSObject {
                 ], replace: true)
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
             
             if withStatus {
@@ -919,7 +919,7 @@ public class Nexilis: NSObject {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             } else {
                 DispatchQueue.main.async {
@@ -969,7 +969,7 @@ public class Nexilis: NSObject {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             }
             //print("insert db message summary \(message_id)")
@@ -1022,7 +1022,7 @@ public class Nexilis: NSObject {
                 ], replace: true)
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
         let pin = "-999"
@@ -1048,7 +1048,7 @@ public class Nexilis: NSObject {
                 ], replace: true)
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
         //print("insert db message summary \(message_id)")
@@ -1157,7 +1157,7 @@ public class Nexilis: NSObject {
                     completion(false)
                 }
             } catch {
-                print(error)
+                //print(error)
             }
         }
     }
@@ -1188,7 +1188,7 @@ public class Nexilis: NSObject {
                                 }
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                     }
@@ -1216,7 +1216,7 @@ public class Nexilis: NSObject {
 //        ret = true
 //    } catch {
 //        rollback.pointee = true
-//        print(error)
+//        //print(error)
 //    }
     
     private static var uploadQueue = DispatchQueue(label: "UPLOAD_DICT", attributes: .concurrent)

+ 2 - 2
appbuilder-ios/NexilisLite/NexilisLite/Source/OutgoingThread.swift

@@ -60,7 +60,7 @@ class OutgoingThread {
                         ], replace: true)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
             }
@@ -267,7 +267,7 @@ class OutgoingThread {
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
                 self.delOutgoing(fmdb: fmdb, messageId: messageId)
             }

+ 2 - 2
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Call/QmeraAudioConference.swift

@@ -334,7 +334,7 @@ class QmeraAudioConference: UIViewController {
                             ], replace: true)
                         } catch {
                             rollback.pointee = true
-                            print(error)
+                            //print(error)
                         }
                     })
                     UserDefaults.standard.removeObject(forKey: "onGoingCC")
@@ -370,7 +370,7 @@ class QmeraAudioConference: UIViewController {
                             ], replace: true)
                         } catch {
                             rollback.pointee = true
-                            print(error)
+                            //print(error)
                         }
                     })
                     if requester == idMe {

+ 2 - 2
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Call/QmeraAudioViewController.swift

@@ -622,7 +622,7 @@ class QmeraAudioViewController: UIViewController {
                                 ], replace: true)
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                     }
@@ -659,7 +659,7 @@ class QmeraAudioViewController: UIViewController {
                             ], replace: true)
                         } catch {
                             rollback.pointee = true
-                            print(error)
+                            //print(error)
                         }
                     })
                     if officer == idMe {

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Call/QmeraVideoViewController.swift

@@ -828,7 +828,7 @@ class QmeraVideoViewController: UIViewController {
                         ], replace: true)
                     } catch {
                         rollback.pointee = true
-                        print(error)
+                        //print(error)
                     }
                 })
                 if officer == idMe {

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Chat/EditorGroup.swift

@@ -1897,7 +1897,7 @@ extension EditorGroup: UITextViewDelegate {
                                 ], replace: true)
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                         if self.showingLink != text {

+ 3 - 3
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Chat/EditorPersonal.swift

@@ -1354,7 +1354,7 @@ public class EditorPersonal: UIViewController, ImageVideoPickerDelegate, UIGestu
                                     ], replace: true)
                                 } catch {
                                     rollback.pointee = true
-                                    print(error)
+                                    //print(error)
                                 }
                             })
                         }
@@ -2123,7 +2123,7 @@ public class EditorPersonal: UIViewController, ImageVideoPickerDelegate, UIGestu
                     ], replace: true)
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
             })
             if officer == idMe {
@@ -3064,7 +3064,7 @@ extension EditorPersonal: UITextViewDelegate {
                                 ], replace: true)
                             } catch {
                                 rollback.pointee = true
-                                print(error)
+                                //print(error)
                             }
                         })
                         if self.showingLink != text {

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Chat/FormEditor.swift

@@ -318,7 +318,7 @@ class FormEditor: UIViewController {
 //                        ], replace: true)
 //                    } catch {
 //                        rollback.pointee = true
-//                        print(error)
+//                        //print(error)
 //                    }
 //                })
                 DispatchQueue.main.async {

+ 24 - 12
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/BackupRestoreView.swift

@@ -476,7 +476,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -492,7 +492,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -517,7 +517,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -542,7 +542,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -567,7 +567,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 recordSizeRestore += 1
             } catch {
                 rollback.pointee = true
-                print(error)
+                //print(error)
             }
         })
     }
@@ -643,7 +643,7 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 tableView.endUpdates()
             })
         } catch {
-            print(error)
+            //print(error)
             self.view.makeToast("Backup files are corrupted".localized(), duration: 0.5)
             DispatchQueue.global().async { [self] in
                 _ = Nexilis.write(message: CoreMessage_TMessageBank.getBackupRestored(option: optionBackup, fileid: fileIdBackup))
@@ -699,7 +699,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_message.write(to: file_message, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {
+                    //print(error)
+                }
             }
             
             //Make File UC_LIST
@@ -737,7 +739,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_uc_list.write(to: file_uc_list, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //Make File FORM_DATA
@@ -772,7 +776,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_form_data.write(to: file_form_data, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //Make File TASK_PIC
@@ -807,7 +813,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_task_pic.write(to: file_task_pic, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //Make File TASK_DETAIL
@@ -842,7 +850,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                 do {
                     try text_task_detail.write(to: file_task_detail, atomically: true, encoding: .utf8)
                 }
-                catch {print(error)}
+                catch {//print(error)
+                    
+                }
             }
             
             //ZIP ALL FILES
@@ -927,7 +937,9 @@ public class BackupRestoreView: UIViewController, UITableViewDataSource, UITable
                         }
                     }
                 })
-            } catch {print(error)}
+            } catch {
+                //print(error)
+            }
         })
     }
 

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/BroadcastMembersTableViewController.swift

@@ -161,7 +161,7 @@ class BroadcastMembersTableViewController: UITableViewController, UISearchContro
                     }
                 } catch {
                     rollback.pointee = true
-                    print(error)
+                    //print(error)
                 }
                 completion()
             })

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/ContactChatViewController.swift

@@ -13,7 +13,7 @@ import Toast_Swift
 class ContactChatViewController: UITableViewController {
     
     deinit {
-        print(#function, ">>>> TADAA")
+        //print(#function, ">>>> TADAA")
         NotificationCenter.default.removeObserver(self)
     }
     

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Control/QRScannerView.swift

@@ -66,7 +66,7 @@ extension QRScannerView {
         do {
             videoInput = try AVCaptureDeviceInput(device: videoCaptureDevice)
         } catch let error {
-            print(error)
+            //print(error)
             return
         }
         

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Streaming/CreateSeminarViewController.swift

@@ -73,7 +73,7 @@ public class CreateSeminarViewController: UITableViewController {
     }()
     
     deinit {
-        print(#function, ">>>> TADAA1")
+        //print(#function, ">>>> TADAA1")
         NotificationCenter.default.removeObserver(self)
         NotificationCenter.default.post(name: NSNotification.Name(rawValue: "refreshView"), object: nil, userInfo: nil)
     }

+ 1 - 1
appbuilder-ios/NexilisLite/NexilisLite/Source/View/Streaming/QmeraCreateStreamingViewController.swift

@@ -82,7 +82,7 @@ public class QmeraCreateStreamingViewController: UITableViewController {
     }()
     
     deinit {
-        print(#function, ">>>> TADAA1")
+        //print(#function, ">>>> TADAA1")
         NotificationCenter.default.removeObserver(self)
         NotificationCenter.default.post(name: NSNotification.Name(rawValue: "refreshView"), object: nil, userInfo: nil)
     }

+ 4 - 4
appbuilder-ios/NexilisLite/Podfile.lock

@@ -8,9 +8,9 @@ PODS:
     - MarqueeLabel (~> 4.3.0)
     - SnapKit (~> 5.6.0)
   - nuSDKService (1.0.0)
-  - SDWebImage (5.15.7):
-    - SDWebImage/Core (= 5.15.7)
-  - SDWebImage/Core (5.15.7)
+  - SDWebImage (5.15.8):
+    - SDWebImage/Core (= 5.15.8)
+  - SDWebImage/Core (5.15.8)
   - SnapKit (5.6.0)
   - SwiftLinkPreview (3.4.0)
   - Toast-Swift (5.0.1)
@@ -45,7 +45,7 @@ SPEC CHECKSUMS:
   MarqueeLabel: 02f5ac8fd6877c94564556cb93fa86c70c08baeb
   NotificationBannerSwift: dce54ded532b26e30cd8e7f4d80e124a0f2ba7d1
   nuSDKService: b92c0f1c47f502f808e4f4134881fcde687e46e9
-  SDWebImage: 25bac438318faf37e35650619ebc288a9061d292
+  SDWebImage: cb032eba469c54e0000e78bcb0a13cdde0a52798
   SnapKit: e01d52ebb8ddbc333eefe2132acf85c8227d9c25
   SwiftLinkPreview: c1bc5b2cb3cd42f2865137c1a61f5d788dcf5c9c
   Toast-Swift: 9b6a70f28b3bf0b96c40d46c0c4b9d6639846711