Skip to content

Commit

Permalink
added error handling todo
Browse files Browse the repository at this point in the history
  • Loading branch information
krisbitney committed Dec 6, 2023
1 parent a9dd7bf commit 36a43b4
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
6 changes: 3 additions & 3 deletions iosApp/iosApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -379,7 +379,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
DEVELOPMENT_TEAM = "${TEAM_ID}";
DEVELOPMENT_TEAM = W5BLLMS977;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = iosApp/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Yuli;
Expand Down Expand Up @@ -407,7 +407,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\"";
DEVELOPMENT_TEAM = "${TEAM_ID}";
DEVELOPMENT_TEAM = W5BLLMS977;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = iosApp/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = Yuli;
Expand Down
2 changes: 1 addition & 1 deletion iosApp/iosApp/iOSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ struct iOSApp: App {
ContentView()
}
}
}
}
22 changes: 21 additions & 1 deletion shared/src/commonMain/kotlin/io.github.krisbitney.yuli/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,24 @@ fun App(component: YuliRoot) {
// TODO: setting: clear former follows
// TODO: setting: dark mode
// TODO: setting: data update interval
// TODO: setting: use default portrait instead of own pic, or allow upload pic
// TODO: setting: use default portrait instead of own pic, or allow upload pic

// TODO: Swiftagram errors are in form "[message] /n (Swiftagram.Authenticator.Error error 6.)"

// An `enum` listing some authentication-specific errors.
//enum Error: Swift.Error {
// /// Generic error.
// case generic(String)
// /// Invalid cookies.
// case invalidCookies([HTTPCookie])
// /// Invalid password.
// case invalidPassword
// /// Invalid response.
// case invalidResponse(URLResponse)
// /// Invalid URL.
// case invalidURL
// /// Invalid username.
// case invalidUsername
// /// Two factor authentication challenge.
// case twoFactorChallenge(TwoFactor)
//}

0 comments on commit 36a43b4

Please sign in to comment.