Skip to content

Commit 112eea1

Browse files
authored
Forgot to pass the appNotifier argument (#706)
1 parent eebe7a6 commit 112eea1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

native/swift/Sources/wordpress-api/WordPressAPI.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ public actor WordPressAPI {
1818
urlSession: URLSession,
1919
apiRootUrl: ParsedUrl,
2020
authentication: WpAuthentication,
21-
middlewarePipeline: MiddlewarePipeline = .default
21+
middlewarePipeline: MiddlewarePipeline = .default,
22+
appNotifier: WpAppNotifier? = nil
2223
) {
2324
self.init(
2425
apiRootUrl: apiRootUrl,
2526
authenticationProvider: .staticWithAuth(auth: authentication),
2627
executor: WpRequestExecutor(urlSession: urlSession),
27-
middlewarePipeline: middlewarePipeline
28+
middlewarePipeline: middlewarePipeline,
29+
appNotifier: appNotifier
2830
)
2931
}
3032

@@ -39,7 +41,8 @@ public actor WordPressAPI {
3941
apiRootUrl: apiRootUrl,
4042
authenticationProvider: authenticationProvider,
4143
executor: WpRequestExecutor(urlSession: urlSession),
42-
middlewarePipeline: middlewarePipeline
44+
middlewarePipeline: middlewarePipeline,
45+
appNotifier: appNotifier
4346
)
4447
}
4548

@@ -48,7 +51,7 @@ public actor WordPressAPI {
4851
authenticationProvider: WpAuthenticationProvider,
4952
executor: SafeRequestExecutor,
5053
middlewarePipeline: MiddlewarePipeline,
51-
appNotifier: WpAppNotifier? = nil
54+
appNotifier: WpAppNotifier?
5255
) {
5356
self.apiClientDelegate = WpApiClientDelegate(
5457
authProvider: authenticationProvider,

0 commit comments

Comments
 (0)