mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-16 18:23:53 +01:00
[AltServer] Adds method to fetch installed apps on devices
This commit is contained in:
29
AltServer/InstalledApp.swift
Normal file
29
AltServer/InstalledApp.swift
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// InstalledApp.swift
|
||||
// AltServer
|
||||
//
|
||||
// Created by Riley Testut on 5/25/21.
|
||||
// Copyright © 2021 Riley Testut. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
@objc(ALTInstalledApp) @objcMembers
|
||||
class InstalledApp: NSObject, MenuDisplayable
|
||||
{
|
||||
let name: String
|
||||
let bundleIdentifier: String
|
||||
let executableName: String
|
||||
|
||||
init?(dictionary: [String: Any])
|
||||
{
|
||||
guard let name = dictionary[kCFBundleNameKey as String] as? String,
|
||||
let bundleIdentifier = dictionary[kCFBundleIdentifierKey as String] as? String,
|
||||
let executableName = dictionary[kCFBundleExecutableKey as String] as? String
|
||||
else { return nil }
|
||||
|
||||
self.name = name
|
||||
self.bundleIdentifier = bundleIdentifier
|
||||
self.executableName = executableName
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user