This file contains hidden or 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
| /* | |
| * Copyright (C) 2024 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| #include <iostream> | |
| #include <string> | |
| #include <stdio.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2024 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| #include <iostream> | |
| #include <string> | |
| #include <stdio.h> | |
| #include <sys/types.h> | |
| #include <sys/socket.h> |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2023 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| import Alamofire | |
| import Foundation | |
| import SwiftyJSON | |
| typealias DownloadComplete = () -> (); |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2023 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| import CoreBluetooth | |
| class BLE_Communicator: CBCentralManagerDelegate, CBPeripheralDelegate { | |
| //The UUID of your BLE device. |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2023 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| class TCP_Communicator: NSObject, StreamDelegate { | |
| var readStream: Unmanaged<CFReadStream>? | |
| var writeStream: Unmanaged<CFWriteStream>? | |
| var inputStream: InputStream? |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2023 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| import CoreLocation | |
| class Navigator: NSObject, CLLocationManagerDelegate { | |
| let locationManager = CLLocationManager(); |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2023 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| import CoreBluetooth | |
| class BLE_Communicator: CBCentralManagerDelegate, CBPeripheralDelegate { | |
| let DEVICE_SERVICE_UUID = CBUUID.init(string: "b4250400-fb4b-4746-b2b0-93f0e61122c6"); |
This file contains hidden or 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
| // swift-tools-version:4.0 | |
| /* | |
| * Copyright (C) 2023 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| import PackageDescription | |
| let package = Package( | |
| name: "SwiftCPP", //your project's name where the main.swift is stored. It is similar to the folder's name. |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2023 Recompile.me. | |
| * All rights reserved. | |
| */ | |
| // MARK: - Core Data stack | |
| @available(iOS 10.0, *) | |
| lazy var persistentContainer: NSPersistentContainer = { | |
| //goalpost.xcdatamodeld The name of the CoreData model | |
| let container = NSPersistentContainer(name: "goalpost") |