@arrirpc/codegen-swift 0.60.1 → 0.60.3
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +17 -1
- package/dist/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/README.md
CHANGED
@@ -32,8 +32,24 @@ The generated code relies on the [Arri Swift Client](/languages/swift/swift-clie
|
|
32
32
|
|
33
33
|
#### Swift Package Manager
|
34
34
|
|
35
|
+
Add the `arri-client-swift` git repo to your package dependencies
|
36
|
+
|
35
37
|
```swift
|
36
|
-
.package(
|
38
|
+
.package(
|
39
|
+
url: "https://github.com/modiimedia/arri-client-swift.git",
|
40
|
+
from: "<your-arri-cli-version>"
|
41
|
+
)
|
42
|
+
```
|
43
|
+
|
44
|
+
then add `ArriClient` as a dependency to your target
|
45
|
+
|
46
|
+
```swift
|
47
|
+
.target(
|
48
|
+
name: "MyApp",
|
49
|
+
dependencies: [
|
50
|
+
.product(name: "ArriClient", package: "arri-client-swift")
|
51
|
+
]
|
52
|
+
)
|
37
53
|
```
|
38
54
|
|
39
55
|
## Using the Generated Code
|
package/dist/index.cjs
CHANGED
@@ -1208,7 +1208,8 @@ function swiftServiceFromSchema(schema, context) {
|
|
1208
1208
|
continue;
|
1209
1209
|
}
|
1210
1210
|
}
|
1211
|
-
return
|
1211
|
+
return `@available(macOS 10.15, iOS 13, tvOS 13, macCatalyst 13, *)
|
1212
|
+
public class ${serviceName} {
|
1212
1213
|
let baseURL: String
|
1213
1214
|
let delegate: ArriRequestDelegate
|
1214
1215
|
let headers: () -> Dictionary<String, String>
|
package/dist/index.mjs
CHANGED
@@ -1202,7 +1202,8 @@ function swiftServiceFromSchema(schema, context) {
|
|
1202
1202
|
continue;
|
1203
1203
|
}
|
1204
1204
|
}
|
1205
|
-
return
|
1205
|
+
return `@available(macOS 10.15, iOS 13, tvOS 13, macCatalyst 13, *)
|
1206
|
+
public class ${serviceName} {
|
1206
1207
|
let baseURL: String
|
1207
1208
|
let delegate: ArriRequestDelegate
|
1208
1209
|
let headers: () -> Dictionary<String, String>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@arrirpc/codegen-swift",
|
3
|
-
"version": "0.60.
|
3
|
+
"version": "0.60.3",
|
4
4
|
"type": "module",
|
5
5
|
"license": "MIT",
|
6
6
|
"author": {
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"dist"
|
23
23
|
],
|
24
24
|
"dependencies": {
|
25
|
-
"@arrirpc/codegen-utils": "0.60.
|
25
|
+
"@arrirpc/codegen-utils": "0.60.3"
|
26
26
|
},
|
27
27
|
"devDependencies": {}
|
28
28
|
}
|