Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
66ef234
[AltServer] Fixes wireless devices not appearing in devices list
rileytestut Nov 12, 2020
193a05f
[AltPlugin] Supports macOS 11.1
rileytestut Dec 2, 2020
7c912c2
Updates AltSign dependency
rileytestut Dec 3, 2020
24a0d7e
[AltPlugin] Updates version to 1.2
rileytestut Dec 3, 2020
2869e28
[AltServer] Updates AltPlugin to 1.2
rileytestut Dec 2, 2020
4389676
Updates pods, fixes Sparkle on Apple Silicon Macs
rileytestut Dec 3, 2020
8ed03f0
Fixes apps crashing due to outdated WWDR intermediate certificate
rileytestut Jan 29, 2021
f3b0c6a
[AltPlugin] Supports macOS 11.2
rileytestut Jan 30, 2021
5720811
[AltPlugin] Updates version to 1.3
rileytestut Jan 30, 2021
82c5f17
[AltServer] Updates AltPlugin to 1.3
rileytestut Jan 30, 2021
4731e00
[AltServer] Changes AltStore download URL for BETA builds
rileytestut Feb 1, 2021
3c99cdf
[AltServer] Fixes compilation errors
rileytestut Feb 1, 2021
01830a1
Fixes apps crashing on iOS 13
rileytestut Feb 1, 2021
d661761
Fixes apps crashing for some Apple IDs
rileytestut Feb 2, 2021
893f48b
[AltServer] Updates app version to 1.4.3
rileytestut Feb 2, 2021
953d795
Fixes “Device already registered with this team” error
rileytestut Feb 26, 2021
5fda561
[AltServer] Updates app version to 1.4.4
rileytestut Mar 1, 2021
d841b90
[AltServer] Updates AltStore download URLs to use Cloudflare CDN
rileytestut Mar 5, 2021
c2011a2
[AltPlugin] Supports macOS 11.4
rileytestut May 25, 2021
ff024f8
[AltPlugin] Updates version to 1.4
rileytestut May 25, 2021
8536c07
[AltServer] Updates AltPlugin to 1.4
rileytestut May 25, 2021
5bae115
[AltServer] Updates app version to 1.4.5
rileytestut May 25, 2021
bc18a1e
info.plist
eiygy Jul 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 42 additions & 1 deletion AltPlugin/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2019 Riley Testut. All rights reserved.</string>
<key>NSPrincipalClass</key>
Expand Down Expand Up @@ -62,5 +62,46 @@
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.10PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.1PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.2PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.3PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.4PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.5PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.6PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.7PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.8PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
<key>Supported11.9PluginCompatibilityUUIDs</key>
<array>
<string>D985F0E4-3BBC-4B95-BBA1-12056AC4A531</string>
</array>
</dict>
</plist>

Binary file modified AltServer/AltPlugin.zip
Binary file not shown.
10 changes: 9 additions & 1 deletion AltServer/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ import AltSign

import LaunchAtLogin

#if STAGING
private let altstoreAppURL = URL(string: "https://f000.backblazeb2.com/file/altstore-staging/altstore.ipa")!
#elseif BETA
private let altstoreAppURL = URL(string: "https://cdn.altstore.io/file/altstore/altstore-beta.ipa")!
#else
private let altstoreAppURL = URL(string: "https://cdn.altstore.io/file/altstore/altstore.ipa")!
#endif

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

Expand Down Expand Up @@ -259,7 +267,7 @@ extension AppDelegate: NSMenuDelegate
{
guard menu == self.appMenu else { return }

self.connectedDevices = ALTDeviceManager.shared.connectedDevices
self.connectedDevices = ALTDeviceManager.shared.availableDevices

self.launchAtLoginMenuItem.target = self
self.launchAtLoginMenuItem.action = #selector(AppDelegate.toggleLaunchAtLogin(_:))
Expand Down
6 changes: 3 additions & 3 deletions AltServer/Devices/ALTDeviceManager+Installation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ To prevent this from happening, feel free to try again with another Apple ID to

func register(_ device: ALTDevice, team: ALTTeam, session: ALTAppleAPISession, completionHandler: @escaping (Result<ALTDevice, Error>) -> Void)
{
ALTAppleAPI.shared.fetchDevices(for: team, session: session) { (devices, error) in
ALTAppleAPI.shared.fetchDevices(for: team, types: .all, session: session) { (devices, error) in
do
{
let devices = try Result(devices, error).get()
Expand All @@ -663,7 +663,7 @@ To prevent this from happening, feel free to try again with another Apple ID to
}
else
{
ALTAppleAPI.shared.registerDevice(name: device.name, identifier: device.identifier, team: team, session: session) { (device, error) in
ALTAppleAPI.shared.registerDevice(name: device.name, identifier: device.identifier, type: .iphone, team: team, session: session) { (device, error) in
completionHandler(Result(device, error))
}
}
Expand All @@ -677,7 +677,7 @@ To prevent this from happening, feel free to try again with another Apple ID to

func fetchProvisioningProfile(for appID: ALTAppID, team: ALTTeam, session: ALTAppleAPISession, completionHandler: @escaping (Result<ALTProvisioningProfile, Error>) -> Void)
{
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, team: team, session: session) { (profile, error) in
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, deviceType: .iphone, team: team, session: session) { (profile, error) in
completionHandler(Result(profile, error))
}
}
Expand Down
8 changes: 4 additions & 4 deletions AltServer/PluginManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ struct PluginVersion
sha256Hash: "070e9b7e1f74e7a6474d36253ab5a3623ff93892acc9e1043c3581f2ded12200",
version: "1.0")

static let v1_1 = PluginVersion(url: Bundle.main.url(forResource: "AltPlugin", withExtension: "zip")!,
sha256Hash: "cd1e8c85cbb1935d2874376566671f3c5823101d4933fc6ee63bab8b2a37f800",
version: "1.1")
static let v1_4 = PluginVersion(url: Bundle.main.url(forResource: "AltPlugin", withExtension: "zip")!,
sha256Hash: "0bad93932228dd8c1a53e12f6a33b7663fb1ac060bd0bd7d784bd8fe9d6ffd09",
version: "1.4")
}

class PluginManager
Expand All @@ -75,7 +75,7 @@ class PluginManager
private var preferredVersion: PluginVersion {
if #available(macOS 11, *)
{
return .v1_1
return .v1_4
}
else
{
Expand Down
31 changes: 10 additions & 21 deletions AltStore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,6 @@
remoteGlobalIDString = BF989166250AABF3002ACF50;
remoteInfo = AltWidgetExtension;
};
BFBFFB262380C72F00993A4A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFD247622284B9A500981D42 /* Project object */;
proxyType = 1;
remoteGlobalIDString = BF5C5FC4237DF5AE00EDD0C6;
remoteInfo = AltPlugin;
};
BFF615AA2510042B00484D3B /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = BFD247622284B9A500981D42 /* Project object */;
Expand Down Expand Up @@ -1724,7 +1717,6 @@
buildRules = (
);
dependencies = (
BFBFFB272380C72F00993A4A /* PBXTargetDependency */,
BF4588452298D48B00BD7491 /* PBXTargetDependency */,
);
name = AltServer;
Expand Down Expand Up @@ -2450,11 +2442,6 @@
target = BF989166250AABF3002ACF50 /* AltWidgetExtension */;
targetProxy = BF989175250AABF4002ACF50 /* PBXContainerItemProxy */;
};
BFBFFB272380C72F00993A4A /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = BF5C5FC4237DF5AE00EDD0C6 /* AltPlugin */;
targetProxy = BFBFFB262380C72F00993A4A /* PBXContainerItemProxy */;
};
BFF615AB2510042B00484D3B /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = BF66EE7D2501AE50007EE018 /* AltStoreCore */;
Expand Down Expand Up @@ -2593,7 +2580,7 @@
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 40;
CURRENT_PROJECT_VERSION = 52;
DEVELOPMENT_TEAM = 6XVY5G3U44;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -2626,7 +2613,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14.4;
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.5;
PRODUCT_BUNDLE_IDENTIFIER = com.rileytestut.AltServer;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
Expand All @@ -2646,7 +2633,7 @@
CODE_SIGN_IDENTITY = "Mac Developer";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 40;
CURRENT_PROJECT_VERSION = 52;
DEVELOPMENT_TEAM = 6XVY5G3U44;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -2679,7 +2666,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14.4;
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 1.4.5;
PRODUCT_BUNDLE_IDENTIFIER = com.rileytestut.AltServer;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
Expand Down Expand Up @@ -2811,6 +2798,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = AltPlugin/Info.plist;
INSTALL_PATH = "$(HOME)/Library/Mail/Bundles/";
Expand All @@ -2822,11 +2810,11 @@
"/Users/Riley/Library/Developer/Xcode/DerivedData/AltStore-bhqnkrahfutztzeudtxhcxccgtlo/Build/Products/Debug",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 1.1;
MARKETING_VERSION = 1.4;
PRODUCT_BUNDLE_IDENTIFIER = com.rileytestut.AltPlugin;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SKIP_INSTALL = NO;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
WRAPPER_EXTENSION = mailbundle;
Expand All @@ -2841,6 +2829,7 @@
CODE_SIGN_IDENTITY = "-";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = AltPlugin/Info.plist;
INSTALL_PATH = "$(HOME)/Library/Mail/Bundles/";
Expand All @@ -2852,11 +2841,11 @@
"/Users/Riley/Library/Developer/Xcode/DerivedData/AltStore-bhqnkrahfutztzeudtxhcxccgtlo/Build/Products/Debug",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 1.1;
MARKETING_VERSION = 1.4;
PRODUCT_BUNDLE_IDENTIFIER = com.rileytestut.AltPlugin;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SKIP_INSTALL = YES;
SKIP_INSTALL = NO;
SWIFT_VERSION = 5.0;
WRAPPER_EXTENSION = mailbundle;
};
Expand Down
4 changes: 2 additions & 2 deletions AltStore/Operations/AuthenticationOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ private extension AuthenticationOperation
return completionHandler(.failure(OperationError.unknownUDID))
}

ALTAppleAPI.shared.fetchDevices(for: team, session: session) { (devices, error) in
ALTAppleAPI.shared.fetchDevices(for: team, types: [.iphone, .ipad], session: session) { (devices, error) in
do
{
let devices = try Result(devices, error).get()
Expand All @@ -593,7 +593,7 @@ private extension AuthenticationOperation
}
else
{
ALTAppleAPI.shared.registerDevice(name: UIDevice.current.name, identifier: udid, team: team, session: session) { (device, error) in
ALTAppleAPI.shared.registerDevice(name: UIDevice.current.name, identifier: udid, type: .iphone, team: team, session: session) { (device, error) in
completionHandler(Result(device, error))
}
}
Expand Down
8 changes: 4 additions & 4 deletions AltStore/Operations/FetchProvisioningProfilesOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ extension FetchProvisioningProfilesOperation

#if DEBUG

if app.bundleIdentifier.hasPrefix(StoreApp.altstoreAppID) || StoreApp.alternativeAltStoreAppIDs.contains(where: app.bundleIdentifier.hasPrefix)
if app.isAltStoreApp
{
// Use legacy bundle ID format for AltStore.
preferredBundleID = "com.\(team.identifier).\(app.bundleIdentifier)"
Expand Down Expand Up @@ -178,7 +178,7 @@ extension FetchProvisioningProfilesOperation
let parentBundleID = parentApp?.bundleIdentifier ?? app.bundleIdentifier
let updatedParentBundleID: String

if app.bundleIdentifier.hasPrefix(StoreApp.altstoreAppID) || StoreApp.alternativeAltStoreAppIDs.contains(where: app.bundleIdentifier.hasPrefix)
if app.isAltStoreApp
{
// Use legacy bundle ID format for AltStore (and its extensions).
updatedParentBundleID = "com.\(team.identifier).\(parentBundleID)"
Expand Down Expand Up @@ -463,7 +463,7 @@ extension FetchProvisioningProfilesOperation

func fetchProvisioningProfile(for appID: ALTAppID, team: ALTTeam, session: ALTAppleAPISession, completionHandler: @escaping (Result<ALTProvisioningProfile, Error>) -> Void)
{
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, team: team, session: session) { (profile, error) in
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, deviceType: .iphone, team: team, session: session) { (profile, error) in
switch Result(profile, error)
{
case .failure(let error): completionHandler(.failure(error))
Expand All @@ -477,7 +477,7 @@ extension FetchProvisioningProfilesOperation
case .success:

// Fetch new provisiong profile
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, team: team, session: session) { (profile, error) in
ALTAppleAPI.shared.fetchProvisioningProfile(for: appID, deviceType: .iphone, team: team, session: session) { (profile, error) in
completionHandler(Result(profile, error))
}
}
Expand Down
2 changes: 1 addition & 1 deletion AltStore/Operations/ResignAppOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private extension ResignAppOperation

var additionalValues: [String: Any] = [Bundle.Info.urlTypes: allURLSchemes]

if self.context.bundleIdentifier == StoreApp.altstoreAppID || StoreApp.alternativeAltStoreAppIDs.contains(self.context.bundleIdentifier)
if app.isAltStoreApp
{
guard let udid = Bundle.main.object(forInfoDictionaryKey: Bundle.Info.deviceID) as? String else { throw OperationError.unknownUDID }
additionalValues[Bundle.Info.deviceID] = udid
Expand Down
3 changes: 0 additions & 3 deletions AltStoreCore/Model/StoreApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ public extension StoreApp
{
#if ALPHA
static let altstoreAppID = "com.rileytestut.AltStore.Alpha"
static let alternativeAltStoreAppIDs: Set<String> = ["com.rileytestut.AltStore", "com.rileytestut.AltStore.Beta"]
#elseif BETA
static let altstoreAppID = "com.rileytestut.AltStore.Beta"
static let alternativeAltStoreAppIDs: Set<String> = ["com.rileytestut.AltStore", "com.rileytestut.AltStore.Alpha"]
#else
static let altstoreAppID = "com.rileytestut.AltStore"
static let alternativeAltStoreAppIDs: Set<String> = ["com.rileytestut.AltStore.Beta", "com.rileytestut.AltStore.Alpha"]
#endif

static let dolphinAppID = "me.oatmealdome.dolphinios-njb"
Expand Down
22 changes: 11 additions & 11 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
PODS:
- AppCenter (3.1.0):
- AppCenter/Analytics (= 3.1.0)
- AppCenter/Crashes (= 3.1.0)
- AppCenter/Analytics (3.1.0):
- AppCenter (3.1.1):
- AppCenter/Analytics (= 3.1.1)
- AppCenter/Crashes (= 3.1.1)
- AppCenter/Analytics (3.1.1):
- AppCenter/Core
- AppCenter/Core (3.1.0)
- AppCenter/Crashes (3.1.0):
- AppCenter/Core (3.1.1)
- AppCenter/Crashes (3.1.1):
- AppCenter/Core
- KeychainAccess (4.2.1)
- Nuke (7.6.3)
- Sparkle (1.21.3)
- Sparkle (1.24.0)
- STPrivilegedTask (1.0.7)

DEPENDENCIES:
Expand All @@ -32,16 +32,16 @@ EXTERNAL SOURCES:

CHECKOUT OPTIONS:
STPrivilegedTask:
:commit: c8dd3e41b23666d4010c86b052a921a8e5a320d0
:commit: 6ca513d0dcb2aefb0e5a95915b77bbbbd8a6d942
:git: https://github.com/rileytestut/STPrivilegedTask.git

SPEC CHECKSUMS:
AppCenter: a1c30c47b7882a04a615ffa5ab26c007326436d8
AppCenter: 513d32888854d67d8cfbd3a8db16aeb5fb2e2a75
KeychainAccess: 9b07f665298d13c3a85881bd3171f6f49b8151c1
Nuke: 44130e95e09463f8773ae4b96b90de1eba6b3350
Sparkle: 3f75576db8b0265adef36c43249d747f22d0b708
Sparkle: 270cd27377bf04e9c128af06e3a22d0f572d6ee3
STPrivilegedTask: 56c3397238a1ec07720fb877a044898373cd2c68

PODFILE CHECKSUM: 6e3f9d2fc666262d43ff8079a3f9149b8f3376ee

COCOAPODS: 1.8.4
COCOAPODS: 1.10.0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading