mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 00:33:28 +01:00
[AltXPC] Initial version
AltXPC uses the private com.apple.authkit.client.internal entitlement to retrieve anisette data.
This commit is contained in:
24
AltXPC/AltXPC.swift
Normal file
24
AltXPC/AltXPC.swift
Normal file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// AltXPC.swift
|
||||
// AltXPC
|
||||
//
|
||||
// Created by Riley Testut on 12/3/20.
|
||||
// Copyright © 2020 Riley Testut. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
@objc(AltXPC)
|
||||
class AltXPC: NSObject, AltXPCProtocol
|
||||
{
|
||||
func ping(_ completionHandler: @escaping () -> Void)
|
||||
{
|
||||
completionHandler()
|
||||
}
|
||||
|
||||
func requestAnisetteData(completionHandler: @escaping (ALTAnisetteData?, Error?) -> Void)
|
||||
{
|
||||
let anisetteData = ALTPluginService.shared.requestAnisetteData()
|
||||
completionHandler(anisetteData, nil)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user