Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.
Improve GSA implementation and fix bugs
kabiroberai549966e94457
diff --git a/Supersign/GrandSlam/GrandSlamClient.swift b/Supersign/GrandSlam/GrandSlamClient.swiftindex f171d00..76ddd22 100644--- a/Supersign/GrandSlam/GrandSlamClient.swift+++ b/Supersign/GrandSlam/GrandSlamClient.swift@@ -55,7 +55,7 @@ class GrandSlamClient {request.configure(request: &urlRequest, deviceInfo: deviceInfo, anisetteData: anisetteData)URLSession.shared.dataTask(with: urlRequest) { data, response, error in- print(response)+ print(response.map(String.init(describing:)) ?? "NO RESPONSE")if let error = error {return completion(.failure(error))}diff --git a/Supersign/GrandSlam/Operations/GrandSlamAuthenticateOperation.swift b/Supersign/GrandSlam/Operations/GrandSlamAuthenticateOperation.swiftindex bfd9624..2e1520d 100644--- a/Supersign/GrandSlam/Operations/GrandSlamAuthenticateOperation.swift+++ b/Supersign/GrandSlam/Operations/GrandSlamAuthenticateOperation.swift@@ -123,9 +123,9 @@ class GrandSlamAuthenticateOperation {initResponse: GrandSlamAuthInitRequest.Decoder.Value,completion: @escaping (Result<GrandSlamLoginData, Swift.Error>) -> Void) {- let isS2K = initResponse.proto == .s2k+ let isS2K = initResponse.selectedProtocol == .s2khelper.addString(toNegProt: "|")- initResponse.proto.map { helper.addString(toNegProt: $0.rawValue) }+ helper.addString(toNegProt: initResponse.selectedProtocol.rawValue)let mDataRaw = helper.processChallenge(withUsername: username,diff --git a/Supersign/GrandSlam/Requests/Concrete/GrandSlamAuthInitRequest.swift b/Supersign/GrandSlam/Requests/Concrete/GrandSlamAuthInitRequest.swiftindex f8d0299..e8a55d9 100644--- a/Supersign/GrandSlam/Requests/Concrete/GrandSlamAuthInitRequest.swift+++ b/Supersign/GrandSlam/Requests/Concrete/GrandSlamAuthInitRequest.swift@@ -12,14 +12,14 @@ struct GrandSlamAuthInitRequest: GrandSlamOperationRequest {typealias Decoder = GrandSlamOperationDecoder<Value>struct Value: Decodable {- let proto: GrandSlamAuthProtocol?+ let selectedProtocol: GrandSlamAuthProtocollet cookie: Stringlet salt: Datalet iterations: Intlet bData: Dataprivate enum CodingKeys: String, CodingKey {- case proto = "sp"+ case selectedProtocol = "sp"case cookie = "c"case salt = "s"case iterations = "i"