<?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 Doaa Abdeen on Medium]]></title>
        <description><![CDATA[Stories by Doaa Abdeen on Medium]]></description>
        <link>https://medium.com/@doaaabdeen9?source=rss-87a00dfb21a0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*s0TS6_tWnfPuyyO5</url>
            <title>Stories by Doaa Abdeen on Medium</title>
            <link>https://medium.com/@doaaabdeen9?source=rss-87a00dfb21a0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 18:16:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@doaaabdeen9/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[Setting Up CI/CD for Flutter Apps with Fastlane and GitHub Actions on Android]]></title>
            <link>https://medium.com/@doaaabdeen9/setting-up-ci-cd-for-flutter-apps-with-fastlane-and-github-actions-on-android-ebc222479003?source=rss-87a00dfb21a0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebc222479003</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Doaa Abdeen]]></dc:creator>
            <pubDate>Thu, 09 Jan 2025 20:07:34 GMT</pubDate>
            <atom:updated>2025-01-09T20:07:34.574Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ztaSnOsVW4gtfYTvg_Hjvw.png" /></figure><h3>1. Introduction</h3><p><strong>What is CI/CD?</strong><br>CI/CD stands for <strong>Continuous Integration</strong> and <strong>Continuous Deployment</strong>. It’s a development practice that automates building, testing, and deploying applications. The primary goal of CI/CD is to streamline the development lifecycle by catching errors early and deploying updates quickly, ensuring a smoother and faster release process.</p><ol><li><strong>Continuous Integration (CI):</strong><br>CI involves automatically integrating code changes from multiple developers into a shared repository (like GitHub). After each integration, automated builds and tests are triggered to ensure the new code doesn’t break the existing application. This process makes it easier to identify and resolve bugs early.</li><li><strong>Continuous Deployment (CD):</strong><br>CD automates the process of delivering the application to end-users. Once the code passes all tests, it’s automatically deployed to production or a designated environment, such as the Google Play Store. This reduces manual work and ensures that users receive updates faster.</li></ol><p><strong>What This Article Covers:<br></strong>In this article, I’ll walk you through the process of setting up a <strong>CI/CD pipeline</strong> for a Flutter Android app using Fastlane and GitHub Actions. By the end, you’ll have a fully automated system that:</p><ul><li>Builds your Flutter app.</li><li>Deploys it to the Google Play Store.</li><li>Provides a consistent and reliable workflow.</li></ul><p>Throughout the article, I’ll include code examples to make each step clear and actionable</p><h3>2. Prerequisites:</h3><p>List everything the reader needs to follow along:</p><ol><li>A Flutter project (already set up).</li><li>An Android Developer account for publishing to the Google Play Store.</li><li>A GitHub repository for the Flutter project.</li><li>Basic knowledge of Flutter, Fastlane, and GitHub Actions.</li></ol><h3>3. Setting Up Fastlane for Android:</h3><p><strong>Step 1:</strong> Install Fastlane.</p><pre>gem install fastlane --verbose</pre><p><strong>Step 2:</strong> Navigate to your Flutter project and initialize Fastlane for Android.</p><pre>cd android<br>fastlane init</pre><p><strong>Step 3:</strong> Configure Fastfile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4_6YtbltAbl_e-JqGPT-GA.png" /></figure><h3>Explanation of the Code:</h3><ul><li><strong>Android App Bundle Path:</strong><br>Replace /path/to/your/flutter/project/... with the actual path to your AAB file. This file is generated after running the Gradle build.</li><li><strong>Gradle Build:</strong><br>The gradle(task: &quot;bundleRelease&quot;) command runs the bundleRelease Gradle task to generate a release AAB.</li><li><strong>Upload to Play Store:</strong><br>The upload_to_play_store method automates the upload of the AAB to the Google Play Store. Replace the placeholder values with:</li><li><strong>package_name:</strong> Your app&#39;s unique package name (e.g., com.example.app).</li><li><strong>json_key_data:</strong> The credentials for your Play Store account, stored securely as an environment variable (PLAY_STORE_CREDENTIALS).</li><li><strong>track:</strong> Choose the release track (internal, beta, or production).</li><li><strong>release_status:</strong> Set the release status (draft, completed, etc.).</li><li><strong>Slack Notification:</strong><br>The slack method sends a message to a Slack channel after the deployment. Replace the slack_url and channel with your actual Slack webhook URL and channel name</li></ul><h3>4. Setting Up GitHub Actions:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D_y7QYGoPsKv9MHfoqXi7g.png" /></figure><h3>Explanation of the Workflow</h3><ol><li><strong>Trigger:</strong><br>The workflow is triggered when a push is made to the main branch. You can change the branch name to match your project&#39;s branch.</li><li><strong>Set Up Java and Flutter:</strong></li></ol><ul><li>Java is required for building Android apps.</li><li>Flutter is set up with a specific version (3.27.1) and the stable channel. Adjust these values as per your project requirements.</li></ul><ol><li><strong>Cache Flutter Dependencies:</strong><br>Caching Flutter dependencies saves time by reusing previously downloaded packages.</li><li><strong>Clean and Get Dependencies:</strong></li></ol><ul><li>flutter clean ensures the build starts fresh.</li><li>flutter pub get fetches the dependencies defined in pubspec.yaml.</li></ul><ol><li><strong>Install Additional Dependencies:</strong><br>Ninja and GTK are required for building Android apps on Ubuntu.</li><li><strong>Keystore Management:</strong></li></ol><ul><li>The keystore file is decoded from a base64-encoded string stored in GitHub Secrets.</li><li>A key.properties file is created with the keystore details, ensuring secure and seamless app signing.</li></ul><ol><li><strong>Build the App Bundle:</strong><br>The flutter build appbundle --release command generates the AAB file, which is required for Google Play Store uploads.</li><li><strong>Debugging Information:</strong></li></ol><ul><li>The ls command lists the contents of the directory where the AAB file is generated.</li><li>The absolute path to the AAB file is printed for clarity.</li></ul><ol><li><strong>Fastlane Deployment:</strong><br>Fastlane is used to upload the AAB to the Play Store. Make sure to configure Fastlane correctly with your project before running this step</li></ol><p><strong>You can use the following command to upload your app to the Google Play Store using Fastlane:</strong></p><pre>fastlane upload_to_play_store</pre><h3>Security Tips</h3><ul><li>Store sensitive data (like keystore passwords and Play Store credentials) in GitHub Secrets.</li><li>Never hardcode credentials or sensitive information in your workflow files</li></ul><p><strong>And that’s it! With just one command, you’ve successfully uploaded your app to the Google Play Store using Fastlane. It’s that simple to automate the deployment process and save valuable time. Thank you for reading, and happy coding!😊🎉</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebc222479003" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>