@@ -47,7 +47,7 @@ import org.json.JSONException
4747import org.json.JSONObject
4848
4949/* * FirebaseFunctions lets you call Cloud Functions for Firebase. */
50- class FirebaseFunctions
50+ public class FirebaseFunctions
5151@AssistedInject
5252internal constructor (
5353 context: Context ,
@@ -105,22 +105,25 @@ internal constructor(
105105 }
106106
107107 /* * Returns a reference to the callable HTTPS trigger with the given name. */
108- fun getHttpsCallable (name : String ): HttpsCallableReference {
108+ public fun getHttpsCallable (name : String ): HttpsCallableReference {
109109 return HttpsCallableReference (this , name, HttpsCallOptions ())
110110 }
111111
112112 /* * Returns a reference to the callable HTTPS trigger with the provided URL. */
113- fun getHttpsCallableFromUrl (url : URL ): HttpsCallableReference {
113+ public fun getHttpsCallableFromUrl (url : URL ): HttpsCallableReference {
114114 return HttpsCallableReference (this , url, HttpsCallOptions ())
115115 }
116116
117117 /* * Returns a reference to the callable HTTPS trigger with the given name and call options. */
118- fun getHttpsCallable (name : String , options : HttpsCallableOptions ): HttpsCallableReference {
118+ public fun getHttpsCallable (name : String , options : HttpsCallableOptions ): HttpsCallableReference {
119119 return HttpsCallableReference (this , name, HttpsCallOptions (options))
120120 }
121121
122122 /* * Returns a reference to the callable HTTPS trigger with the provided URL and call options. */
123- fun getHttpsCallableFromUrl (url : URL , options : HttpsCallableOptions ): HttpsCallableReference {
123+ public fun getHttpsCallableFromUrl (
124+ url : URL ,
125+ options : HttpsCallableOptions
126+ ): HttpsCallableReference {
124127 return HttpsCallableReference (this , url, HttpsCallOptions (options))
125128 }
126129
@@ -149,7 +152,7 @@ internal constructor(
149152 }
150153
151154 @Deprecated(" Use {@link #useEmulator(String, int)} to connect to the emulator. " )
152- fun useFunctionsEmulator (origin : String ) {
155+ public fun useFunctionsEmulator (origin : String ) {
153156 Preconditions .checkNotNull(origin, " origin cannot be null" )
154157 urlFormat = " $origin /%2\$ s/%1\$ s/%3\$ s"
155158 }
@@ -162,7 +165,7 @@ internal constructor(
162165 * @param host the emulator host (for example, 10.0.2.2)
163166 * @param port the emulator port (for example, 5001)
164167 */
165- fun useEmulator (host : String , port : Int ) {
168+ public fun useEmulator (host : String , port : Int ) {
166169 emulatorSettings = EmulatedServiceSettings (host, port)
167170 }
168171
@@ -318,7 +321,7 @@ internal constructor(
318321 return tcs.task
319322 }
320323
321- companion object {
324+ public companion object {
322325 /* * A task that will be resolved once ProviderInstaller has installed what it needs to. */
323326 private val providerInstalled = TaskCompletionSource <Void >()
324327
@@ -370,7 +373,7 @@ internal constructor(
370373 * `"us-central1"` or `"https://mydomain.com"`.
371374 */
372375 @JvmStatic
373- fun getInstance (app : FirebaseApp , regionOrCustomDomain : String ): FirebaseFunctions {
376+ public fun getInstance (app : FirebaseApp , regionOrCustomDomain : String ): FirebaseFunctions {
374377 Preconditions .checkNotNull(app, " You must call FirebaseApp.initializeApp first." )
375378 Preconditions .checkNotNull(regionOrCustomDomain)
376379 val component = app.get(FunctionsMultiResourceComponent ::class .java)
@@ -384,7 +387,7 @@ internal constructor(
384387 * @param app The app for the Firebase project.
385388 */
386389 @JvmStatic
387- fun getInstance (app : FirebaseApp ): FirebaseFunctions {
390+ public fun getInstance (app : FirebaseApp ): FirebaseFunctions {
388391 return getInstance(app, " us-central1" )
389392 }
390393
@@ -395,13 +398,13 @@ internal constructor(
395398 * `"us-central1"` or `"https://mydomain.com"`.
396399 */
397400 @JvmStatic
398- fun getInstance (regionOrCustomDomain : String ): FirebaseFunctions {
401+ public fun getInstance (regionOrCustomDomain : String ): FirebaseFunctions {
399402 return getInstance(FirebaseApp .getInstance(), regionOrCustomDomain)
400403 }
401404
402405 /* * Creates a Cloud Functions client with the default app. */
403406 @JvmStatic
404- fun getInstance (): FirebaseFunctions {
407+ public fun getInstance (): FirebaseFunctions {
405408 return getInstance(FirebaseApp .getInstance(), " us-central1" )
406409 }
407410 }
0 commit comments