-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: External links #1236
feat: External links #1236
Conversation
@@ -103,6 +103,18 @@ final class AppDelegate: UIResponder, UIApplicationDelegate { | |||
} | |||
application.registerForRemoteNotifications() | |||
|
|||
// swiftlint:disable force_try |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO remove
|
||
accessBlocked = try container.decode(Bool.self, forKey: .accessBlocked) | ||
} catch { | ||
// TODO: remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Remove
feat(Endpoint): Finish the external links endpoint implementation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some notes for me to review and for future reviewer.
kDrive/AppRouter.swift
Outdated
driveFileManager: DriveFileManager, | ||
apiFetcher: PublicShareApiFetcher | ||
) { | ||
// TODO: Present on top of existing views |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Navigation
|
||
// TODO: i18n | ||
let configuration = Configuration(selectAllSupported: false, | ||
rootTitle: "public share", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: i18n
return | ||
} | ||
|
||
// Only show loading indicator if we have nothing in cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess I can remove this one
@@ -26,6 +26,21 @@ import InfomaniakLogin | |||
import RealmSwift | |||
import SwiftRegex | |||
|
|||
// TODO: Move to core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: move to core, useful when dealing with many DBs
@@ -28,7 +28,7 @@ public enum RealmSchemaVersion { | |||
static let upload: UInt64 = 21 | |||
|
|||
/// Current version of the Drive Realm | |||
static let drive: UInt64 = 11 | |||
static let drive: UInt64 = 12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to bump for automatic migration / new entity fields
@@ -134,6 +134,14 @@ public final class DriveInfosManager: DriveInfosManagerQueryable { | |||
drive.sharedWithMe = sharedWithMe | |||
} | |||
|
|||
// TODO: Add a flag that this drive can be cleaned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Cleaning strategy for public share's Drive
@@ -182,6 +182,19 @@ public enum ConvertedType: String, CaseIterable { | |||
public static let ignoreThumbnailTypes = downloadableTypes | |||
} | |||
|
|||
/// Minimal data needed to query a PublicShare | |||
public struct PublicShareProxy { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe group all "proxy" types ?
|
||
public func getMetadata(driveId: Int, shareLinkUid: String) async throws -> PublicShareMetadata { | ||
let shareLinkInfoUrl = Endpoint.shareLinkInfo(driveId: driveId, shareLinkUid: shareLinkUid).url | ||
// TODO: Use authenticated token if availlable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: Make sure to send token to enable backend to redirect if needed.
85f0cc4
to
76bf4e0
Compare
|
Superseded by #1304 |
Abstract
Feature PR of the external links
Tasks so far:
FileListViewController
To do in sister PRs