Skip to content

Cannot access 'val data: Any?': it is private in 'com/google/firebase/functions/HttpsCallableResult' #6522

Closed
@thatfiredev

Description

@thatfiredev

[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'
}

Spotted in https://github.com/firebase/quickstart-android/actions/runs/11883012926/job/33109208274

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions