File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed
Sources/Public/FirebaseFunctions Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -81,13 +81,10 @@ NS_SWIFT_NAME(HTTPSCallable)
81
81
* @param data Parameters to pass to the trigger.
82
82
* @param completion The block to call when the HTTPS request has completed.
83
83
*/
84
- // clang-format off
85
- // because it incorrectly breaks this NS_SWIFT_NAME.
86
84
- (void )callWithObject:(nullable id )data
87
85
completion:(void (^)(FIRHTTPSCallableResult *_Nullable result,
88
86
NSError *_Nullable error))completion
89
87
NS_SWIFT_NAME (call(_:completion:));
90
- // clang-format on
91
88
92
89
/* *
93
90
* 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