Skip to content

Commit

Permalink
v1.4.2(62)
Browse files Browse the repository at this point in the history
Add Files backend.(open selected folder in Files.app) closed #2
  • Loading branch information
lithium0003 committed Dec 2, 2019
1 parent 904ff14 commit 7729c36
Show file tree
Hide file tree
Showing 18 changed files with 982 additions and 48 deletions.
4 changes: 4 additions & 0 deletions RemoteCloud/RemoteCloud.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
3FA46CE223849615007ACC82 /* FileCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FA46CE123849615007ACC82 /* FileCache.swift */; };
3FA46CE5238496B7007ACC82 /* cache.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 3FA46CE3238496B7007ACC82 /* cache.xcdatamodeld */; };
3FAF14D32387131F0052AFAB /* WebDAVStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FAF14D22387131F0052AFAB /* WebDAVStorage.swift */; };
3FE215882394F39300CD2A19 /* FilesStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FE215872394F39300CD2A19 /* FilesStorage.swift */; };
3FE23B1F2340B96200916DA6 /* UploadManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FE23B1E2340B96200916DA6 /* UploadManager.swift */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -72,6 +73,7 @@
3FA46CE123849615007ACC82 /* FileCache.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileCache.swift; sourceTree = "<group>"; };
3FA46CE4238496B7007ACC82 /* cache.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = cache.xcdatamodel; sourceTree = "<group>"; };
3FAF14D22387131F0052AFAB /* WebDAVStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WebDAVStorage.swift; sourceTree = "<group>"; };
3FE215872394F39300CD2A19 /* FilesStorage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FilesStorage.swift; sourceTree = "<group>"; };
3FE23B1E2340B96200916DA6 /* UploadManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UploadManager.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -164,6 +166,7 @@
3C400921224190920028A45A /* OneDriveStorage.swift */,
3F3ABABC2273119D002A8D16 /* pCloudStorage.swift */,
3FAF14D22387131F0052AFAB /* WebDAVStorage.swift */,
3FE215872394F39300CD2A19 /* FilesStorage.swift */,
);
path = Storages;
sourceTree = "<group>";
Expand Down Expand Up @@ -288,6 +291,7 @@
3FA46CE223849615007ACC82 /* FileCache.swift in Sources */,
3CA2C951223495E700481DB5 /* RemoteStorage.swift in Sources */,
3C14C452225CE19E0044E4A7 /* CueSheet.swift in Sources */,
3FE215882394F39300CD2A19 /* FilesStorage.swift in Sources */,
3C0654A122384BED003BD932 /* CryptCarotDAV.swift in Sources */,
3C40091E22413C340028A45A /* DropBoxStorage.swift in Sources */,
3F3ABABD2273119D002A8D16 /* pCloudStorage.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "files3.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "files2.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "files1.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions RemoteCloud/RemoteCloud/RemoteStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import CoreData

public enum CloudStorages: CaseIterable {
case Local
case Files
case DropBox
case GoogleDrive
case OneDrive
Expand Down Expand Up @@ -258,6 +259,8 @@ public class CloudFactory {
return UIImage(named: "cryptomator", in: Bundle(for: type(of: self)), compatibleWith: nil)
case .Local:
return UIImage(named: "local", in: Bundle(for: type(of: self)), compatibleWith: nil)
case .Files:
return UIImage(named: "files", in: Bundle(for: type(of: self)), compatibleWith: nil)
}
}

Expand All @@ -281,6 +284,8 @@ public class CloudFactory {
return "Cryptomator"
case .Local:
return "Local"
case .Files:
return "Files"
}
}

Expand All @@ -306,6 +311,8 @@ public class CloudFactory {
return Cryptomator(name: tagname)
case .Local:
return LocalStorage(name: tagname)
case .Files:
return FilesStorage(name: tagname)
}
}

Expand Down
Loading

0 comments on commit 7729c36

Please sign in to comment.