Skip to content

Commit

Permalink
bugfix: sort url schemes
Browse files Browse the repository at this point in the history
Signed-off-by: 82Flex <82flex@gmail.com>
  • Loading branch information
Lessica committed Jul 2, 2024
1 parent ad13459 commit 9d02e27
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"originHash" : "a29c992afcf56d36a4d1bf2075cfa31e1b057b95896935cd41fea7f1fc56f465",
"pins" : [
{
"identity" : "colorfulx",
"kind" : "remoteSourceControl",
"location" : "https://github.com/Lakr233/ColorfulX.git",
"state" : {
"revision" : "082f35954737a78389baa65300a1090ae4371a4e",
"version" : "2.3.2"
"revision" : "d858d5cd91b5717910d40cb2e02ae55e891c640b",
"version" : "2.6.2"
}
},
{
Expand All @@ -32,28 +33,28 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-argument-parser.git",
"state" : {
"revision" : "c8ed701b513cf5177118a175d85fbbbcd707ab41",
"version" : "1.3.0"
"revision" : "0fbc8848e389af3bb55c182bc19ca9d5dc2f255b",
"version" : "1.4.0"
}
},
{
"identity" : "swift-collections",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-collections.git",
"state" : {
"revision" : "d029d9d39c87bed85b1c50adee7c41795261a192",
"version" : "1.0.6"
"revision" : "ee97538f5b81ae89698fd95938896dec5217b148",
"version" : "1.1.1"
}
},
{
"identity" : "zipfoundation",
"kind" : "remoteSourceControl",
"location" : "https://github.com/weichsel/ZIPFoundation.git",
"state" : {
"revision" : "b979e8b52c7ae7f3f39fa0182e738e9e7257eb78",
"version" : "0.9.18"
"revision" : "02b6abe5f6eef7e3cbd5f247c5cc24e246efcfe0",
"version" : "0.9.19"
}
}
],
"version" : 2
"version" : 3
}
6 changes: 3 additions & 3 deletions Reveil/DataModels/Presets/SecurityPresets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,9 @@ struct SecurityPresets: Codable {
URLSchemeItem(scheme: "ssh://", description: "SSH"),
URLSchemeItem(scheme: "santander://", description: "Santander"), // Santander File Manager (https://github.com/NSAntoine/Santander)
URLSchemeItem(scheme: "filza://", description: "Filza"),
URLSchemeItem(scheme: "db-lmvo0l08204d0a0://", description: "Filza"),
URLSchemeItem(scheme: "boxsdk-810yk37nbrpwaee5907xc4iz8c1ay3my://", description: "Filza"),
URLSchemeItem(scheme: "com.googleusercontent.apps.802910049260-0hf6uv6nsj21itl94v66tphcqnfl172r://", description: "Filza"),
URLSchemeItem(scheme: "db-lmvo0l08204d0a0://", description: "Filza (Dropbox)"),
URLSchemeItem(scheme: "boxsdk-810yk37nbrpwaee5907xc4iz8c1ay3my://", description: "Filza (Dropbox SDK)"),
URLSchemeItem(scheme: "com.googleusercontent.apps.802910049260-0hf6uv6nsj21itl94v66tphcqnfl172r://", description: "Filza (Google Drive)"),
URLSchemeItem(scheme: "activator://", description: "Activator"),
]

Expand Down
6 changes: 5 additions & 1 deletion Reveil/DataModels/Presets/URLSchemeItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@

import Foundation

struct URLSchemeItem: Codable {
struct URLSchemeItem: Comparable, Codable, Hashable {
static func < (lhs: URLSchemeItem, rhs: URLSchemeItem) -> Bool {
lhs.description < rhs.description
}

let scheme: String
let description: String
}
2 changes: 2 additions & 0 deletions Reveil/SecuritySuite/JailbreakChecker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Foundation
import MachO // dyld
import ObjectiveC // NSObject and Selector
import UIKit
import OrderedCollections

enum JailbreakChecker {
struct JailbreakStatus: Codable {
Expand Down Expand Up @@ -97,6 +98,7 @@ enum JailbreakChecker {
}
return false
}
.sorted()
}

// "cydia://" URL scheme has been removed. Turns out there is app in the official App Store
Expand Down

0 comments on commit 9d02e27

Please sign in to comment.