mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 04:03:26 +01:00
[Shared] Updates CocoaPods dependencies
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,6 +5,8 @@
|
|||||||
# Xcode
|
# Xcode
|
||||||
#
|
#
|
||||||
|
|
||||||
|
Pods/
|
||||||
|
|
||||||
## Build generated
|
## Build generated
|
||||||
build/
|
build/
|
||||||
DerivedData
|
DerivedData
|
||||||
|
|||||||
@@ -149,19 +149,16 @@ private extension AppContentViewController
|
|||||||
}
|
}
|
||||||
dataSource.prefetchHandler = { (imageURL, indexPath, completionHandler) in
|
dataSource.prefetchHandler = { (imageURL, indexPath, completionHandler) in
|
||||||
return RSTAsyncBlockOperation() { (operation) in
|
return RSTAsyncBlockOperation() { (operation) in
|
||||||
let request = ImageRequest(url: imageURL as URL, processor: .screenshot)
|
let request = ImageRequest(url: imageURL as URL, processors: [.screenshot])
|
||||||
ImagePipeline.shared.loadImage(with: request, progress: nil, completion: { (response, error) in
|
ImagePipeline.shared.loadImage(with: request, progress: nil) { result in
|
||||||
guard !operation.isCancelled else { return operation.finish() }
|
guard !operation.isCancelled else { return operation.finish() }
|
||||||
|
|
||||||
if let image = response?.image
|
switch result
|
||||||
{
|
{
|
||||||
completionHandler(image, nil)
|
case .success(let response): completionHandler(response.image, nil)
|
||||||
|
case .failure(let error): completionHandler(nil, error)
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
completionHandler(nil, error)
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
||||||
|
|||||||
@@ -118,10 +118,11 @@ final class AppViewController: UIViewController
|
|||||||
{
|
{
|
||||||
imageView.isIndicatingActivity = true
|
imageView.isIndicatingActivity = true
|
||||||
|
|
||||||
Nuke.loadImage(with: self.app.iconURL, options: .shared, into: imageView, progress: nil) { [weak imageView] (response, error) in
|
Nuke.loadImage(with: self.app.iconURL, options: .shared, into: imageView, progress: nil) { [weak imageView] (result) in
|
||||||
if response?.image != nil
|
switch result
|
||||||
{
|
{
|
||||||
imageView?.isIndicatingActivity = false
|
case .success: imageView?.isIndicatingActivity = false
|
||||||
|
case .failure(let error): print("[ALTLog] Failed to load app icons.", error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,19 +53,16 @@ private extension BrowseCollectionViewCell
|
|||||||
}
|
}
|
||||||
dataSource.prefetchHandler = { (imageURL, indexPath, completionHandler) in
|
dataSource.prefetchHandler = { (imageURL, indexPath, completionHandler) in
|
||||||
return RSTAsyncBlockOperation() { (operation) in
|
return RSTAsyncBlockOperation() { (operation) in
|
||||||
let request = ImageRequest(url: imageURL as URL, processor: .screenshot)
|
let request = ImageRequest(url: imageURL as URL, processors: [.screenshot])
|
||||||
ImagePipeline.shared.loadImage(with: request, progress: nil, completion: { (response, error) in
|
ImagePipeline.shared.loadImage(with: request, progress: nil) { result in
|
||||||
guard !operation.isCancelled else { return operation.finish() }
|
guard !operation.isCancelled else { return operation.finish() }
|
||||||
|
|
||||||
if let image = response?.image
|
switch result
|
||||||
{
|
{
|
||||||
completionHandler(image, nil)
|
case .success(let response): completionHandler(response.image, nil)
|
||||||
|
case .failure(let error): completionHandler(nil, error)
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
completionHandler(nil, error)
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
||||||
|
|||||||
@@ -136,18 +136,15 @@ private extension BrowseViewController
|
|||||||
let iconURL = storeApp.iconURL
|
let iconURL = storeApp.iconURL
|
||||||
|
|
||||||
return RSTAsyncBlockOperation() { (operation) in
|
return RSTAsyncBlockOperation() { (operation) in
|
||||||
ImagePipeline.shared.loadImage(with: iconURL, progress: nil, completion: { (response, error) in
|
ImagePipeline.shared.loadImage(with: iconURL, progress: nil) { result in
|
||||||
guard !operation.isCancelled else { return operation.finish() }
|
guard !operation.isCancelled else { return operation.finish() }
|
||||||
|
|
||||||
if let image = response?.image
|
switch result
|
||||||
{
|
{
|
||||||
completionHandler(image, nil)
|
case .success(let response): completionHandler(response.image, nil)
|
||||||
|
case .failure(let error): completionHandler(nil, error)
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
completionHandler(nil, error)
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
||||||
|
|||||||
@@ -278,18 +278,15 @@ private extension MyAppsViewController
|
|||||||
guard let iconURL = installedApp.storeApp?.iconURL else { return nil }
|
guard let iconURL = installedApp.storeApp?.iconURL else { return nil }
|
||||||
|
|
||||||
return RSTAsyncBlockOperation() { (operation) in
|
return RSTAsyncBlockOperation() { (operation) in
|
||||||
ImagePipeline.shared.loadImage(with: iconURL, progress: nil, completion: { (response, error) in
|
ImagePipeline.shared.loadImage(with: iconURL, progress: nil) { result in
|
||||||
guard !operation.isCancelled else { return operation.finish() }
|
guard !operation.isCancelled else { return operation.finish() }
|
||||||
|
|
||||||
if let image = response?.image
|
switch result
|
||||||
{
|
{
|
||||||
completionHandler(image, nil)
|
case .success(let response): completionHandler(response.image, nil)
|
||||||
|
case .failure(let error): completionHandler(nil, error)
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
completionHandler(nil, error)
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
||||||
|
|||||||
@@ -158,18 +158,15 @@ private extension NewsViewController
|
|||||||
guard let imageURL = newsItem.imageURL else { return nil }
|
guard let imageURL = newsItem.imageURL else { return nil }
|
||||||
|
|
||||||
return RSTAsyncBlockOperation() { (operation) in
|
return RSTAsyncBlockOperation() { (operation) in
|
||||||
ImagePipeline.shared.loadImage(with: imageURL, progress: nil, completion: { (response, error) in
|
ImagePipeline.shared.loadImage(with: imageURL, progress: nil) { result in
|
||||||
guard !operation.isCancelled else { return operation.finish() }
|
guard !operation.isCancelled else { return operation.finish() }
|
||||||
|
|
||||||
if let image = response?.image
|
switch result
|
||||||
{
|
{
|
||||||
completionHandler(image, nil)
|
case .success(let response): completionHandler(response.image, nil)
|
||||||
|
case .failure(let error): completionHandler(nil, error)
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
completionHandler(nil, error)
|
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
dataSource.prefetchCompletionHandler = { (cell, image, indexPath, error) in
|
||||||
|
|||||||
@@ -140,16 +140,13 @@ private extension ErrorLogViewController
|
|||||||
}
|
}
|
||||||
else if let storeApp = loggedError.storeApp
|
else if let storeApp = loggedError.storeApp
|
||||||
{
|
{
|
||||||
ImagePipeline.shared.loadImage(with: storeApp.iconURL, progress: nil) { (response, error) in
|
ImagePipeline.shared.loadImage(with: storeApp.iconURL, progress: nil) { result in
|
||||||
guard !operation.isCancelled else { return operation.finish() }
|
guard !operation.isCancelled else { return operation.finish() }
|
||||||
|
|
||||||
if let image = response?.image
|
switch result
|
||||||
{
|
{
|
||||||
completion(image, nil)
|
case .success(let response): completion(response.image, nil)
|
||||||
}
|
case .failure(let error): completion(nil, error)
|
||||||
else
|
|
||||||
{
|
|
||||||
completion(nil, error)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ import Nuke
|
|||||||
|
|
||||||
struct ScreenshotProcessor: ImageProcessing
|
struct ScreenshotProcessor: ImageProcessing
|
||||||
{
|
{
|
||||||
func process(image: Image, context: ImageProcessingContext) -> Image?
|
var identifier: String { "io.altstore.ScreenshotProcessor" }
|
||||||
|
|
||||||
|
func process(_ image: PlatformImage) -> PlatformImage?
|
||||||
{
|
{
|
||||||
guard let cgImage = image.cgImage, image.size.width > image.size.height else { return image }
|
guard let cgImage = image.cgImage, image.size.width > image.size.height else { return image }
|
||||||
|
|
||||||
|
|||||||
41
Podfile
Normal file
41
Podfile
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
inhibit_all_warnings!
|
||||||
|
|
||||||
|
target 'AltStore' do
|
||||||
|
platform :ios, '14.0'
|
||||||
|
|
||||||
|
use_frameworks!
|
||||||
|
|
||||||
|
# Pods for AltStore
|
||||||
|
pod 'Nuke', '~> 10.0'
|
||||||
|
pod 'AppCenter', '~> 5.0'
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
target 'AltServer' do
|
||||||
|
platform :macos, '11'
|
||||||
|
|
||||||
|
use_frameworks!
|
||||||
|
|
||||||
|
# Pods for AltServer
|
||||||
|
pod 'STPrivilegedTask', :git => 'https://github.com/rileytestut/STPrivilegedTask.git'
|
||||||
|
pod 'Sparkle', '~> 2.3'
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
target 'AltStoreCore' do
|
||||||
|
platform :ios, '14.0'
|
||||||
|
|
||||||
|
use_frameworks!
|
||||||
|
|
||||||
|
# Pods for AltServer
|
||||||
|
pod 'KeychainAccess', '~> 4.2.0'
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
post_install do |installer|
|
||||||
|
installer.pods_project.targets.each do |target|
|
||||||
|
target.build_configurations.each do |config|
|
||||||
|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '14.0'
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
47
Podfile.lock
Normal file
47
Podfile.lock
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
PODS:
|
||||||
|
- AppCenter (5.0.1):
|
||||||
|
- AppCenter/Analytics (= 5.0.1)
|
||||||
|
- AppCenter/Crashes (= 5.0.1)
|
||||||
|
- AppCenter/Analytics (5.0.1):
|
||||||
|
- AppCenter/Core
|
||||||
|
- AppCenter/Core (5.0.1)
|
||||||
|
- AppCenter/Crashes (5.0.1):
|
||||||
|
- AppCenter/Core
|
||||||
|
- KeychainAccess (4.2.2)
|
||||||
|
- Nuke (10.7.1)
|
||||||
|
- Sparkle (2.3.2)
|
||||||
|
- STPrivilegedTask (1.0.7)
|
||||||
|
|
||||||
|
DEPENDENCIES:
|
||||||
|
- AppCenter (~> 5.0)
|
||||||
|
- KeychainAccess (~> 4.2.0)
|
||||||
|
- Nuke (~> 10.0)
|
||||||
|
- Sparkle (~> 2.3)
|
||||||
|
- STPrivilegedTask (from `https://github.com/rileytestut/STPrivilegedTask.git`)
|
||||||
|
|
||||||
|
SPEC REPOS:
|
||||||
|
trunk:
|
||||||
|
- AppCenter
|
||||||
|
- KeychainAccess
|
||||||
|
- Nuke
|
||||||
|
- Sparkle
|
||||||
|
|
||||||
|
EXTERNAL SOURCES:
|
||||||
|
STPrivilegedTask:
|
||||||
|
:git: https://github.com/rileytestut/STPrivilegedTask.git
|
||||||
|
|
||||||
|
CHECKOUT OPTIONS:
|
||||||
|
STPrivilegedTask:
|
||||||
|
:commit: 6ca513d0dcb2aefb0e5a95915b77bbbbd8a6d942
|
||||||
|
:git: https://github.com/rileytestut/STPrivilegedTask.git
|
||||||
|
|
||||||
|
SPEC CHECKSUMS:
|
||||||
|
AppCenter: 18153bb6bc4241d14c8cce57466ac1c88136b476
|
||||||
|
KeychainAccess: c0c4f7f38f6fc7bbe58f5702e25f7bd2f65abf51
|
||||||
|
Nuke: 279f17a599fd1c83cf51de5e0e1f2db143a287b0
|
||||||
|
Sparkle: b36a51855e81585a1c38e32e53101d36c00f4304
|
||||||
|
STPrivilegedTask: 56c3397238a1ec07720fb877a044898373cd2c68
|
||||||
|
|
||||||
|
PODFILE CHECKSUM: ca0ab842e91a672a9020d57cc032e765532a5163
|
||||||
|
|
||||||
|
COCOAPODS: 1.11.3
|
||||||
Reference in New Issue
Block a user