Hello Community, I started my KMP project earlier ...
# multiplatform
b
Hello Community, I started my KMP project earlier this week and managed to store date into the sqlDelight yesterday. My next step is a bit bigger, I would like to store data into a firebase, does anyone has experiences there and could point me to a guide. I would like to target Android, iOS and Desktop. 🙂
b
The gitlive version of the API supports android and iOS, i dont know about desktop though. https://github.com/GitLiveApp/firebase-kotlin-sdk I've been using it, its a bit short on docs in some places.
đź‘€ 1
b
@Brill thank you I will check it out.
f
A sample of integration of Firebase with GitLive on mobile/web and desktop https://github.com/frankois944/FirebaseKmpDemo
👍 2
m
Hi @François, I have small question regarding using your
spmForKmp
with unit tests. I checked out your
FirebaseKmpDemo
repository and I'm trying to run unit tests for it. I added the
commonTest
source set to the
composeApp
project and couple of simple tests. When I run these tests under the
android
target everything works well. However, when I trigger the same tests under the
iosSimulatorArm64
I'm getting the following error
ld: framework 'FirebaseCore' not found
I assume that SPM dependencies are linked only to the main target and not to the test target. Do you have some idea how to make it work?
f
Make an issue on the repository with the detail, thanks
Hey @Marcin Piekielny, I just checked, and I successfully reproduced your issue by just using iosTest. The example project of my plugin works well with testing, I’m going to investigate why this is not working (hope it’s not because of CMP...)
@Marcin Piekielny Well, the root cause is
gitlive
, which already use
cinterop
and make some conflict. If you don’t use it, there is no issue. But, It will be difficult to find a workaround