<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Development on My New Hugo Project</title>
    <link>https://shawnsv.com/tags/development/</link>
    <description>Recent content in Development on My New Hugo Project</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 08 Dec 2023 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://shawnsv.com/tags/development/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Using Kotlin multi-platform for Android and iOS with firebase</title>
      <link>https://shawnsv.com/posts/using-kotlin-multi-platform-for-android-and-ios-with-firebase/</link>
      <pubDate>Fri, 08 Dec 2023 00:00:00 +0000</pubDate>
      <guid>https://shawnsv.com/posts/using-kotlin-multi-platform-for-android-and-ios-with-firebase/</guid>
      <description>&lt;p&gt;So I just started a new app that is being built for Android and iOS. I&amp;rsquo;m building it using kotlin multi-platform (KMP). I started it by following a guide on jetbrains&amp;rsquo; website. I started it by following &lt;a href=&#34;https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-getting-started.html#next-step&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;this guide&lt;/a&gt;. &lt;a href=&#34;https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-getting-started.html#next-step&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-getting-started.html#next-step&lt;/a&gt; after kdoctor said that my machine was ready for cross platform compilation I moved on to cloning &lt;a href=&#34;https://github.com/JetBrains/compose-multiplatform-ios-android-template&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;this repo&lt;/a&gt;. &lt;a href=&#34;https://github.com/JetBrains/compose-multiplatform-ios-android-template&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/JetBrains/compose-multiplatform-ios-android-template&lt;/a&gt; This app is using firebase so I had to integrate it into the app. I found &lt;a href=&#34;https://github.com/GitLiveApp/firebase-kotlin-sdk&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;this library&lt;/a&gt; which is a cross platform firebase library. &lt;a href=&#34;https://github.com/GitLiveApp/firebase-kotlin-sdk&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/GitLiveApp/firebase-kotlin-sdk&lt;/a&gt; Getting it set up was a bit difficult as the app kept crashing everytime I tried to use firebase for anything. I later found &lt;a href=&#34;https://medium.com/@carlosgub/how-to-implement-firebase-firestore-in-kotlin-multiplatform-mobile-with-compose-multiplatform-32b66cdba9f7&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;this guide&lt;/a&gt; but as it is the only one online, and seems to miss a few pain points that I found. &lt;a href=&#34;https://medium.com/@carlosgub/how-to-implement-firebase-firestore-in-kotlin-multiplatform-mobile-with-compose-multiplatform-32b66cdba9f7&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://medium.com/@carlosgub/how-to-implement-firebase-firestore-in-kotlin-multiplatform-mobile-with-compose-multiplatform-32b66cdba9f7&lt;/a&gt; So I&amp;rsquo;m writing this to document my process and and pain points so that if anyone else wants to do this they can. Also, it should be noted that I started with the Authentication library.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
