Skip to content

Commit

Permalink
Merge pull request #15 from nodes-ios/async_tokens
Browse files Browse the repository at this point in the history
Fix: Upgrade MLTokenhandler
  • Loading branch information
jakobmygind authored Mar 16, 2023
2 parents e1c7ea1 + 45a296b commit bfa400b
Show file tree
Hide file tree
Showing 4 changed files with 623 additions and 622 deletions.
2 changes: 1 addition & 1 deletion Modules/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "0.3.1"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "0.1.4"),
.package(url: "https://github.com/nstack-io/nstack-ios-sdk", branch: "feature/spm-support"),
.package(url: "https://github.com/nodes-ios/MLTokenHandler-ios.git", from: "0.9.0"),
.package(url: "https://github.com/nodes-ios/MLTokenHandler-ios.git", from: "0.9.1"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
3 changes: 2 additions & 1 deletion Modules/Sources/AppFeature/AppViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public class AppViewModel: ObservableObject {

func showMain() {
route = .main(
.init()
// Using witghdependencies(from: self) here makes sure that if you have overridden dependencies e.g. for using a mock endpoint, the children use the mocked endpoint and not the liev one
withDependencies(from: self, operation: MainViewModel.init)
)
}
}
Loading

0 comments on commit bfa400b

Please sign in to comment.