Skip to content

Commit b654f20

Browse files
PaulsAutomationBotApodiniBotPSchmiedmayer
authored
Update dependencies (#9)
* Update to Apodini 0.6.2 Co-authored-by: ApodiniBot <ApodiniBot@users.noreply.github.com> Co-authored-by: Paul Schmiedmayer <PSchmiedmayer@users.noreply.github.com>
1 parent ba2b1f2 commit b654f20

7 files changed

Lines changed: 137 additions & 227 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Check Swift version
3232
run: swift --version
3333
- name: Build and test
34-
run: xcodebuild test -scheme Xpense -destination 'platform=iOS Simulator,name=iPhone 13 Pro'
34+
run: xcodebuild test -scheme Xpense -destination 'platform=iOS Simulator,name=iPhone 13'
3535
macoswebservice:
3636
name: macOS Web Service ${{ matrix.configuration }}
3737
runs-on: macos-11

Shared/Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Shared/Sources/XpenseModel/LocalStorageModel/LocalStorageModel.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,38 +56,38 @@ open class LocalStorageModel: Model {
5656
@discardableResult
5757
override open func save(_ account: Account) async throws -> Account {
5858
let newAccount = try await super.save(account)
59-
await Task.sleep(250_000_000) // Delay for 0.25s
59+
try await Task.sleep(nanoseconds: 250_000_000) // Delay for 0.25s
6060
return newAccount
6161
}
6262

6363
@discardableResult
6464
override open func save(_ transaction: Transaction) async throws -> Transaction {
6565
let newTransaction = try await super.save(transaction)
66-
await Task.sleep(250_000_000) // Delay for 0.25s
66+
try await Task.sleep(nanoseconds: 250_000_000) // Delay for 0.25s
6767
return newTransaction
6868
}
6969

7070
override open func delete(account id: Account.ID) async throws {
7171
try await super.delete(account: id)
72-
await Task.sleep(250_000_000) // Delay for 0.25s
72+
try await Task.sleep(nanoseconds: 250_000_000) // Delay for 0.25s
7373
}
7474

7575
override open func delete(transaction id: Transaction.ID) async throws {
7676
try await super.delete(transaction: id)
77-
await Task.sleep(250_000_000) // Delay for 0.25s
77+
try await Task.sleep(nanoseconds: 250_000_000) // Delay for 0.25s
7878
}
7979

8080
@discardableResult
8181
override open func signUp(_ name: String, password: String) async throws -> User {
8282
let user = try await super.signUp(name, password: password)
83-
await Task.sleep(500_000_000) // Delay for 0.5s
83+
try await Task.sleep(nanoseconds: 500_000_000) // Delay for 0.5s
8484
return user
8585
}
8686

8787
@discardableResult
8888
override open func login(_ name: String, password: String) async throws -> String {
8989
let token = try await super.login(name, password: password)
90-
await Task.sleep(500_000_000) // Delay for 0.5s
90+
try await Task.sleep(nanoseconds: 500_000_000) // Delay for 0.5s
9191
return token
9292
}
9393

WebService/Package.resolved

Lines changed: 63 additions & 108 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

WebService/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
.executable(name: "WebService", targets: ["WebService"])
2121
],
2222
dependencies: [
23-
.package(url: "https://github.com/Apodini/Apodini.git", .upToNextMinor(from: "0.5.0")),
23+
.package(url: "https://github.com/Apodini/Apodini.git", .upToNextMinor(from: "0.6.2")),
2424
.package(name: "Shared", path: "../Shared")
2525
],
2626
targets: [

WebService/Sources/WebService/XpenseWebService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct XpenseWebService: WebService {
3737
}
3838

3939
var configuration: Configuration {
40-
HTTPConfiguration(port: port)
40+
HTTPConfiguration(bindAddress: .interface(port: port))
4141
REST {
4242
OpenAPI()
4343
}

0 commit comments

Comments
 (0)