Djuro
02/11/2024, 6:39 PMbuild.gradle.kts
implementation("dev.gitlive:firebase-firestore:1.11.1")
implementation("dev.gitlive:firebase-common:1.11.1")
The error I am getting is
Failed to resolve: com.google.firebase:firebase-firestore
Failed to resolve: com.google.firebase:firebase-common-ktx
I created the compose mulitplatform project using multiplatform wizard https://kmp.jetbrains.com/Daniele B
02/23/2024, 6:10 PMdylan
02/28/2024, 12:24 PMfirebaseAnalyticsTracker.setUserId(some_unique_user_id)
has to be done everytime an app/process starts or calling it once after login is enough and the firebase sdk stores it somewhereSevak Tadevosyan
03/09/2024, 5:05 PMFile
from bitmap or byteArray in KMM?Pablichjenkov
03/28/2024, 6:09 AMAkram Bensalem
05/02/2024, 9:06 AMAshu
05/16/2024, 8:03 AMMark
05/22/2024, 2:15 PMcom.firebaseui:firebase-ui-auth
has not been updated to work with the latest play-services-auth
21.0.0 (or later)? https://github.com/firebase/codelab-friendlychat-android/issues/294Ruben Quadros
05/26/2024, 2:41 PMkotlinx-coroutines-play-services
dependency for android. What is the alternative for server side? I'm using firebase admin sdk on my kotlin serverTrey
05/30/2024, 2:06 PM./gradlew -PprojectsToPublish="firebase-messaging" publishReleasingLibrariesToMavenLocal
However, my changes aren't being used. Is there another gradle setting I've missed? I assumed that it would find the proper version of firebase-messaging in my local repo, use that and then pull the rest from the public repo. Is that what should happen?soufianehamama9
06/09/2024, 3:59 PMHamza Kovacevic
07/01/2024, 9:24 AMEduardo Ruesta
10/24/2024, 1:57 AMApochi
11/12/2024, 8:34 AMDaniel
12/14/2024, 10:23 PM> Task :shared:checkSandboxAndWriteProtection
> Task :shared:checkKotlinGradlePluginConfigurationErrors SKIPPED
> Task :shared:compileKotlinIosArm64 UP-TO-DATE
> Task :shared:xcodeVersion UP-TO-DATE
> Task :shared:linkDebugFrameworkIosArm64 FAILED
warning: Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: shared. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Please try to disable compiler caches and rerun the build. To disable compiler caches, add the following line to the gradle.properties file in the project's root directory:
kotlin.native.cacheKind.iosArm64=none
Also, consider filing an issue with full Gradle log here: <https://kotl.in/issue>
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: warning: ignoring duplicate libraries: '-lcompression', '-ldl', '-lz'
ld: framework 'FirebaseCore' not found
error: Compilation finished with errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:linkDebugFrameworkIosArm64'.
> Compilation finished with errors
In my app I have the latest versions of Kotlin and Firebase:
kotlin {
androidTarget()
listOf(
iosX64(),
iosArm64(),
).forEach {
it.binaries.framework {
baseName = "shared"
}
}
plugins{
kotlin("android").version("2.0.21").apply(false)
kotlin("multiplatform").version("2.0.21").apply(false)
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("dev.gitlive:firebase-firestore:2.1.0")
implementation("dev.gitlive:firebase-common:2.1.0")
implementation("dev.gitlive:firebase-auth:2.1.0")
implementation("dev.gitlive:firebase-functions:2.1.0")
}
}
The FirebaseCore is present in link Binary with Libraries from Xcode : image 1
Also in Frameworks targets: image 2
and I use the last version of Firebase SDK iOS 11.6.0: image 3
Also when I import FirebaseCore in swift for my app, everything goes as expected, I can even go inside the FirebaseCore import and check their code.
Version of gradle:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
What could be the problem of: ld: framework 'FirebaseCore' not foundDaniel
12/18/2024, 1:54 PMcoroutineScope.launch(<http://Dispatchers.IO|Dispatchers.IO>) {
val timeTaken = measureTimeMillis {
currentAndroidVersion =
loginViewModel.repo.checkAndroidVersion(lastUpdateDate)
}
println("checkAndroidVersion took $timeTaken ms to execute")
}
this usually prints:
checkAndroidVersion took 1394 ms to execute
checkAndroidVersion took 1028 ms to executeKMM repo:
val functions = Firebase.functions("europe-central2")
suspend fun checkAndroidVersion(version: String): String{
return functions.httpsCallable("checkAndroidVersion").invoke(version).data<String>()
}
cloud function:
exports.checkAndroidVersion =
onCall({region: "europe-central2", minInstances: 1}, (request) => {
<http://logger.info|logger.info>("current user version = "+request.data, {structuredData: true});
const version = request.data;
if (version != "15/10/2024") {
return version;
}
return "updated";
});
Keep in mind that I using Firebase Kotlin SDK since I have a KMM app.Niklas Wintrén
01/17/2025, 10:31 AMAnkit Sharma
01/21/2025, 12:00 PMDaniel
01/21/2025, 10:02 PMEduardo Ruesta
02/18/2025, 1:32 PMEduardo Ruesta
02/19/2025, 1:59 PMPablo
03/08/2025, 10:45 AMfirebaseAnalytics.logEvent(FirebaseAnalytics.Event.SELECT_ITEM) {
param(FirebaseAnalytics.Param.ITEM_ID, id)
param(FirebaseAnalytics.Param.ITEM_NAME, name)
param(FirebaseAnalytics.Param.CONTENT_TYPE, "image")
}
But the reality is that if you do that, it's impossible to see ITEM_ID and ITEM_NAME in the firebase console. You only can see grouped CONTENT_TYPE events. There are a lot of stackoverflow posts of people saying the same.Stephen
04/23/2025, 6:41 PMNitesh Singh
04/29/2025, 12:55 PMNitesh Singh
04/30/2025, 1:21 PMNitesh Singh
06/06/2025, 7:50 AMKweku A. Mensah
06/12/2025, 9:17 AMNitesh Singh
06/13/2025, 7:00 AMDaniele B
06/23/2025, 8:42 PMEduardo Ruesta
06/28/2025, 3:04 AM