Skip to content

Commit 8f387e6

Browse files
committed
feat: wire cells upload images & videos previews
1 parent 6b15af1 commit 8f387e6

File tree

71 files changed

+965
-87
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+965
-87
lines changed

β€Ž.github/workflows/test_pr_changes.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ jobs:
5555
WireAuthentication:
5656
- 'WireAuthentication/**'
5757
- 'wire-ios-mono.xcworkspace/xcshareddata/xcschemes/WireAuthenticationAll.xcscheme'
58+
WireCells:
59+
- 'WireCells/**'
60+
- 'wire-ios-mono.xcworkspace/xcshareddata/xcschemes/WireCellsAll.xcscheme'
61+
WireDebug:
62+
- 'WireDebug/**'
63+
- 'wire-ios-mono.xcworkspace/xcshareddata/xcschemes/WireDebugAll.xcscheme'
5864
WireDomain:
5965
- 'WireDomain/**'
6066
WireLogging:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../wire-ios-mono.xcworkspace/xcshareddata/IDETemplateMacros.plist
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
6+
<false/>
7+
</dict>
8+
</plist>

β€ŽWireCells/Package.swift

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,48 +3,82 @@
33

44
import PackageDescription
55

6+
let WireTestingPackage = Target.Dependency.product(name: "WireTestingPackage", package: "WireFoundation")
7+
68
let package = Package(
79
name: "WireCells",
810
platforms: [.iOS(.v16), .macOS(.v12)],
911
products: [
1012
// Products define the executables and libraries a package produces, making them visible to other packages.
1113
.library(
1214
name: "WireCellsAPI",
13-
targets: ["API"]
15+
targets: ["WireCellsAPI"]
1416
),
1517
.library(
1618
name: "WireCellsBindings",
17-
targets: ["Bindings"]
19+
targets: ["WireCellsBindings"]
20+
),
21+
.library(
22+
name: "WireCellsUI",
23+
targets: ["WireCellsUI"]
1824
),
1925
],
2026
dependencies: [
21-
.package(url: "https://github.com/pydio/cells-sdk-swift.git", branch: "v5-dev"),
22-
.package(url: "https://github.com/awslabs/aws-sdk-swift.git", from: "1.0.0")
27+
.package(url: "https://github.com/pydio/cells-sdk-swift.git", branch: "v0.1.1-alpha02"),
28+
.package(url: "https://github.com/awslabs/aws-sdk-swift.git", from: "1.0.0"),
29+
.package(name: "WireFoundation", path: "../WireFoundation"),
30+
.package(name: "WireUI", path: "../WireUI")
2331
],
2432
targets: [
2533
// Targets are the basic building blocks of a package, defining a module or a test suite.
2634
// Targets can depend on other targets in this package and products from dependencies.
2735
.target(
28-
name: "API",
36+
name: "WireCellsAPI",
2937
dependencies: [
3038
.product(name: "CellsSDK", package: "cells-sdk-swift")
3139
]
3240
),
33-
.target(name: "Bindings"),
41+
.target(name: "WireCellsBindings"),
3442
.target(
35-
name: "Implementation",
43+
name: "WireCellsImplementation",
3644
dependencies: [
37-
"API",
45+
"WireCellsAPI",
3846
.product(name: "AWSS3", package: "aws-sdk-swift"),
3947
.product(name: "CellsSDK", package: "cells-sdk-swift")
4048
]
4149
),
50+
.target(
51+
name: "WireCellsUI",
52+
dependencies: [
53+
.product(name: "WireDesign", package: "WireUI")
54+
]
55+
),
4256
.testTarget(
4357
name: "WireCellsTests",
4458
dependencies: [
45-
"API",
46-
"Implementation"
59+
"WireCellsAPI",
60+
"WireCellsImplementation"
61+
]
62+
),
63+
.testTarget(
64+
name: "WireCellsUITests",
65+
dependencies: [
66+
"WireCellsUI"
4767
]
4868
),
4969
]
5070
)
71+
72+
for target in package.targets {
73+
if target.isTest {
74+
target.dependencies += [WireTestingPackage]
75+
}
76+
}
77+
78+
for target in package.targets {
79+
target.swiftSettings = (target.swiftSettings ?? []) + [
80+
.enableUpcomingFeature("InternalImportsByDefault"),
81+
.enableUpcomingFeature("FullTypedThrows"),
82+
.enableUpcomingFeature("ExistentialAny")
83+
]
84+
}

β€ŽWireCells/Sources/API/WireCellsFileQueryError.swift renamed to β€ŽWireCells/Sources/WireCellsAPI/WireCellsFileQueryError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
//
1818

1919
public enum WireCellsFileQueryError: Error {
20-
case genericError(Error)
20+
case genericError(any Error)
2121
}

β€ŽWireCells/Sources/API/WireCellsFileUploadError.swift renamed to β€ŽWireCells/Sources/WireCellsAPI/WireCellsFileUploadError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818

1919
public enum WireCellsFileUploadError: Error {
2020
case fileTooLarge(fileSize: Int, maxSize: Int)
21-
case genericError(Error)
21+
case genericError(any Error)
2222
}

β€ŽWireCells/Sources/API/WireCellsFileUploadInfo.swift renamed to β€ŽWireCells/Sources/WireCellsAPI/WireCellsFileUploadInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// along with this program. If not, see http://www.gnu.org/licenses/.
1717
//
1818

19-
import Foundation
19+
public import Foundation
2020

2121
public struct WireCellsFileUploadInfo: Identifiable, Sendable {
2222
public let data: Data

β€ŽWireCells/Sources/API/WireCellsService.swift renamed to β€ŽWireCells/Sources/WireCellsAPI/WireCellsService.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
// along with this program. If not, see http://www.gnu.org/licenses/.
1717
//
1818

19-
@preconcurrency import CellsSDK
20-
import Foundation
19+
@preconcurrency public import CellsSDK
2120

2221
public protocol WireCellsService {
2322

0 commit comments

Comments
Β (0)