Skip to content

Commit

Permalink
Use specific NCFPKAppGroupIdentifier bundle object instead of desktop…
Browse files Browse the repository at this point in the history
… client-only SocketApiPrefix
  • Loading branch information
claucambra committed Apr 21, 2024
1 parent 8802713 commit 3596deb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/NextcloudFileProviderKit/Utilities/LocalFiles.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import OSLog
fileprivate let lfuLogger = Logger(subsystem: Logger.subsystem, category: "localfileutils")

public func pathForAppGroupContainer() -> URL? {
guard
let appGroupIdentifier = Bundle.main.object(forInfoDictionaryKey: "SocketApiPrefix")
as? String
else {
guard let appGroupIdentifier = Bundle.main.object(
forInfoDictionaryKey: "NCFPKAppGroupIdentifier"
) as? String else {
lfuLogger.critical(
"Could not get container url as missing SocketApiPrefix info in app Info.plist")
"Could not get app group container url as Info.plist missing NCFPKAppGroupIdentifier!"
)
return nil
}

Expand Down

0 comments on commit 3596deb

Please sign in to comment.