File tree Expand file tree Collapse file tree 2 files changed +34
-3
lines changed
Sources/Public/FirebaseFunctions Expand file tree Collapse file tree 2 files changed +34
-3
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,11 @@ NS_SWIFT_NAME(HTTPSCallable)
8181 * @param data Parameters to pass to the trigger.
8282 * @param completion The block to call when the HTTPS request has completed.
8383 */
84- // clang-format off
85- // because it incorrectly breaks this NS_SWIFT_NAME.
84+
8685- (void )callWithObject:(nullable id )data
8786 completion:(void (^)(FIRHTTPSCallableResult *_Nullable result,
8887 NSError *_Nullable error))completion
8988 NS_SWIFT_NAME (call(_:completion:));
90- // clang-format on
9189
9290/* *
9391 * The timeout to use when calling the function. Defaults to 60 seconds.
Original file line number Diff line number Diff line change 1+ // Copyright 2021 Google LLC
2+ //
3+ // Licensed under the Apache License, Version 2.0 (the "License");
4+ // you may not use this file except in compliance with the License.
5+ // You may obtain a copy of the License at
6+ //
7+ // http://www.apache.org/licenses/LICENSE-2.0
8+ //
9+ // Unless required by applicable law or agreed to in writing, software
10+ // distributed under the License is distributed on an "AS IS" BASIS,
11+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ // See the License for the specific language governing permissions and
13+ // limitations under the License.
14+
15+ import Foundation
16+
17+ import FirebaseCore
18+ import FirebaseFunctions
19+
20+ // This file is a build-only test for the public Functions Swift APIs not
21+ // exercised in IntegrationTests.swift.
22+
23+ func apis( ) {
24+ Functions . functions ( )
25+ Functions . functions ( region: " my-region " )
26+ Functions . functions ( customDomain: " abc " )
27+ let myApp = FirebaseApp . app ( ) !
28+ Functions . functions ( app: myApp)
29+ Functions . functions ( app: myApp, region: " my-region " )
30+ Functions . functions ( app: myApp, customDomain: " my-domain " )
31+ Functions . functions ( ) . useLocalhost ( )
32+ Functions . functions ( ) . useEmulator ( withHost: " my-host " , port: 1234 )
33+ }
You can’t perform that action at this time.
0 commit comments