firebase-kotlin-sdk icon indicating copy to clipboard operation
firebase-kotlin-sdk copied to clipboard

Cannot access class 'dev.gitlive.firebase.storage.Data' in androidApp

Open mr-kew opened this issue 1 year ago • 4 comments
trafficstars

I have a function in commonMain:

import dev.gitlive.firebase.storage.Data
...
fun getData(): Data {
    ...
}

and I am trying to call it from a androidApp (from compose):

Button(
    onClick = {
        val data = getData()
        ...
    }
)

but this gives me an error: Cannot access class 'dev.gitlive.firebase.storage.Data'. Check your module classpath for missing or conflicting dependencies..

I am doing just this in my :shared:build.gradle.kts:

commonMain.dependencies {
    implementation("dev.gitlive:firebase-storage:2.1.0")
}

I tried in commonMain:

public typealias StorageData = Data

but that basically tells me that type StorageData and dev.gitlive.firebase.storage.Data are not the same in androidApp.

Am I doing something wrong? Or is it an issue with the library?

mr-kew avatar Sep 27 '24 05:09 mr-kew