<?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 Mirza Showvik on Medium]]></title>
        <description><![CDATA[Stories by Mirza Showvik on Medium]]></description>
        <link>https://medium.com/@mirzashowvik?source=rss-dc178aa1afe9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lJc9ss6EiTdgZTPL60iQMg.png</url>
            <title>Stories by Mirza Showvik on Medium</title>
            <link>https://medium.com/@mirzashowvik?source=rss-dc178aa1afe9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 02:04:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mirzashowvik/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[Implementing OAuth2 in Kotlin Multiplatform: A Complete Guide to Token Management]]></title>
            <link>https://mirzashowvik.medium.com/implementing-oauth2-in-kotlin-multiplatform-a-complete-guide-to-token-management-7847179bf513?source=rss-dc178aa1afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7847179bf513</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[kotlin-multiplatform]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[oauth2]]></category>
            <dc:creator><![CDATA[Mirza Showvik]]></dc:creator>
            <pubDate>Sun, 09 Nov 2025 07:18:37 GMT</pubDate>
            <atom:updated>2025-11-09T07:18:37.582Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMzpk7jbDuwLbZFdjDC5bA.png" /></figure><p>Building secure authentication in a Kotlin Multiplatform (KMP) app can feel overwhelming. You need shared token logic, cross-platform storage, automatic refresh, and smooth retry behavior — all while keeping the codebase unified.</p><p>This guide shows how to implement a production-ready OAuth2 workflow with PKCE, WebView authentication, automatic token refresh, and safe storage that works on both Android and iOS with one shared codebase.</p><h3>Tech Stack Overview</h3><p>Here’s what powers our implementation:</p><ul><li><strong>Ktor Client</strong> → Networking + API calls</li><li><strong>Multiplatform Settings</strong> → Cross-platform secure token storage</li><li><strong>Compose WebView Multiplatform</strong> → In-app OAuth login experience</li><li><strong>Koin</strong> → Dependency injection</li><li><strong>Kotlinx Serialization</strong> → JSON models for token responses</li><li><strong>Kotlinx DateTime</strong> → Expiration &amp; time calculations</li></ul><h3>What the User Experiences (Simple Flow)</h3><p>The user sees only this:</p><ol><li>App opens → Login screen</li><li>OAuth auto-launches → WebView shows provider login</li><li>User logs in → Provider redirects back</li><li>App receives callback → Exchanges code for tokens</li><li>Tokens saved securely</li><li>User enters home screen → Already authenticated</li></ol><p>No token handling. No interruptions. Everything happens silently behind the scenes.</p><h3>OAuth2 Flow (Authorization Code + PKCE)</h3><h3>1) Starting the Login Flow</h3><p>When entering the login screen, OAuth starts automatically:</p><pre>@Composable<br>fun LoginScreen(onNavigateToOAuth: () -&gt; Unit) {<br>    LaunchedEffect(Unit) {<br>        onNavigateToOAuth()<br>    }<br>}</pre><p>The repository prepares PKCE and the authorization URL:</p><pre>suspend fun initiateLogin(): OAuthResult {<br>    val codeVerifier = generateCodeVerifier()<br>    val codeChallenge = generateCodeChallenge(codeVerifier)<br>    val state = generateState()</pre><pre>    val authUrl = buildAuthorizationUrl(codeChallenge, state)<br>    return OAuthResult.Success(authUrl)<br>}</pre><h3>2) OAuth Within an In-App WebView</h3><p>Using WebView instead of an external browser provides better UX:</p><pre>WebView(<br>    state = webViewState,<br>    modifier = Modifier.fillMaxSize(),<br>    onCreated = { it.loadUrl(authUrl) },<br>    navigator = navigator<br>)</pre><p>Listening for the redirect URL:</p><pre>webViewNavigator.navigationEvents.collect { event -&gt;<br>    if (event.url.startsWith(&quot;https://your-app.example.com&quot;)) {<br>        handleCallback(<br>            extractCodeFromUrl(event.url),<br>            extractStateFromUrl(event.url)<br>        )<br>    }<br>}</pre><h3>3) Exchanging the Authorization Code</h3><pre>suspend fun handleCallback(code: String, state: String): OAuthResult {<br>    if (state != savedState) return OAuthResult.Error(&quot;Invalid state&quot;)</pre><pre>    val response = httpClient.submitForm(<br>        url = OAuthConfig.TOKEN_ENDPOINT,<br>        formParameters = parameters {<br>            append(&quot;grant_type&quot;, &quot;authorization_code&quot;)<br>            append(&quot;client_id&quot;, OAuthConfig.CLIENT_ID)<br>            append(&quot;code&quot;, code)<br>            append(&quot;code_verifier&quot;, codeVerifier)<br>            append(&quot;redirect_uri&quot;, OAuthConfig.REDIRECT_URI)<br>        }<br>    )</pre><pre>    val tokenResponse = response.body&lt;TokenResponse&gt;()</pre><pre>    tokenStorage.storeTokens(<br>        accessToken = tokenResponse.access_token,<br>        refreshToken = tokenResponse.refresh_token,<br>        idToken = tokenResponse.id_token,<br>        expiresIn = tokenResponse.expires_in<br>    )</pre><pre>    return OAuthResult.Success(tokenResponse)<br>}</pre><h3>Token Storage That Works Everywhere</h3><p>Using multiplatform-settings ensures tokens are stored consistently:</p><pre>class OAuthTokenStorage(private val settings: Settings) {</pre><pre>    fun storeTokens(<br>        accessToken: String,<br>        refreshToken: String?,<br>        idToken: String?,<br>        expiresIn: Long<br>    ) {<br>        settings.putString(&quot;ACCESS_TOKEN&quot;, accessToken)<br>        refreshToken?.let { settings.putString(&quot;REFRESH_TOKEN&quot;, it) }<br>        idToken?.let { settings.putString(&quot;ID_TOKEN&quot;, it) }</pre><pre>        val expiresAt = Clock.System.now().epochSeconds + expiresIn<br>        settings.putLong(&quot;TOKEN_EXPIRY&quot;, expiresAt)<br>    }</pre><pre>    fun getTokens(): OAuthTokens? {<br>        val access = settings.getStringOrNull(&quot;ACCESS_TOKEN&quot;) ?: return null<br>        val refresh = settings.getStringOrNull(&quot;REFRESH_TOKEN&quot;)<br>        val expiry = settings.getLongOrNull(&quot;TOKEN_EXPIRY&quot;)</pre><pre>        return OAuthTokens(access, refresh, expiry)<br>    }<br>}</pre><h3>Proactive Expiry Check</h3><pre>fun areTokensValid(): Boolean {<br>    val tokens = getTokens() ?: return false<br>    val expiresAt = tokens.expiresAt ?: return true</pre><pre>    val now = Clock.System.now().epochSeconds<br>    val buffer = 300 // 5 minutes</pre><pre>    return now &lt; (expiresAt - buffer)<br>}</pre><h3>Automatic Token Refresh Using a Ktor Plugin</h3><p>This plugin silently intercepts 401s, refreshes tokens, and retries the request:</p><pre>val TokenRefreshPlugin = createClientPlugin(&quot;TokenRefreshPlugin&quot;) {<br>    val mutex = Mutex()</pre><pre>    client.plugin(HttpSend).intercept { request -&gt;<br>        val original = execute(request)</pre><pre>        if (original.response.status == HttpStatusCode.Unauthorized) {<br>            val retryCount = request.attributes.getOrNull(RETRY_COUNT_KEY) ?: 0</pre><pre>            if (retryCount == 0) {<br>                val oldToken = settings.getStringOrNull(&quot;AUTH_TOKEN&quot;)</pre><pre>                mutex.withLock {<br>                    val current = settings.getStringOrNull(&quot;AUTH_TOKEN&quot;)</pre><pre>                    if (current == oldToken) {<br>                        repo.refreshTokens()<br>                    }<br>                }</pre><pre>                val newToken = settings.getStringOrNull(&quot;AUTH_TOKEN&quot;)</pre><pre>                if (newToken != null &amp;&amp; newToken != oldToken) {<br>                    val retry = request.apply {<br>                        headers.remove(HttpHeaders.Authorization)<br>                        headers.append(HttpHeaders.Authorization, &quot;Bearer $newToken&quot;)<br>                        attributes.put(RETRY_COUNT_KEY, 1)<br>                    }<br>                    return@intercept execute(retry)<br>                }<br>            }<br>        }</pre><pre>        original<br>    }<br>}</pre><h3>Why This Works Well</h3><ul><li>Prevents concurrent refresh attempts</li><li>Only retries once</li><li>Automatically updates the Authorization header</li><li>Creates a smooth experience for the user</li></ul><h3>How Refresh Token Logic Works</h3><pre>suspend fun refreshTokens(): OAuthResult {<br>    val refreshToken = tokenStorage.getTokens()?.refreshToken<br>        ?: return OAuthResult.Error(&quot;No refresh token available&quot;)</pre><pre>    val response = httpClient.submitForm(<br>        url = OAuthConfig.TOKEN_ENDPOINT,<br>        formParameters = parameters {<br>            append(&quot;grant_type&quot;, &quot;refresh_token&quot;)<br>            append(&quot;client_id&quot;, OAuthConfig.CLIENT_ID)<br>            append(&quot;refresh_token&quot;, refreshToken)<br>        }<br>    )</pre><pre>    if (response.status.isSuccess()) {<br>        val tokenResponse = response.body&lt;TokenResponse&gt;()</pre><pre>        tokenStorage.storeTokens(<br>            accessToken = tokenResponse.access_token,<br>            refreshToken = tokenResponse.refresh_token ?: refreshToken,<br>            idToken = tokenResponse.id_token,<br>            expiresIn = tokenResponse.expires_in<br>        )</pre><pre>        settings.putString(&quot;AUTH_TOKEN&quot;, tokenResponse.access_token)<br>        return OAuthResult.Success(tokenResponse)<br>    } else {<br>        tokenStorage.clearTokens()<br>        return OAuthResult.Error(&quot;Token refresh failed&quot;)<br>    }<br>}</pre><h3>How Failed API Calls Recover Automatically</h3><p>When an API returns <strong>401 Unauthorized</strong>:</p><ol><li>Plugin catches the 401</li><li>Checks if token is expired</li><li>Refreshes tokens (only once)</li><li>Updates Authorization header</li><li>Retries the request</li><li>Returns success</li></ol><p>Your ViewModel never deals with token refresh:</p><pre>suspend fun loadUserProfile() {<br>    val profile = userApi.getUserProfile()<br>    _userState.value = UserState.Success(profile)<br>}</pre><h3>Secure Logout</h3><p>Proper logout requires revoking tokens and clearing storage:</p><pre>suspend fun logout() {<br>    val accessToken = tokenStorage.getTokens()?.accessToken</pre><pre>    if (accessToken != null) {<br>        _showLogoutWebView.value = true<br>    }</pre><pre>    try {<br>        userApi.userLogoutPost()<br>    } catch (_: Exception) {}</pre><pre>    tokenStorage.clearTokens()<br>    settings.remove(&quot;AUTH_TOKEN&quot;)<br>    database.clearAllTables()</pre><pre>    _authState.value = AuthState.Idle<br>}</pre><h3>Session Persistence on App Launch</h3><pre>init {<br>    scope.launch {<br>        val tokens = tokenStorage.getTokens()</pre><pre>        if (tokens != null &amp;&amp; tokenStorage.areTokensValid()) {<br>            _authState.value = AuthState.Authenticated<br>        } else {<br>            _authState.value = AuthState.Idle<br>        }<br>    }<br>}</pre><p>Valid tokens → logged in<br> Expired tokens → auto refresh on first API call</p><h3>Key Takeaways</h3><p>✅ Use WebView for a smooth OAuth login<br> ✅ Validate &amp; refresh tokens before they expire<br> ✅ Use a Ktor plugin to centralize refresh logic<br> ✅ Store tokens securely (Keychain / EncryptedSharedPreferences)<br> ✅ Protect refresh flow with a Mutex<br> ✅ Automatically retry 401 requests<br> ✅ Keep ViewModels free of token logic</p><h3>Conclusion</h3><p>OAuth2 in Kotlin Multiplatform doesn’t have to be complex. With shared storage, a smart Ktor plugin, and a clean refresh strategy, you can create a seamless authentication system that works flawlessly on Android and iOS — without duplicating code or adding complexity to your UI layer.</p><p>Just focus on making API calls.<br>Let the plugin handle the rest.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7847179bf513" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Jetpack Compose Navigation: A Step-by-Step Guide to Building a 4-Screen App]]></title>
            <link>https://mirzashowvik.medium.com/mastering-jetpack-compose-navigation-a-step-by-step-guide-to-building-a-4-screen-app-91242a424f42?source=rss-dc178aa1afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/91242a424f42</guid>
            <category><![CDATA[jetpack-navigation]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[kmp]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Mirza Showvik]]></dc:creator>
            <pubDate>Sat, 11 Jan 2025 15:10:01 GMT</pubDate>
            <atom:updated>2025-01-11T15:10:01.296Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HCIBvbW2_ZP9L-E-DN0dUg.png" /></figure><h3>Introduction</h3><p>Jetpack Compose is rapidly becoming the go-to UI toolkit for Android development. One of its standout features is the intuitive and flexible navigation system. In this article, we’ll walk through the best practices for setting up navigation in a four-screen Compose app, featuring a <strong>Splash</strong>, <strong>Login</strong>, <strong>Home</strong>, and <strong>Profile</strong> screen.</p><p>By the end of this guide, you’ll have a clean, scalable navigation setup that’s ready for production.</p><h3>Why Choose Jetpack Compose Navigation?</h3><p>Jetpack Compose Navigation simplifies app navigation by leveraging a declarative approach. Here are some reasons to use it:</p><ul><li><strong>Intuitive APIs</strong> for defining routes and navigation actions.</li><li><strong>State Restoration</strong> ensures seamless user experiences.</li><li><strong>Flexible Back Stack Management</strong> for controlling navigation history.</li></ul><h3>Prerequisites</h3><p>Before starting, make sure your project includes the necessary dependencies in the build.gradle file:</p><pre>implementation &quot;androidx.navigation:navigation-compose:2.7.0&quot;<br>implementation &quot;androidx.lifecycle:lifecycle-runtime-compose:2.6.2&quot;<br>implementation &quot;androidx.compose.material3:material3:1.1.1&quot;</pre><h3>Step 1: Define Navigation Routes</h3><p>Start by creating a sealed class to manage your app’s routes.<br><strong>File: Destinations.kt</strong></p><pre>sealed class Destinations(val route: String) {<br>    object Splash : Destinations(&quot;splash&quot;)<br>    object Login : Destinations(&quot;login&quot;)<br>    object Home : Destinations(&quot;home&quot;)<br>    object Profile : Destinations(&quot;profile&quot;)<br>}</pre><p>This approach ensures type safety and makes it easy to add or update routes.</p><h3>Step 2: Set Up the Navigation Graph</h3><p>The navigation graph is where you define your app’s screens and how users navigate between them.<br><strong>File: NavGraph.kt</strong></p><pre>@Composable<br>fun NavGraph(navController: NavHostController) {<br>    NavHost(navController = navController, startDestination = Destinations.Splash.route) {<br>        composable(Destinations.Splash.route) {<br>            SplashScreen(navController)<br>        }<br>        composable(Destinations.Login.route) {<br>            LoginScreen(navController)<br>        }<br>        composable(Destinations.Home.route) {<br>            HomeScreen(navController)<br>        }<br>        composable(Destinations.Profile.route) {<br>            ProfileScreen(navController)<br>        }<br>    }<br>}</pre><h3>Step 3: Implement the Screens</h3><p>Each screen is a standalone composable. Here’s a quick look at each:</p><h4>Splash Screen</h4><p>A loading screen that navigates to Login after a delay.</p><pre>@Composable<br>fun SplashScreen(navController: NavController) {<br>    LaunchedEffect(Unit) {<br>        delay(2000)<br>        navController.navigate(&quot;login&quot;) {<br>            popUpTo(&quot;splash&quot;) { inclusive = true }<br>        }<br>    }<br>    Box(contentAlignment = Alignment.Center, modifier = Modifier.fillMaxSize()) {<br>        Text(text = &quot;Welcome to the App!&quot;)<br>    }<br>}</pre><h4>Login Screen</h4><p>A screen with a login button that navigates to Home.</p><pre>@Composable<br>fun LoginScreen(navController: NavController) {<br>    Box(contentAlignment = Alignment.Center, modifier = Modifier.fillMaxSize()) {<br>        Column(horizontalAlignment = Alignment.CenterHorizontally) {<br>            Text(&quot;Login Screen&quot;)<br>            Spacer(modifier = Modifier.height(16.dp))<br>            Button(onClick = { navController.navigate(&quot;home&quot;) }) {<br>                Text(text = &quot;Login&quot;)<br>            }<br>        }<br>    }<br>}</pre><h4>Home Screen</h4><p>The main screen with navigation to Profile.</p><pre>@Composable<br>fun HomeScreen(navController: NavController) {<br>    Box(contentAlignment = Alignment.Center, modifier = Modifier.fillMaxSize()) {<br>        Column(horizontalAlignment = Alignment.CenterHorizontally) {<br>            Text(&quot;Home Screen&quot;)<br>            Spacer(modifier = Modifier.height(16.dp))<br>            Button(onClick = { navController.navigate(&quot;profile&quot;) }) {<br>                Text(text = &quot;Go to Profile&quot;)<br>            }<br>        }<br>    }<br>}</pre><h4>Profile Screen</h4><p>A profile page with a back button.</p><pre>@Composable<br>fun ProfileScreen(navController: NavController) {<br>    Box(contentAlignment = Alignment.Center, modifier = Modifier.fillMaxSize()) {<br>        Column(horizontalAlignment = Alignment.CenterHorizontally) {<br>            Text(&quot;Profile Screen&quot;)<br>            Spacer(modifier = Modifier.height(16.dp))<br>            Button(onClick = { navController.navigateUp() }) {<br>                Text(text = &quot;Back to Home&quot;)<br>            }<br>        }<br>    }<br>}</pre><h3>Step 4: Integrate Navigation in MainActivity</h3><p>Finally, tie everything together in MainActivity.</p><pre>class MainActivity : ComponentActivity() {<br>    override fun onCreate(savedInstanceState: Bundle?) {<br>        super.onCreate(savedInstanceState)<br>        setContent {<br>            val navController = rememberNavController()<br>            NavGraph(navController = navController)<br>        }<br>    }<br>}</pre><h3>Final Thoughts</h3><p>Jetpack Compose Navigation is a game-changer in Android development. By adopting the practices outlined in this guide, you can create a navigation system that is both powerful and easy to manage.</p><p><strong>Share your experience with Jetpack Compose Navigation in the comments below!</strong> 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91242a424f42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy a NestJs App for Free on Vercel]]></title>
            <link>https://mirzashowvik.medium.com/deploy-a-nestjs-app-for-free-on-vercel-6e28b29e3233?source=rss-dc178aa1afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e28b29e3233</guid>
            <category><![CDATA[nestjs]]></category>
            <category><![CDATA[servers]]></category>
            <category><![CDATA[vercel]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Mirza Showvik]]></dc:creator>
            <pubDate>Wed, 15 May 2024 11:55:27 GMT</pubDate>
            <atom:updated>2024-05-15T11:55:44.191Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*G0RUcAMHvyQ_RZNX0_-N-Q.png" /></figure><ol><li>Install Vercel CLI</li></ol><pre>npm i -g vercel</pre><p>2. Open your project and create a file in the root folder called “vercel.json”</p><pre>touch vercel.json</pre><p>&amp; Paste the following code to vercel.json file</p><pre>{<br>  &quot;version&quot;: 2,<br>  &quot;builds&quot;: [<br>    {<br>      &quot;src&quot;: &quot;dist/main.js&quot;,<br>      &quot;use&quot;: &quot;@vercel/node&quot;<br>    }<br>  ],<br>  &quot;routes&quot;: [<br>    {<br>      &quot;src&quot;: &quot;/(.*)&quot;,<br>      &quot;dest&quot;: &quot;dist/main.js&quot;<br>    }<br>  ]<br>}</pre><p>3. Then login to vercel using,</p><pre>vercel login</pre><p>4. Finally, Build &amp; Deploy your NestJS application</p><p>with yarn :</p><pre>yarn run build</pre><p>or,</p><pre>npm run build</pre><h3>Then deploy it with</h3><pre>vercel --prod</pre><h4>Boom you just deployed your application. ✅🚀🦄</h4><h3>Bonus part:</h3><h4>How to update your app:</h4><p>you can either connect your app with Github using Vercel dashboard or you can manually deploy with process 4.</p><p>That’s easy you can deploy your nestJS application to Vercel. Thank you.</p><p>Follow me on:</p><p>LinkedIn <a href="https://www.linkedin.com/in/mirzashowvik/">https://www.linkedin.com/in/mirzashowvik/</a></p><p>Facebook <a href="https://www.facebook.com/iamirzashowvik/">https://www.facebook.com/iamirzashowvik/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e28b29e3233" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instagram like reels using Flutter]]></title>
            <link>https://mirzashowvik.medium.com/instagram-like-reels-using-flutter-b7cd1c942e28?source=rss-dc178aa1afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7cd1c942e28</guid>
            <category><![CDATA[reel]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[caching]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <category><![CDATA[video-player]]></category>
            <dc:creator><![CDATA[Mirza Showvik]]></dc:creator>
            <pubDate>Sun, 29 Oct 2023 18:28:00 GMT</pubDate>
            <atom:updated>2023-10-29T18:28:00.330Z</atom:updated>
            <content:encoded><![CDATA[<p>Instagram took the user experience of the reel feature to the next level.</p><p>You can get that level of experience very easily. Let’s reach that level of smoothness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*TNppX0ZtXl2PmHada3YYOQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*o6r4mpTkC6IhNvaXMa70wg.gif" /></figure><ol><li><strong>The packages you need:</strong></li></ol><p>i. flutter_cache_manager</p><p>ii. video_player</p><p><strong>2. Your cache configuration should look like this:</strong></p><pre>import &#39;package:flutter_cache_manager/flutter_cache_manager.dart&#39;;<br><br>const kReelCacheKey = &quot;reelsCacheKey&quot;;<br>final kCacheManager = CacheManager(<br>  Config(<br>    kReelCacheKey,<br>    stalePeriod: const Duration(days: 7), // Maximum cache duration<br>    maxNrOfCacheObjects: 100, // maximum reels to cache<br>    repo: JsonCacheInfoRepository(databaseName: kReelCacheKey),<br>    fileService: HttpFileService(),<br>  ),<br>);</pre><p><strong>3. Your Video Player Controller initialize function:</strong></p><pre>initializeController() async {<br>    var fileInfo = await kCacheManager.getFileFromCache(widget.reelUrl);<br>    if (fileInfo == null) {<br>      await kCacheManager.downloadFile(widget.reelUrl);<br>      fileInfo = await kCacheManager.getFileFromCache(widget.reelUrl);<br>    }<br>    if (mounted) {<br>      _controller = VideoPlayerController.file(fileInfo!.file)<br>        ..initialize().then((_) {<br>          setState(() {<br>            _controller.setLooping(true); // Set video to loop<br>            _controller.play();<br>            _videoInitialized = true;<br>          });<br>        });<br>      _controller.addListener(() {<br>        if (_controller.value.isPlaying &amp;&amp; !_isPlaying) {<br>          // Video has started playing<br>          setState(() {<br>            _isPlaying = true;<br>          });<br>        }<br>      });<br>    }<br>  }</pre><p><strong>4. Your reels service file:</strong></p><pre>class ReelService {<br>// Here, I use some stock videos as an example.<br>// But you need to make this list empty when you will call api for your reels<br>  final _reels = &lt;String&gt;[<br>    &#39;https://assets.mixkit.co/videos/preview/mixkit-aerial-panorama-of-a-landscape-with-mountains-and-a-lake-4249-large.mp4/&#39;,<br>    &#39;https://assets.mixkit.co/videos/preview/mixkit-curvy-road-on-a-tree-covered-hill-41537-large.mp4&#39;,<br>    &#39;https://assets.mixkit.co/videos/preview/mixkit-frying-diced-bacon-in-a-skillet-43063-large.mp4&#39;,<br>    &#39;https://assets.mixkit.co/videos/preview/mixkit-fresh-apples-in-a-row-on-a-natural-background-42946-large.mp4&#39;,<br>    &#39;https://assets.mixkit.co/videos/preview/mixkit-rain-falling-on-the-water-of-a-lake-seen-up-18312-large.mp4&#39;,<br>  ];<br><br>  Future getVideosFromApI() async {<br>    // call your api here<br>    // then add all links to _reels variable<br>    for (var i = 0; i &lt; _reels.length; i++) {<br>      cacheVideos(_reels[i], i);<br>      // you can add multiple logic for to cache videos. Right now I&#39;m caching all videos<br>    }<br>  }<br><br>  cacheVideos(String url, int i) async {<br>    FileInfo? fileInfo = await kCacheManager.getFileFromCache(url);<br>    if (fileInfo == null) {<br>      log(&#39;downloading file ##-------&gt;$url##&#39;);<br>      await kCacheManager.downloadFile(url);<br>      log(&#39;downloaded file ##-------&gt;$url##&#39;);<br>      if (i + 1 == _reels.length) {<br>        log(&#39;caching finished&#39;);<br>      }<br>    }<br>  }<br><br>  List&lt;String&gt; getReels() {<br>    return _reels;<br>  }<br>}</pre><p>Bingo!! You got everything perfect. Full code :</p><p><a href="https://github.com/iamirzashowvik/flutter_reels_caching/tree/main">https://github.com/iamirzashowvik/flutter_reels_caching</a></p><p><strong>Give a 🌟 if you like. Also, check out my other articles</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7cd1c942e28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Flutter API Calls with Dio]]></title>
            <link>https://mirzashowvik.medium.com/flutter-api-calls-with-dio-ee74ac0100ec?source=rss-dc178aa1afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee74ac0100ec</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[api-caching]]></category>
            <category><![CDATA[dios]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Mirza Showvik]]></dc:creator>
            <pubDate>Mon, 21 Aug 2023 15:13:45 GMT</pubDate>
            <atom:updated>2023-08-21T15:19:59.962Z</atom:updated>
            <content:encoded><![CDATA[<p>Here we will discuss everything you need to know about Flutter API calls.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ExJV2R6hTEq35JdL" /><figcaption>Photo by <a href="https://unsplash.com/@ante_kante?utm_source=medium&amp;utm_medium=referral">Ante Hamersmit</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Key Features:</p><ol><li>you can cache the response &amp; customize it.</li><li>you can add multiple interceptors as your need.</li><li>simplified code.</li></ol><p>✅ First of all, you need two packages to add.</p><ol><li>dio_http_cache</li><li>dio</li></ol><p>✅ make a file name api_request.dart and copy &amp; paste following code. Please try to understand bellow code. I’ve commented on important things you might use for various use cases.</p><pre>import &#39;package:dio/dio.dart&#39; as diox;<br>import &#39;package:dio_http_cache/dio_http_cache.dart&#39;;<br>import &#39;dart:developer&#39;;<br>import &#39;package:flutter/foundation.dart&#39;;<br><br>const String baseUrl = &quot;https://fakestoreapi.com&quot;;<br><br>class ApiRequest {<br>  final diox.Options _cacheOptions = buildCacheOptions(<br>      const Duration(<br>          minutes: 10), //if you want to cache api response for 10 minutes.<br>      forceRefresh:<br>          true //if you want to cache api response for 10 minutes, but show the latest response. If there is no internet connection, it will show the cached response.<br>      );<br><br>  final String url; //this is the endpoint url path. not full url. example: /api/v1/login<br>  final dynamic data; // this is the data you want to send to the api<br><br>  ApiRequest({<br>    required this.url,<br>    this.data,<br>  });<br><br>  static diox.Dio dio = diox.Dio(<br>    diox.BaseOptions(<br>      baseUrl: baseUrl,<br>      headers: {<br>        &quot;Accept&quot;: &quot;application/json&quot;,<br>        &quot;Content-Type&quot;: &quot;application/json&quot;,<br>        // this is where you can add your custom headers<br>      },<br><br>      // connectTimeout: 5000, //uncomment this if you want to set the connectTimeout to 5 seconds<br>      // receiveTimeout: 5000 //uncomment this if you want to set the receiveTimeout to 5 seconds<br>    ),<br>  )<br>    ..interceptors.add(<br>      diox.InterceptorsWrapper(<br>        onRequest: (requestOptions, handler) {<br>          if (kDebugMode) {<br>            log(&quot;⭐⭐⭐⭐⭐&quot;<br>                &quot;REQUEST[${requestOptions.method}] =&gt; PATH: ${requestOptions.path}  =&gt; REQUEST VALUES: ${requestOptions.queryParameters} =&gt; HEADERS: ${requestOptions.headers}&quot;);<br>          }<br>          return handler.next(requestOptions);<br>        },<br>        onResponse: (response, handler) {<br>          if (kDebugMode) {<br>            log(&quot;✅✅✅✅✅&quot;<br>                &quot;RESPONSE[${response.statusCode}] =&gt; DATA: ${response.data}&quot;);<br>          }<br>          return handler.next(response);<br>        },<br>        onError: (err, handler) {<br>          if (kDebugMode) {<br>            log(&quot;🔥🔥🔥🔥🔥&quot;<br>                &quot;Error[${err.response?.statusCode} ${err.message} ${err.error} ${err.type} ${err.response?.data}]&quot;);<br>          }<br>          return handler.next(err);<br>        },<br>      ),<br>    )<br>    ..interceptors.add(DioCacheManager(CacheConfig()).interceptor);<br><br>  Future&lt;diox.Response&gt;? get({<br>    required Function() beforeSend,<br>    required Function(dynamic data) onSuccess,<br>    required Function(dynamic error) onError,<br>  }) {<br>    beforeSend();<br><br>    dio.get(url, queryParameters: data, options: _cacheOptions).then((res) {<br>      if (onSuccess != null) onSuccess(res.data);<br>      return res;<br>    }).catchError((error, s) {<br>      if (onError != null) onError(error);<br>    });<br>  }<br><br>  Future&lt;diox.Response&gt;? post({<br>    required Function() beforeSend,<br>    required Function(dynamic data) onSuccess,<br>    required Function(dynamic error) onError,<br>  }) {<br>    beforeSend == null ? null : beforeSend();<br><br>    dio.post(url, data: data, options: _cacheOptions).then((res) {<br>      if (res.statusCode == 400) {<br>        onError(res.data);<br>      } else if (onSuccess != null) {<br>        onSuccess(res.data);<br>        return res;<br>      }<br>    }).catchError((error) {<br>      if (onError != null) onError(error);<br>    });<br>  }<br><br>  Future&lt;diox.Response&gt;? delete({<br>    required Function() beforeSend,<br>    required Function(dynamic data) onSuccess,<br>    required Function(dynamic error) onError,<br>  }) {<br>    beforeSend == null ? null : beforeSend();<br><br>    dio.delete(url, data: data).then((res) {<br>      if (res.statusCode == 400) {<br>        onError(res.data);<br>      } else if (onSuccess != null) {<br>        onSuccess(res.data);<br>        return res;<br>      }<br>    }).catchError((error) {<br>      if (onError != null) onError(error);<br>    });<br>  }<br><br>  Future&lt;diox.Response&gt;? patch({<br>    required Function() beforeSend,<br>    required Function(dynamic data) onSuccess,<br>    required Function(dynamic error) onError,<br>  }) {<br>    beforeSend == null ? null : beforeSend();<br><br>    dio.patch(url, data: data).then((res) {<br>      if (res.statusCode == 202) {<br>        onError(res.data);<br>      } else if (onSuccess != null) {<br>        onSuccess(res.data);<br>        return res;<br>      }<br>    }).catchError((error) {<br>      if (onError != null) onError(error);<br>    });<br>  }<br><br>  Future&lt;diox.Response&gt;? put({<br>    required Function() beforeSend,<br>    required Function(dynamic data) onSuccess,<br>    required Function(dynamic error) onError,<br>  }) {<br>    beforeSend == null ? null : beforeSend();<br><br>    dio.put(url, data: data).then((res) {<br>      if (res.statusCode == 202) {<br>        onError(res.data);<br>      } else if (onSuccess != null) {<br>        onSuccess(res.data);<br>        return res;<br>      }<br>    }).catchError((error) {<br>      if (onError != null) onError(error);<br>    });<br>  }<br>}<br><br>// reset dio is the function to reset the dio instance. You need to call it when a user is authenticated or logged out.<br>// if a user is logged in, you can set the token in the header of the dio instance.<br>// if a user is logged out, you can remove the token from the header of the dio instance.<br>resetDIO() {<br>  ApiRequest.dio = diox.Dio(<br>    diox.BaseOptions(baseUrl: baseUrl, headers: {<br>      &quot;Accept&quot;: &quot;application/json&quot;,<br>      &quot;Content-Type&quot;: &quot;application/json&quot;,<br>      // this is where you can add your custom headers<br>    }),<br>  )..interceptors.add(DioCacheManager(CacheConfig(<br>      baseUrl: baseUrl,<br>    )).interceptor);<br>}</pre><p>✅ Now go to <a href="https://app.quicktype.io/">https://app.quicktype.io/</a> and paste the json you will get from the API from where you test manually. And set this settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*DGAifIR7hVLA388c-70OSg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*HO4wpuC3RZrkFcfbJrX0zw.png" /></figure><p>✅ Now make a model file named like products_model.dart and paste following code you get from <a href="https://app.quicktype.io/">https://app.quicktype.io/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*git8tYh94Dbo5nOPrwPWQw.png" /></figure><p>copy the below line from the previous image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iiI03RMWBfqw29BjLQzavA.png" /></figure><pre>getAllProducts() async {<br>    ApiRequest(url: &#39;/products&#39;,<br>//data:{&quot;anykey&quot;:&quot;value&quot;}<br>).get(<br>        beforeSend: () {<br>      isloading = true;<br>    }, onSuccess: (response) async {<br>      isloading = false;<br>      String jsonString=jsonEncode(response);<br>      final response = getProductsFromJson(jsonString);<br>      //then manage your state from the response as you need. Its up to you.<br>    }, onError: (error) {<br>      isloading = false;<br>      log(error);<br>      DioError eResponse = error;<br>      log(eResponse.response!.data.toString());<br>    });<br>  }</pre><p>That’s it for today. Thanks for reading. Ask me anything about tech.</p><p>For more, you can follow me on Facebook.</p><p>Facebook: <a href="https://www.facebook.com/mirza.showvik/">https://www.facebook.com/mirza.showvik/</a></p><p>Instagram: <a href="https://www.instagram.com/mirza.showvik/">https://www.instagram.com/mirza.showvik/</a></p><p>LinkedIn: <a href="https://www.linkedin.com/in/mirzashowvik/">https://www.linkedin.com/in/mirzashowvik/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee74ac0100ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shorebird — CodePush on Flutter]]></title>
            <link>https://mirzashowvik.medium.com/shorebird-codepush-on-flutter-9efdaf176e8b?source=rss-dc178aa1afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9efdaf176e8b</guid>
            <category><![CDATA[code-push]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Mirza Showvik]]></dc:creator>
            <pubDate>Thu, 17 Aug 2023 07:00:23 GMT</pubDate>
            <atom:updated>2023-08-19T04:27:50.243Z</atom:updated>
            <content:encoded><![CDATA[<h3>Shorebird — CodePush on Flutter</h3><p>Here we discuss everything you need to know about Flutter CodePush.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FgootnCyDl5v3Fw-Dr6JJQ.png" /></figure><p>First, install Shorebird on your system:</p><p>for Mac/Linux:</p><pre>curl --proto &#39;=https&#39; --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash</pre><p>for Windows:</p><pre>Set-ExecutionPolicy RemoteSigned -scope CurrentUser # Needed to execute remote scripts<br>iwr -UseBasicParsing &#39;https://raw.githubusercontent.com/shorebirdtech/install/main/install.ps1&#39;|iex</pre><p>Now you need to check if Shorebird Installation is ok or not by running:</p><pre>shorebird doctor</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jXMkMzfjd5xPgVSsfmezLA.png" /></figure><p>you may see something like this. One key thing you need to keep in mind is that your repository must have internet permission.</p><p>You can update them by running</p><pre>shorebird upgrade</pre><p>Now you need to Log In to your account and to do so run the:</p><pre>shorebird login</pre><p>you will see a link on your terminal. You just need to browse the link and select Google account to sign in. After that, you will see a screen like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ts9-XPZdp-kQMhLmNA2MEA.png" /></figure><p>Here you need to run “shorebird init” to start the repository setup.</p><pre>shorebird init</pre><p>Shorebird may ask for some permission on the terminal. You need to accept this. If everything is correct then you can see something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YUhgjMMUGK2wJkYhyj7DNQ.png" /></figure><p>We have done everything we need. Now its time to release our builds.</p><p>To do so:</p><p>for android run:</p><pre>shorebird release android</pre><p>It may ask for some permission, then it will give you a .aab file for production. If you have any issues regarding Java/Gradle, just open the Android folder in “Android Studio” and let android studio sync with the files system.</p><p>If you need a .apk build then you need to run:</p><pre>shorebird release android --artifact apk</pre><p>Now you successfully send the build to production. To fix any bug on your app/ add any features. You do that in code and then to push the code to your production app, run:</p><pre>shorebird patch android</pre><p>It will send the build to production without generating any .aab/.apk to production. That is the beauty of CodePush.</p><p>Thanks for reading. If you face any problems, please let me know.</p><p>You can join our new Facebook group for better community support and job offers.</p><p>Facebook group: <a href="https://www.facebook.com/groups/805539441118000">https://www.facebook.com/groups/805539441118000</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9efdaf176e8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Way To Handle Api Request Swift]]></title>
            <link>https://mirzashowvik.medium.com/best-way-to-handle-api-request-swift-8d2794117397?source=rss-dc178aa1afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d2794117397</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Mirza Showvik]]></dc:creator>
            <pubDate>Sun, 28 May 2023 06:36:40 GMT</pubDate>
            <atom:updated>2023-08-19T02:56:33.788Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi, for a couple of days, I’ve been looking for an ultimate solution for API Consuming Single Function that can make all the requests, and also we can provide any data type as body data and response. And the most amazing thing is you don’t need any packages for that<br>Let me show you how I did it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3J58vYkdfc6xfCKC" /><figcaption>Photo by <a href="https://unsplash.com/@alinnnaaaa?utm_source=medium&amp;utm_medium=referral">Alina Grubnyak</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>First I made a class with URLSession.</p><pre>class API {<br>  func request&lt;T&gt;(url: String, method: String, body: Data? = nil, headers: [String: String]? = nil)<br>    async throws -&gt; T where T: Decodable<br>  {<br>    var request = URLRequest(url: URL(string: url)!)<br>    if method == &quot;POST&quot; || method == &quot;GET&quot; {//you can check more method here.<br>      request.httpMethod = method<br>      request.httpBody = body<br>      request.allHTTPHeaderFields = headers<br><br>      let (data, response) = try await URLSession.shared.data(for: request)<br>      guard let response = response as? HTTPURLResponse, response.statusCode == 200 else {<br>        throw CustomError.unexpected(code: 102)<br>      }<br><br>      let decoder = JSONDecoder()<br>      decoder.keyDecodingStrategy = .convertFromSnakeCase<br>      return try decoder.decode(T.self, from: data)<br><br>    } else {<br>      throw CustomError.unexpected(code: 405)<br>    }<br><br>  }<br><br>}</pre><p>Now we need to define CustomError here as we are manually throwing for URL validation.</p><pre><br>enum CustomError: Error {<br>    // Throw when an invalid password is entered<br>    case invalidPassword<br><br>    // Throw when an expected resource is not found<br>    case notFound<br><br>    // Throw in all other cases<br>    case unexpected(code: Int)<br>}</pre><p>Now We are good to go. Boom!!</p><pre>func fetchData() async {<br>  do {<br>    let body: Data? = nil<br>    let api = API()<br>    let headers: [String: String]? = nil<br>    let response: T = try await api.request(<br>      url: &quot;your api here&quot;, method: &quot;GET&quot;,<br>      body: body, headers: headers)<br>  } catch {<br>    print(&quot;Error fetching data: \(error)&quot;)<br>  }<br>}</pre><p>You can call this fetchData function where you need.</p><p>Example Repo: <a href="https://github.com/iamirzashowvik/World-University-Directory"><em>https://github.com/iamirzashowvik/World-University-Directory</em></a></p><p>Hope this solution will help you. If you get any better or more optimized way, Please leave a comment below. Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d2794117397" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MVVM Architecture MobXCli]]></title>
            <link>https://mirzashowvik.medium.com/mvvm-architecture-mobxcli-848651a6f19f?source=rss-dc178aa1afe9------2</link>
            <guid isPermaLink="false">https://medium.com/p/848651a6f19f</guid>
            <category><![CDATA[mobx-react]]></category>
            <category><![CDATA[mvvm]]></category>
            <category><![CDATA[mobx]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Mirza Showvik]]></dc:creator>
            <pubDate>Tue, 20 Sep 2022 07:09:30 GMT</pubDate>
            <atom:updated>2022-09-20T07:10:27.459Z</atom:updated>
            <content:encoded><![CDATA[<p>MVVM Architecture with React, TypeScript, Next using MobX</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*xJNUSiTKQ-Bhziyr.png" /></figure><p>Hello good people,<br>I was looking for a CLI for Mobx react MVVM Typescript. But Alas! I was unable to find one. Then I decided why not I made one and made it open-source.</p><p>Guys. I did some R&amp;D and was able to make the simplest way to do it. Okay enough talk, Let’s jump into the main part.</p><p>This is the npm package I published. <a href="https://www.npmjs.com/package/mvvmmobxcli">https://www.npmjs.com/package/mvvmmobxcli</a></p><p>Before getting into the project, keep in mind that we are gonna use react with TypeScript, MobX, MobX-React</p><ol><li>just install my package globally using the command:</li></ol><pre>npm install -g mvvmmobxcli</pre><p>2. If you don’t have MobX and MobX-react, run:</p><pre>mobxcli init</pre><p>This will install the required project.</p><p>3. After that you will need to run this command(mobxcli resource our_feature_name) to get the boilerplate code. Assume our feature is a minimalist counter.</p><pre>mobxcli resource counter</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*NL5Zq3MIo6nOziyVkAxZ7w.png" /></figure><p>you will see a folder called components and there will be an app folder after that you will find all the boilerplate code on Counter Folder.</p><p>4. As I’m using NEXT.JS, I wrap the controller of Counter in the _app.tsx file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bEv3mRchTHnOJwV5IYntfw.png" /></figure><p>5. Then I just import CounterView component. BOOM!! we are ready to run</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UkCL6q9kyVizDwgk9aXN4Q.png" /></figure><p>6. Run your project.</p><p>live demo: <a href="https://next-mvvm-mobx-ts-tailwind.vercel.app/">https://next-mvvm-mobx-ts-tailwind.vercel.app/</a></p><p>For more info, check out my GitHub repo:</p><p><a href="https://github.com/iamirzashowvik/next-mvvm-mobx-ts-tailwind">https://github.com/iamirzashowvik/next-mvvm-mobx-ts-tailwind</a></p><p>If you want to contribute, Just make a PR!!<br>Thank you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=848651a6f19f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>