mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
AltXPC uses the private com.apple.authkit.client.internal entitlement to retrieve anisette data.
25 lines
537 B
Swift
25 lines
537 B
Swift
//
|
|
// 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)
|
|
}
|
|
}
|