This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Build | |
import SwiftUI | |
import KeychainClient | |
import SettingsFeature | |
import UserDefaultsClient | |
import GenericPassFeature | |
import AuthenticationCore | |
import NotificationHelpers | |
import ECardifySharedModels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct PassContent: Codable, Equatable { | |
public var headerFields: [Field]? | |
public var primaryFields: [Field] | |
public var secondaryFields: [Field]? | |
public var auxiliaryFields: [Field]? | |
public var backFields: [Field]? | |
public init( | |
headerFields: [Field]? = nil, | |
primaryFields: [Field], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func generateKey(directory: String, on eventLoop: EventLoop) -> EventLoopFuture<Void> { | |
let keyPath = directory + "key.pem" | |
return Process.asyncExecute("openssl", | |
"pkcs12", | |
"-in", | |
certificatePath, | |
"-nocerts", | |
"-out", | |
keyPath, | |
"-passin", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@testable import App | |
import XCTVapor | |
import XCTest | |
import BSON | |
import VaporRouting | |
import LPGSharedModels | |
final class SwapsTests: AppTests { | |
func testCreateSwap() async throws { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Swap: View { | |
var body: some View { | |
VStack { | |
ForEach(0..<3, id: \.self) { contact in | |
VStack { | |
HStack(spacing: 0) { | |
Image("p1") | |
.resizable() | |
.scaledToFit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2023-03-10 09:45:45.562601+0000 Addame[69970:2222175] [webSocket.reducer] /Users/alif/Developer/Swift/AddaMe/IOS/Addame/AddameSPM/Sources/WebSocketReducer/WebSocketReducer.swift 120 The operation couldn’t be completed. Socket is not connected | |
received action: | |
AppReducer.Action.tab( | |
TabReducer.Action.webSocketReducer( | |
WebSocketReducer.Action.receivedSocketMessage( | |
TaskResult.failure( | |
NSError( | |
domain: "NSPOSIXErrorDomain", | |
code: 57, | |
userInfo: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Routes | |
func routes(_ app: Application) throws { | |
.... | |
try app.group("v1") { api in | |
let chat = api.grouped("chat") | |
let webSocketController = ChatHandle.init(chatClients: .init()) | |
try chat.register(collection: ChatController(wsController: webSocketController) ) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AttachmentClient.swift | |
// | |
// | |
// Created by Saroar Khandoker on 27.01.2021. | |
// | |
import Combine | |
import Foundation | |
import AddaSharedModels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Vapor | |
import MongoKitten | |
import Fluent | |
import JWT | |
import AddaSharedModels | |
public func eventsHandler( | |
request: Request, | |
route: EventsRoute | |
) async throws -> AsyncResponseEncodable { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------- | |
Translated Report (Full Report Below) | |
------------------------------------- | |
Incident Identifier: D2C43911-AC83-4C40-AFA6-26901B26DC4B | |
CrashReporter Key: 92F44765-FDC5-C9C4-54FE-7188168CCA61 | |
Hardware Model: MacBookPro18,3 | |
Process: XCPreviewAgent [60903] | |
Path: /Users/USER/Library/Developer/Xcode/UserData/Previews/Simulator Devices/4EF177FA-49E9-4128-B9ED-F1ECB3362C56/data/Containers/Bundle/Application/D0E9A464-F846-428B-8BC6-628A53CF86E1/XCPreviewAgent.app/XCPreviewAgent | |
Identifier: com.apple.dt.XCPreviewAgent |