Warning, /network/kdeconnect-ios/KDE Connect/KDE Connect/Swift Backend/Device+Extensions.swift is written in an unsupported language. File is not indexed.

0001 /*
0002  * SPDX-FileCopyrightText: 2021 Lucas Wang <lucas.wang@tuta.io>
0003  * SPDX-FileCopyrightText: 2022 Claudio Cambra <claudio.cambra@gmail.com>
0004  *
0005  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006  */
0007 
0008 //
0009 //  Device+Extensions.swift
0010 //  KDE Connect
0011 //
0012 //  Created by Claudio Cambra on 25/5/22.
0013 //
0014 
0015 import Foundation
0016 
0017 extension Device {
0018     @objc
0019     @available(swift, obsoleted: 1.0, message: "Use 'DeviceType.current' instead")
0020     static var currentDeviceType: DeviceType {
0021         return DeviceType.current
0022     }
0023     
0024     // MARK: - Migration
0025     
0026     // This section contains code that keeps the project compiling, but
0027     // TODO: needs migration
0028     // swiftlint:disable identifier_name
0029 
0030     // Please always use the non-deprecated spelling if possible, and
0031     // follow the compiler warnings when ready to migrate existing code
0032     // after uncommenting lines containing `@available`
0033     
0034     // @available(*, deprecated, renamed: "plugins")
0035     var _plugins: [NetworkPackage.`Type`: Plugin] {
0036         plugins
0037     }
0038 
0039     // @available(*, deprecated, renamed: "pluginsEnableStatus")
0040     var _pluginsEnableStatus: [NetworkPackage.`Type`: NSNumber] {
0041         get {
0042             pluginsEnableStatus
0043         }
0044         set {
0045             pluginsEnableStatus = newValue
0046         }
0047     }
0048 }
0049 // swiftlint:enable identifier_name