Merge branch 'develop' into patch/fix-widget

This commit is contained in:
Nythepegasus
2023-07-24 09:29:03 -04:00
committed by GitHub
7 changed files with 22 additions and 51 deletions

View File

@@ -33,8 +33,7 @@ final class DeactivateAppOperation: ResultOperation<InstalledApp>
if let error = self.context.error if let error = self.context.error
{ {
self.finish(.failure(error)) return self.finish(.failure(error))
return
} }
DatabaseManager.shared.persistentContainer.performBackgroundTask { (context) in DatabaseManager.shared.persistentContainer.performBackgroundTask { (context) in
@@ -43,19 +42,13 @@ final class DeactivateAppOperation: ResultOperation<InstalledApp>
let allIdentifiers = [installedApp.resignedBundleIdentifier] + appExtensionProfiles let allIdentifiers = [installedApp.resignedBundleIdentifier] + appExtensionProfiles
for profile in allIdentifiers { for profile in allIdentifiers {
var attempts = 5
while (attempts != 0){
print("Remove Provisioning profile attempts left: \(attempts)")
do { do {
try remove_provisioning_profile(profile) try remove_provisioning_profile(profile)
self.progress.completedUnitCount += 1 self.progress.completedUnitCount += 1
installedApp.isActive = false installedApp.isActive = false
return self.finish(.success(installedApp)) return self.finish(.success(installedApp))
} catch { } catch {
if (attempts == 0){
return self.finish(.failure(error)) return self.finish(.failure(error))
} else { attempts -= 1 }
}
} }
} }
} }

View File

@@ -44,17 +44,11 @@ final class RefreshAppOperation: ResultOperation<InstalledApp>
print("Sending refresh app request...") print("Sending refresh app request...")
for p in profiles { for p in profiles {
var attempts = 5
while (attempts != 0){
print("Install provisioning profile attempts left: \(attempts)")
do { do {
let bytes = p.value.data.toRustByteSlice() let bytes = p.value.data.toRustByteSlice()
try install_provisioning_profile(bytes.forRust()) try install_provisioning_profile(bytes.forRust())
} catch { } catch {
if (attempts == 0) {
return self.finish(.failure(error)) return self.finish(.failure(error))
} else { attempts -= 1 }
}
} }
self.progress.completedUnitCount += 1 self.progress.completedUnitCount += 1

View File

@@ -1,12 +0,0 @@
{
"images" : [
{
"filename" : "riley.jpg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

View File

@@ -1,12 +0,0 @@
{
"images" : [
{
"filename" : "shane.jpeg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

View File

@@ -4,6 +4,14 @@
"filename" : "1024.png", "filename" : "1024.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "1x" "scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
} }
], ],
"info" : { "info" : {