Skip to content

Commit

Permalink
Merge pull request #77 from khipu/master
Browse files Browse the repository at this point in the history
removes some geolocation related prints
  • Loading branch information
VictorBeasKhipu authored Dec 30, 2024
2 parents 2090cfa + e1f8916 commit 7466637
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -eo pipefail
VERSION=$(grep -oE "s.version.*= *'[^']*'" KhipuClientIOS.podspec | grep -oE "'[^']*'" | tr -d "'")
VERSION=$(grep -oE "s.version.*= *'[^']*'" *.podspec | grep -oE "'[^']*'" | tr -d "'")
echo "Detected version: $VERSION"
git tag $VERSION
git push origin $VERSION
Expand Down
2 changes: 1 addition & 1 deletion KhipuClientIOS.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'KhipuClientIOS'
s.version = '2.9.0'
s.version = '2.9.1'
s.summary = 'A Client for iOS Apps written in Swift for Khipu'

s.description = <<-DESC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public class KhipuViewModel: ObservableObject {
longitude: longitude,
type: .geolocationResponse
)
print("Geolocation Response: \(try response.jsonString() ?? "Unable to convert to string")")

khipuSocketIOClient?.sendMessage(
type: MessageType.geolocationResponse.rawValue,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,8 @@ public class KhipuSocketIOClient {
let encryptedData = data.first as! String
let mid = data[1] as! String
let decryptedMessage = self.secureMessage.decrypt(cipherText: encryptedData, senderPublicKey: self.KHENSHIN_PUBLIC_KEY)
print("Decrypted GeolocationRequest message: \(decryptedMessage ?? "nil")")
do {
let geolocationRequest = try GeolocationRequest(decryptedMessage!)
print("Parsed geolocation request. Mandatory: \(geolocationRequest.mandatory ?? false)")
self.viewModel.uiState.currentMessageType = MessageType.geolocationRequest.rawValue
self.viewModel.handleGeolocationRequest()
} catch {
Expand Down

0 comments on commit 7466637

Please sign in to comment.