Skip to content

Commit 7729c36

Browse files
committed
v1.4.2(62)
Add Files backend.(open selected folder in Files.app) closed #2
1 parent 904ff14 commit 7729c36

File tree

18 files changed

+982
-48
lines changed

18 files changed

+982
-48
lines changed

RemoteCloud/RemoteCloud.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
3FA46CE223849615007ACC82 /* FileCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FA46CE123849615007ACC82 /* FileCache.swift */; };
3232
3FA46CE5238496B7007ACC82 /* cache.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 3FA46CE3238496B7007ACC82 /* cache.xcdatamodeld */; };
3333
3FAF14D32387131F0052AFAB /* WebDAVStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FAF14D22387131F0052AFAB /* WebDAVStorage.swift */; };
34+
3FE215882394F39300CD2A19 /* FilesStorage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FE215872394F39300CD2A19 /* FilesStorage.swift */; };
3435
3FE23B1F2340B96200916DA6 /* UploadManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3FE23B1E2340B96200916DA6 /* UploadManager.swift */; };
3536
/* End PBXBuildFile section */
3637

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

@@ -164,6 +166,7 @@
164166
3C400921224190920028A45A /* OneDriveStorage.swift */,
165167
3F3ABABC2273119D002A8D16 /* pCloudStorage.swift */,
166168
3FAF14D22387131F0052AFAB /* WebDAVStorage.swift */,
169+
3FE215872394F39300CD2A19 /* FilesStorage.swift */,
167170
);
168171
path = Storages;
169172
sourceTree = "<group>";
@@ -288,6 +291,7 @@
288291
3FA46CE223849615007ACC82 /* FileCache.swift in Sources */,
289292
3CA2C951223495E700481DB5 /* RemoteStorage.swift in Sources */,
290293
3C14C452225CE19E0044E4A7 /* CueSheet.swift in Sources */,
294+
3FE215882394F39300CD2A19 /* FilesStorage.swift in Sources */,
291295
3C0654A122384BED003BD932 /* CryptCarotDAV.swift in Sources */,
292296
3C40091E22413C340028A45A /* DropBoxStorage.swift in Sources */,
293297
3F3ABABD2273119D002A8D16 /* pCloudStorage.swift in Sources */,
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "files3.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"filename" : "files2.png",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "universal",
15+
"filename" : "files1.png",
16+
"scale" : "3x"
17+
}
18+
],
19+
"info" : {
20+
"version" : 1,
21+
"author" : "xcode"
22+
}
23+
}
3.69 KB
Loading
3.43 KB
Loading
3.08 KB
Loading

RemoteCloud/RemoteCloud/RemoteStorage.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import CoreData
1212

1313
public enum CloudStorages: CaseIterable {
1414
case Local
15+
case Files
1516
case DropBox
1617
case GoogleDrive
1718
case OneDrive
@@ -258,6 +259,8 @@ public class CloudFactory {
258259
return UIImage(named: "cryptomator", in: Bundle(for: type(of: self)), compatibleWith: nil)
259260
case .Local:
260261
return UIImage(named: "local", in: Bundle(for: type(of: self)), compatibleWith: nil)
262+
case .Files:
263+
return UIImage(named: "files", in: Bundle(for: type(of: self)), compatibleWith: nil)
261264
}
262265
}
263266

@@ -281,6 +284,8 @@ public class CloudFactory {
281284
return "Cryptomator"
282285
case .Local:
283286
return "Local"
287+
case .Files:
288+
return "Files"
284289
}
285290
}
286291

@@ -306,6 +311,8 @@ public class CloudFactory {
306311
return Cryptomator(name: tagname)
307312
case .Local:
308313
return LocalStorage(name: tagname)
314+
case .Files:
315+
return FilesStorage(name: tagname)
309316
}
310317
}
311318

0 commit comments

Comments
 (0)