Open MrJabborbek opened 1 month ago
I am initializing Firebase in desktop side like this, if i commented firebsase initializationsnot getting error, so error is in initialization:
import android.app.Application import androidx.compose.ui.window.Window import androidx.compose.ui.window.application import com.google.firebase.FirebasePlatform import dev.gitlive.firebase.Firebase import dev.gitlive.firebase.FirebaseOptions import dev.gitlive.firebase.initialize
fun main() = application { FirebasePlatform.initializeFirebasePlatform(object : FirebasePlatform() {
val storage = mutableMapOf<String, String>() override fun clear(key: String) { storage.remove(key) } override fun log(msg: String) = println(msg) override fun retrieve(key: String) = storage[key] override fun store(key: String, value: String) = storage.set(key, value) }) val options = FirebaseOptions( projectId = "some_id", applicationId = "app_id_here", apiKey = "api_key_here", ) Firebase.initialize(Application(), options) Window( onCloseRequest = ::exitApplication, title = "KotlinProject", ) { App() }
}
Are you able to get more information about the error such as a full stack trace?
I am initializing Firebase in desktop side like this, if i commented firebsase initializationsnot getting error, so error is in initialization:
import android.app.Application import androidx.compose.ui.window.Window import androidx.compose.ui.window.application import com.google.firebase.FirebasePlatform import dev.gitlive.firebase.Firebase import dev.gitlive.firebase.FirebaseOptions import dev.gitlive.firebase.initialize
fun main() = application { FirebasePlatform.initializeFirebasePlatform(object : FirebasePlatform() {
}