Adds support for installing AltStore beta from AltStore

This commit is contained in:
Riley Testut
2019-09-12 13:04:15 -07:00
parent e3bf6d6239
commit 502a5488b0
5 changed files with 24 additions and 15 deletions

View File

@@ -84,6 +84,10 @@ class MyAppsViewController: UICollectionViewController
self.sideloadingProgressView.progressTintColor = .altRed
self.sideloadingProgressView.progress = 0
#if !BETA
self.navigationItem.leftBarButtonItem = nil
#endif
if let navigationBar = self.navigationController?.navigationBar
{
navigationBar.addSubview(self.sideloadingProgressView)
@@ -313,7 +317,10 @@ private extension MyAppsViewController
}
else
{
self.dataSource.predicate = NSPredicate(format: "%K == nil OR %K == NO", #keyPath(InstalledApp.storeApp), #keyPath(InstalledApp.storeApp.isBeta))
self.dataSource.predicate = NSPredicate(format: "%K == nil OR %K == NO OR %K == %@",
#keyPath(InstalledApp.storeApp),
#keyPath(InstalledApp.storeApp.isBeta),
#keyPath(InstalledApp.bundleIdentifier), StoreApp.altstoreAppID)
}
}
}