<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Madhusha Kondabathini on Medium]]></title>
        <description><![CDATA[Stories by Madhusha Kondabathini on Medium]]></description>
        <link>https://medium.com/@ammumadhukondabathini?source=rss-6e82acdb6413------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*vB1HHCpy6OqDI177</url>
            <title>Stories by Madhusha Kondabathini on Medium</title>
            <link>https://medium.com/@ammumadhukondabathini?source=rss-6e82acdb6413------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:44:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ammumadhukondabathini/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[RTL Languages in Kotlin Multiplatform Compose (KMP)]]></title>
            <link>https://medium.com/@ammumadhukondabathini/rtl-languages-in-kotlin-multiplatform-compose-kmp-a1e8e78614fb?source=rss-6e82acdb6413------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1e8e78614fb</guid>
            <category><![CDATA[right-to-left]]></category>
            <category><![CDATA[rtls]]></category>
            <dc:creator><![CDATA[Madhusha Kondabathini]]></dc:creator>
            <pubDate>Mon, 15 Jun 2026 09:52:45 GMT</pubDate>
            <atom:updated>2026-06-15T09:52:45.119Z</atom:updated>
            <content:encoded><![CDATA[<p>As mobile applications reach a global audience, supporting <strong>Right-to-Left (RTL)</strong> languages becomes essential. Languages such as <strong>Arabic, Hebrew, Persian (Farsi), and Urdu</strong> are read from right to left, and users expect the entire UI to adapt accordingly.</p><p>In a <strong>Kotlin Multiplatform (KMP) Compose</strong> project, RTL support can be implemented cleanly using expect/actual declarations and Compose&#39;s LocalLayoutDirection.</p><h3>Why RTL Support Matters</h3><p>Without RTL support:</p><ul><li>Text may appear correctly but the layout remains Left-to-Right.</li><li>Navigation patterns can feel unnatural.</li><li>Icons, paddings, and alignments may look incorrect.</li><li>User experience suffers for RTL language users.</li></ul><p>Compose Multiplatform makes it straightforward to switch the layout direction dynamically based on the device language.</p><h3>Step 1: Create an Expect Function</h3><pre>expect fun isRTLDeviceLanguage(): Boolean</pre><p>This allows each platform (Android and iOS) to provide its own implementation while exposing a common API to shared code.</p><h3>Step 2: Android Implementation</h3><p>Create a function using Locale.getDefault() in android</p><pre>actual fun isRTLDeviceLanguage(): Boolean {<br><br>    val languageCode = Locale.getDefault().language<br><br>    return languageCode in listOf(<br>        &quot;ar&quot;, // Arabic<br>        &quot;he&quot;, // Hebrew, On modern Android/Java<br>        &quot;iw&quot;, // Hebrew, support legacy Android code<br>        &quot;fa&quot;, // Persian (Farsi)<br>        &quot;ur&quot;  // Urdu<br>    )<br>}</pre><p>Locale.getDefault().language returns the device&#39;s current language code. If the device language matches one of these codes, the function returns true.</p><h3>Step 3: iOS Implementation</h3><p>Use NSLocale.preferredLanguages in iOS</p><pre>actual fun isRTLDeviceLanguage(): Boolean {<br><br>    val languageCode =<br>        NSLocale.preferredLanguages.firstOrNull()?.toString()<br>            ?: &quot;en&quot;<br><br>    return languageCode.startsWith(&quot;ar&quot;) ||<br>            languageCode.startsWith(&quot;he&quot;) ||<br>            languageCode.startsWith(&quot;fa&quot;) ||<br>            languageCode.startsWith(&quot;ur&quot;)<br>}   </pre><p>Using startsWith() ensures all regional variants are detected correctly.</p><h3>Step 4: Add Localized String Resources</h3><p>To provide a complete RTL experience, your app should not only mirror the layout but also display translated text based on the user’s language.</p><h3>English</h3><pre>&lt;resources&gt;<br>    &lt;string name=&quot;title&quot;&gt;RTL app&lt;/string&gt;<br>    &lt;string name=&quot;description&quot;&gt;Right to Left&lt;/string&gt;<br>&lt;/resources&gt;</pre><h3>Arabic Strings</h3><pre>&lt;resources&gt;<br>    &lt;string name=&quot;title&quot;&gt;تطبيق من اليمين إلى اليسار&lt;/string&gt;<br>    &lt;string name=&quot;description&quot;&gt;من اليمين إلى اليسار&lt;/string&gt;<br>&lt;/resources&gt;</pre><h3>Hebrew Strings</h3><pre>&lt;resources&gt;<br>    &lt;string name=&quot;title&quot;&gt;אפליקציית ימין לשמאל&lt;/string&gt;<br>    &lt;string name=&quot;description&quot;&gt;מימין לשמאל&lt;/string&gt;<br>&lt;/resources&gt;</pre><p>For Compose Multiplatform resources, place them in language-specific directories:</p><pre>composeResources/<br>├── values/<br>│   └── strings.xml<br>├── values-ar/<br>│   └── strings.xml<br>└── values-iw/<br>|   └── strings.xml<br>└── values-he/<br>    └── strings.xml</pre><h3>Step 5: Apply Layout Direction in Compose</h3><p>Once the RTL language is detected, provide the appropriate layout direction at the root of your Compose application.</p><pre>@Composable<br>fun App() {<br><br>    CompositionLocalProvider(<br>            LocalLayoutDirection provides<br>                    if (isRTLDeviceLanguage()){<br>                        LayoutDirection.Rtl<br>                    }else{<br>                        LayoutDirection.Ltr<br>                    }<br>        ){<br>            RTLScreen()<br>        }<br>}</pre><pre>@Composable<br>fun RTLScreen(){<br>    Column (modifier = Modifier.fillMaxSize()<br>        .statusBarsPadding(),<br>        verticalArrangement = Arrangement.Top,<br>        horizontalAlignment = Alignment.CenterHorizontally){<br>        Row {<br>            Icon(imageVector = Icons.Default.Star,<br>                contentDescription = &quot;&quot;<br>            )<br>            Spacer(modifier = Modifier.width(10.dp))<br><br>            Text(stringResource(Res.string.title))<br><br>            Spacer(modifier = Modifier.width(10.dp))<br><br>            Text(stringResource(Res.string.description))<br>        }<br>    }<br><br>}</pre><h3>Step 6: Testing RTL</h3><h3>Android</h3><p>Enable an RTL language such as Arabic:</p><pre>Settings → System → Languages → Arabic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*-eIUkwSeybNwM_shh0LEkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*jKiA9UckCLtTsrw-3ajNUA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*7n29z8bsfIvAnzsjWQjTKw.png" /></figure><h3><strong>iOS</strong></h3><p>Change the device language:</p><pre>Settings → General → Language &amp; Region → Arabic</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*IRd1L-zSbmmRV7Gs9ylyWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*YEgMoThpG0Bc9hOIs9y4BQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*n-56bkouxiMHQpnxRR0APw.png" /></figure><h3>Quick RTL Checklist</h3><p><strong>Avoid </strong>❌-&gt; Use ✅</p><p>left -&gt; start, right -&gt; end, CenterLeft -&gt; CenterStart, CenterRight -&gt; CenterEnd, TextAlign.Left -&gt;TextAlign.Start, TextAlign.Right -&gt; TextAlign.End, absolutePadding() -&gt; padding(), absoluteOffset() -&gt; offset(), Hardcoded arrow directions -&gt; RTL-aware icons.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1e8e78614fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase Crashlytics in Android and iOS (KMP)]]></title>
            <link>https://medium.com/@ammumadhukondabathini/firebase-crashlytics-in-android-and-ios-c347b71956a8?source=rss-6e82acdb6413------2</link>
            <guid isPermaLink="false">https://medium.com/p/c347b71956a8</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[crashlytics]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[firebase]]></category>
            <dc:creator><![CDATA[Madhusha Kondabathini]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 13:05:43 GMT</pubDate>
            <atom:updated>2026-08-16T15:52:43.352Z</atom:updated>
            <content:encoded><![CDATA[<p>In firebase go to crashlytics, Add Firebase to your Android app and iOS app</p><p><strong>Android</strong> :<br>-In project-level Gradle file add <br><strong>id(“com.google.gms.google-services”) version “4.4.4” apply false<br>id(“com.google.firebase.crashlytics”) version “3.0.6” apply false</strong></p><p>-In app-level Gradle file add<br>plugins {<br><strong>id(“com.google.gms.google-services”)<br>id(“com.google.firebase.crashlytics”)<br></strong>}</p><p>dependencies {<br> <strong>implementation(project.dependencies.platform(&quot;com.google.firebase:fir ebase-bom:34.7.0&quot;))</strong></p><p>// When using the BoM, you don’t specify versions in Firebase library dependencies<br> <strong>implementation(“com.google.firebase:firebase-analytics”)<br></strong> <strong>implementation(&quot;com.google.firebase:firebase-crashlytics&quot;)</strong></p><p>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F8pUKfMWz8aZiYmHZXblAA.png" /></figure><p>Download the google json and add in</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*D6Cte2PtzWCG1SWOng--lw.png" /></figure><p>In MainActivity add <br>FirebaseCrashlytics.getInstance().<em>isCrashlyticsCollectionEnabled </em>= true</p><p><strong>Test</strong> <strong>crash:</strong><br>Button(onClick = <strong>{<br> </strong>val value: String? = null<br> value!!.length<br><strong>}</strong>) <strong>{<br> </strong>Text(“Click me!”)<br><strong>}</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_z_Z5pVHoqD75BAWSqfcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zy3XcdWBrKdAFSLAPaDogg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XIl4tg4lk38f9GclItzIxw.png" /></figure><p><strong>iOS:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFXlE3daybqin1Z-qoTmgA.png" /></figure><p>Fill all the details , <br>-Put the GoogleServiceInfoDownload and add google json in</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*qzMPMjfNi2bRLOEbn8MGUA.png" /></figure><p>-Add package :In Xcode, with your app project open, navigate to File &gt; Add packages <br>-Select the SDK version that you want to use.We recommend using the default (latest) SDK version, but you can use an older version, if needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c1EOqOfIsZ968DElKVQpSw.png" /></figure><ul><li>Add the Firebase libraries <br><a href="https://github.com/firebase/firebase-ios-sdk">https://github.com/firebase/firebase-ios-sdk</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YQVsBqCw0gQORh5YHCsuIg.png" /></figure><ul><li>FirebaseCrashlytics</li><li>FirebaseAnalytics</li></ul><ol><li>Open your project’s Xcode , then select its project file in the left navigator.</li><li>From the <strong>TARGETS</strong> list, select your main build target.</li><li>Click the <strong>Build Settings</strong> tab, then complete the following steps so that Xcode produces dSYMs for your builds.</li></ol><p>a.Click <strong>All</strong>, then search for debug information format.</p><p>b. Set <strong>Debug Information Format</strong> to DWARF with dSYM File for all your build types.</p><p>4. Click the <strong>Build Phases</strong> tab, then complete the following steps so that Xcode can process your dSYMs and upload the files.</p><p>a. Click add &gt; <strong>New Run Script Phase</strong>.</p><ul><li>Make sure this new <em>Run Script</em> phase is your project’s last build phase; otherwise, Crashlytics can’t properly process dSYMs.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QONm7mv80tTC36XAp9X2mg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UqtGNy8bFQsp3AVHubepmg.png" /></figure><p>Add run script and Input Files as shown in image</p><pre>&quot;${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run&quot;${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}</pre><pre>${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}</pre><pre>${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${PRODUCT_NAME}</pre><pre>${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist</pre><pre>$(TARGET_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/GoogleService-Info.plist</pre><pre>$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)</pre><p>In AppDelegate add</p><pre>Crashlytics.crashlytics().setCrashlyticsCollectionEnabled(true)</pre><pre>class AppDelegate: NSObject,<br>                   UIApplicationDelegate<br>{<br>    func application(<br>            _ application: UIApplication,<br>            didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil<br>        ) -&gt; Bool {<br><br>            FirebaseApp.configure()<br><br>            print(&quot;Firebase configured&quot;)<br><br>           Crashlytics.crashlytics().setCrashlyticsCollectionEnabled(true)<br>            <br>            return true<br>        }<br><br>}</pre><p>this enable the crashlytics in ios</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JBiztLlmeYaw6zYY-9WPJw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dSh38bWEVMkKRCeAS3bWmQ.png" /></figure><h3>Common Mistakes to Avoid</h3><h3>Android</h3><p>❌ Missing google-services.json</p><p>❌ Not applying plugins in app module</p><p>❌ Using versions with BoM (don’t mix)</p><h3>iOS</h3><p>❌ Skipping dSYM upload script → unreadable crashes</p><p>❌ Not calling FirebaseApp.configure()</p><p>❌ Wrong bundle ID in Firebase</p><p>Git Hub Link: <a href="https://github.com/Madhui4usha/Crashlytics">https://github.com/Madhui4usha/Crashlytics</a></p><p>Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c347b71956a8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Google Cloud Project for Google Sign-In]]></title>
            <link>https://medium.com/@ammumadhukondabathini/creating-a-google-cloud-project-for-google-sign-in-265c45e4997f?source=rss-6e82acdb6413------2</link>
            <guid isPermaLink="false">https://medium.com/p/265c45e4997f</guid>
            <dc:creator><![CDATA[Madhusha Kondabathini]]></dc:creator>
            <pubDate>Wed, 01 Oct 2025 13:18:45 GMT</pubDate>
            <atom:updated>2025-10-02T18:11:55.376Z</atom:updated>
            <content:encoded><![CDATA[<h3>Steps:</h3><p><strong>1</strong>.Go to the <strong>Google Cloud Console</strong>.</p><p><strong>2</strong>.In the top-left corner, click on the <strong>Project Picker</strong> beside Google Cloud.</p><p><strong>3</strong>.Select <strong>New Project</strong> to create a new project for your app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WeTxYA5bJIZ2P1cMsa40Fg.png" /></figure><p><strong>4.Create a Project in Google Cloud Console</strong></p><ul><li>Provide the <strong>project name</strong> and select its <strong>location</strong>.</li><li>Create the project, then click <strong>Get Started</strong>.</li><li>Enter your <strong>app name</strong> and <strong>email address</strong>.</li><li>Choose <strong>Internal</strong> or <strong>External</strong> user type based on your requirement.</li><li>Add <strong>contact information</strong>, then finish the project configuration.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3L2X345SqJhiQsIu--1AQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o8JQr-oFsKMSuoBO7tp10Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UFEHmiRqaVBcb_M-pOp4Dg.png" /></figure><p><strong>5. Create OAuth Client ID</strong></p><ul><li>First, create a <strong>Web Client ID</strong> (used for backend verification).</li><li>Then, create an <strong>Android Client ID</strong>.</li><li>You’ll need the <strong>package name</strong> (available in your Gradle file → namespace = &quot;...&quot;).</li><li>You’ll also need the <strong>SHA-1 key</strong>.</li><li>To generate the SHA-1 in Android Studio:</li></ul><ol><li>Open your project in Android Studio.</li><li>Click on the <strong>Gradle tab</strong> (on the right-hand side).</li><li>Expand your project → Tasks → android.</li><li>Run the task <strong>signingReport</strong>.</li><li>Copy the <strong>SHA-1 key</strong> from the output.</li></ol><p><strong>6.Create iOS Client ID</strong></p><ul><li>For iOS, you’ll need the <strong>Bundle ID</strong>.</li><li>To find it in Xcode:</li></ul><ol><li>Open your project in Xcode.</li><li>Click on the app name in the <strong>project navigator</strong>.</li><li>Go to the <strong>General</strong> tab.</li><li>Copy the <strong>Bundle Identifier</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*soQpCJolFmyT5zQbC1fK5Q.png" /></figure><p>Have a nice day!🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=265c45e4997f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>