[cleanup]: Added TODOs in the comments

This commit is contained in:
Magesh K
2024-12-13 15:26:11 +05:30
parent 3ea24fdfea
commit d045c0ed4d
5 changed files with 6 additions and 5 deletions

View File

@@ -159,8 +159,8 @@ final class FetchSourceOperation: ResultOperation<Source>
userInfo[NSDebugDescriptionErrorKey] = pathDescription
}
// @mahee96: Need to account for invalid/missing json fields error
// and show meaningful message to user instead of just showing decoder error
// TODO: @mahee96: Need to account for invalid/missing json fields error
// and show meaningful message to user instead of just showing decoder error
throw NSError(domain: nsError.domain, code: nsError.code, userInfo: userInfo)
}

View File

@@ -12,7 +12,7 @@ import AltStoreCore
private extension URL
{
// @mahee96: update this to a non-branch specific (prod-ready) location like github.io repo similar to anisette servers URL list
// TODO: @mahee96: update this to a non-branch specific (prod-ready) location like github.io repo similar to anisette servers URL list
#if STAGING
// static let sources = URL(string: "https://raw.githubusercontent.com/SideStore/SideStore/develop/trustedapps.json")!
static let sources = URL(string: "https://raw.githubusercontent.com/SideStore/SideStore/rebase-2.0-wip/trustedapps.json")!

View File

@@ -126,7 +126,7 @@ private extension VerifyAppOperation
if let buildVersion
{
// @mahee96: requires altsign-marketplace branch release or equivalent
// TODO: @mahee96: requires altsign-marketplace branch release or equivalent
// guard buildVersion == app.buildVersion else { throw VerificationError.mismatchedBuildVersion(app.buildVersion, expectedVersion: buildVersion, app: app) }
}
}

View File

@@ -179,6 +179,7 @@ private extension SourcesViewController
func makeDataSource() -> RSTFetchedResultsCollectionViewPrefetchingDataSource<Source, UIImage>
{
// TODO: @mahee96: Need implementation to keep SideStore-Official source always on top
let fetchRequest = Source.fetchRequest() as NSFetchRequest<Source>
fetchRequest.returnsObjectsAsFaults = false
fetchRequest.sortDescriptors = [NSSortDescriptor(keyPath: \Source.name, ascending: true),

View File

@@ -140,7 +140,7 @@ public extension InstalledApp
self.resignedBundleIdentifier = resignedApp.bundleIdentifier
self.version = resignedApp.version
// @mahee96: requires altsign-marketplace branch release or equivalent
// TODO: @mahee96: requires altsign-marketplace branch release or equivalent
// self.buildVersion = resignedApp.buildVersion
self.storeBuildVersion = storeBuildVersion