Closed
Description
[REQUIRED] Step 2: Describe your environment
- Firebase Component: Functions
- Component version: 21.1.0
[REQUIRED] Step 3: Describe the problem
Functions SDK version 21.1.0 seems to have broken source compatibility. Specifically when using HttpsCallableResult
:
Version 21.0.0
suspend fun addMessage(text: String) {
val data = hashMapOf("text" to text)
val result = functions
.getHttpsCallable("addMessage")
.call(data)
.await()
val data = result?.data // <-- WORKS
}
Version 21.1.0
suspend fun addMessage(text: String) {
val data = hashMapOf("text" to text)
val result = functions
.getHttpsCallable("addMessage")
.call(data)
.await()
val data = result?.data // <-- Cannot access 'val data: Any?': it is private in 'com/google/firebase/functions/HttpsCallableResult'
}