Anisette V3 (#324)

* initial anisette V3 implementation

* update V3 urls and log version

* fix crash where FetchAnisetteDataOperation.clientInfo would be nil when getting anisette V3 without provisioning first

* move adi.pb reset to its own button instead of doing it on sign out

* fallback to V1 if client_info fails

* make sure to unwrap optional strings

* feat(anisette): update v3 usage, improve error messages and names, report v3 errors to the user

* refactor(anisette): reduce duplicate JSON to anisette code

* fixes(anisette v3): improve errors, fix v3 server check, fix some edge cases where SideStore could crash and instead return an error, retry on -45061
This commit is contained in:
naturecodevoid
2023-05-18 01:30:18 -07:00
committed by GitHub
parent 45b6c3b338
commit ed2270ff46
8 changed files with 510 additions and 24 deletions

View File

@@ -77,6 +77,12 @@ public class Keychain
@KeychainItem(key: "patreonAccountID")
public var patreonAccountID: String?
@KeychainItem(key: "identifier")
public var identifier: String?
@KeychainItem(key: "adiPb")
public var adiPb: String?
private init()
{
}

View File

@@ -42,6 +42,7 @@ public extension UserDefaults
@NSManaged var patronsRefreshID: String?
@NSManaged var trustedSourceIDs: [String]?
@NSManaged var trustedServerURL: String?
var activeAppsLimit: Int? {
get {