<?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 Simon Muiruri on Medium]]></title>
        <description><![CDATA[Stories by Simon Muiruri on Medium]]></description>
        <link>https://medium.com/@simonmuiruri?source=rss-45b613c44a81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XT2kb1C7ZN6UoMtH3Y9mMA.jpeg</url>
            <title>Stories by Simon Muiruri on Medium</title>
            <link>https://medium.com/@simonmuiruri?source=rss-45b613c44a81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:39:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simonmuiruri/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[Build Variants and Flavours In Jetpack Compose]]></title>
            <link>https://simonmuiruri.medium.com/build-variants-and-flavours-in-jetpack-compose-00e07ee146f8?source=rss-45b613c44a81------2</link>
            <guid isPermaLink="false">https://medium.com/p/00e07ee146f8</guid>
            <dc:creator><![CDATA[Simon Muiruri]]></dc:creator>
            <pubDate>Tue, 30 Jan 2024 19:35:05 GMT</pubDate>
            <atom:updated>2024-01-30T19:38:45.534Z</atom:updated>
            <content:encoded><![CDATA[<p>I got motivated to do this by a question raised on some helpful Whatsapp group made up of some of the Best Mobile Engineers in Kenya, Africa and the World back in September 2023 (Four months ago). The question read:</p><p><em>“Hi guys, i have a question…Is there a way i can have one android app having different packages saved in one android phone twice?”</em></p><p>I was among the responders and advised him to us build variants and flavours, however, I knew I had tried it twice before but failed. I tried the 3rd time that day and still failed.</p><p>However today I am excited to share my achievement and a guide in this tutorial in Jetpack Compose.</p><p>Sit back, relax and enjoy.</p><h3>Prerequisites</h3><ol><li>Android studio- At least Latest Stable version</li><li>Internet connection</li></ol><h3>PART 1 — Setting the ground</h3><ol><li>Open your Android Studio and create an empty Compose Project</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wy_eTe4acfVwNGuca2sz1A.png" /></figure><p>2. Enter the App Name and click finish.</p><h3>PART 2 — The Actual Work</h3><p>3.Open the Build.gradle (App level) — <em>Where rubber hits the road</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*RGkAaqbuSuXqwlffvSsn6A.png" /></figure><p>4. Inside <strong>Android {}</strong> function, locate the following</p><p><em>.buildTypes</em></p><p><em>buildFeatures</em></p><p><strong>BuildTypes — </strong>by default you will find the release configuration (Variant). copy the whole function and rename it to debug(dafault). You can check the build variants by clicking bottom left on your IDE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*7690gV_hNkXhK7Ue8URnRQ.png" /><figcaption>Default Configuration</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ljq1RpzAhzSSSvr7-Gb5w.png" /><figcaption>buildTypes function</figcaption></figure><p>In release you can disable debugging so as to block logcat on release version of your app (prod) for security. You can enable minify and shrink resources in release version to produce a low size app for you to ship. remember customers can be biased toward small sized apps, keep it small</p><p>In the <strong>buildFeature</strong> function, set <strong>buildConfig to true</strong>- We will need it later long</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*ReOtOOl7dnaHPlGQS5q06w.png" /><figcaption>buildConfig</figcaption></figure><p>While still in the Android Function, Specify one your dimension. you can give it any name provided you will remeber it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*R5mRtVQbUMZQ5BrwOa1vKw.png" /><figcaption>dimesion</figcaption></figure><p>Create your flavours</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rux9zTk-LIeVvvVypNkIFg.png" /></figure><p>Create the product Flavors function and create your flavors. Ensure each flovour has have the all the four values and name them appropriately( <strong>Dimension, applicationIdsuffix, versionNameSuffix </strong>and<strong> resValue</strong>). For my case i have two flavors- free and paid, you can have as many as you want, to pint various environments such as test, pilot,production, offline. Please be creative, you can only go as far as your imaginations, no human is limited.</p><p>Bingo.. hit gradle sync and wait for it… check your build variant (bottom left).. seen what i’ve seen?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*e5agquUdn2U3NRbLK4fnog.png" /><figcaption>Note the difference?</figcaption></figure><p>Go to <strong>Settings</strong> &gt; <strong>Experimental</strong> and <strong>enable Configure all Gradle Tasks during sync</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hw769mVxWMjVEcIFmCzgug.png" /><figcaption>Click the check box , apply and OK button.</figcaption></figure><p>EUREKA!! You are almost there.</p><h3><strong>PART 3 — Almost There</strong></h3><p>Now go to the right side of the IDE and click Gradle</p><p>You should see such a menu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*KU9O2lVej5PE9flzFR5c0w.png" /></figure><p>Take of Build and Install — You new infinity stones- Just a double tap and “<em>thing start thinging</em>”.. You got it.?</p><p>For Build you can:</p><ol><li>clean your code</li><li>generate apks and aab files</li><li>build your project (rebuild) and many more.</li></ol><p>In the Install</p><ol><li>You can install various flavours of your app and also uninstall all or several flavours.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*iQl4tBMj_KsU5j58slxDEw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*TA2ZXiEIPKlepC7gRfcn2w.png" /></figure><p>Double on <strong>Build </strong>and open<strong> RUN t</strong>ab at the foot of your IDE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nbdNh2XmJ3Areg7O3sa4ZQ.png" /><figcaption>Click build</figcaption></figure><p>After a succesful run, do you note the new class created in Generated fold? Java(generated) with a gear icon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*3nFcRCvidEqhPm7yRBr8LA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*amMWsprti0RMrLtkAZwqtA.png" /><figcaption>Java(generated)- Do not edit the class.</figcaption></figure><p>Final Step. Open the main activity and make the following on your Main activity- (You ain’t limited either). This is just for demo purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7A5gZFEAGPqifwrw9z8waQ.png" /><figcaption>Check the Build config value and display the appropriate text.</figcaption></figure><h3>PART 5 -Results</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*r_0T3RHuiHOuXB_mLJaOlQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*VNNaVOLHZai4_xt_U2Iu-w.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*C5EtX67n03Ca-iY499QGLg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*fIhDYVbl7W4HwVfPOCgavw.jpeg" /><figcaption>Running both apps in split screen</figcaption></figure><p>Find the official documentation <a href="https://developer.android.com/build/build-variants">here</a></p><p>#Kotlin #Jetpackçompose</p><p>You can clone / fork this <a href="https://github.com/Muirush/Build-Variants-n-Flavors">repository</a> as well</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=00e07ee146f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience with Atlassian Collaboration tools]]></title>
            <link>https://simonmuiruri.medium.com/my-experience-with-atlassian-collaboration-tools-67ddd66738c8?source=rss-45b613c44a81------2</link>
            <guid isPermaLink="false">https://medium.com/p/67ddd66738c8</guid>
            <dc:creator><![CDATA[Simon Muiruri]]></dc:creator>
            <pubDate>Tue, 07 Jun 2022 06:09:40 GMT</pubDate>
            <atom:updated>2022-06-09T18:30:24.684Z</atom:updated>
            <content:encoded><![CDATA[<p>I heard about Atlassian Tools a few weeks before <a href="https://ace.atlassian.com/nairobi/">Atlassian Community Nairobi</a> hosted its 2nd event on my campus. Never heard of or attended their 1st event. In the 2nd event, I was part of the organizing committee where I was to be an MC (Master of ceremony) and also was in charge of sound systems. I was in 3.2 (Third year, 2nd semester). All my life had never heard of or used Atlassian tools due to low exposure. However, I had been selected to take part since I was believed to be vocal as I was a class representative and had represented the University in two hackathons while in my 3.1 semesters.</p><p>The D-Day I was very eager to hear what Atlassian is, what they do, and what kind of jobs they offer. Things got interesting immediately after the Fortune 500 slide was shared. All my dream companies were there. Something clicks in my mind: To work in these companies, Atlassian Collaboration tools are a must. I was grateful to learn a new thing in the 1st few moments of the event.</p><p>As the sessions went on, things were tough for me, new terms.. actually new jargon here and there but knowing I need to work in one of the fortune 500, I had to be keener, ask questions and as well answer questions as speakers were sharing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*2DciB9c53dOwPCPz" /><figcaption>With friends in one of Atlassian Community Nairobi events at iHub Nairobi</figcaption></figure><p>I fell in love with their 5 values i.e:</p><ol><li>Open Company no bullshit</li><li>Play as a team</li><li>Build with heart and balance ( My favorite)</li><li>Be the change you seek (My driving force )</li><li>Don’t f@$K the customer (Has kept me in the freelancing world for more than 1 year)</li></ol><p>I later became a Google Developer Student Clubs Lead (pioneer) for my campus (Read my journey <a href="https://simonmuiruri.medium.com/my-journey-as-a-gdsc-lead-at-dsc-chukauni-faa5e03cc2f4">here</a> ) and this made it possible for me to work closely with Techno Science Club in the school and organized more events with Atlassian Community Nairobi and other events from Mongo DB and Africa’s Talking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*YDZ7Tqgft94MQIks" /><figcaption>Bit Bucket event at the University of Nairobi</figcaption></figure><p>Consistency is key in every community. Taking the extra mile in everything you learn a meet-up brings the whole difference. I kept on reading more about tools and trying some dummy projects here and there to see how things will unfold. I am happy to write about two scenarios that have been useful to me.</p><h3>“ShipIT 3 “ Hackathon 2022</h3><p>Been able to work with a team that is coming up with a plugin to be used on top of Confluence to change the whole dynamics of daily stand-ups. Stay tuned, we shall make the big announcement soon. The exciting part is that we are collaborating using Confluence to organize our work, create documents that normally help us gauge our progress, and discuss everything in one place.</p><h3>Collaborating with clients</h3><p>Over the last year, I have been working with a client from Upwork based in India who is in turn an employee of a hiring company based in Fremont in California (US). In many of our calls and either my client or staff from the company shared their screens, I used to see them either use Confluence to mostly share reviews sheets after the questions have been reviewed by both internal and external experts. In another scenario, I saw them work use Jira Work Management to keep track of active milestones, pending and done ones. At one point I had to notify the client about my experience with the tools and later long I assisted him while he was stuck. I think that could be one of the reasons we have worked with him and he has ended up recommending me to his colleagues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/0*O978D3Ekt8WmOw5y" /><figcaption>Feedback from the client in one of many projects</figcaption></figure><p>Every person out there should ensure they are well equipped with Atlassian collaboration tools knowledge. I have seen quite a number of job postings requiring one to have such skill. All companies create products in teams and these teams will need tools to help them collaborate and improve their efficiency</p><p>“Wolves hunt in a pack, elephants graze in the herd, Lions live a pride; people will always yield much in a well-structured team”~ Simon Muiruri 2021</p><p>Took part in crew organizing for Atlassian Team ’22 Viewing Party in Nairobi.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67ddd66738c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Android (Kotlin)Trainer of Trainer]]></title>
            <link>https://simonmuiruri.medium.com/google-android-kotlin-trainer-of-trainer-c49e53c61fea?source=rss-45b613c44a81------2</link>
            <guid isPermaLink="false">https://medium.com/p/c49e53c61fea</guid>
            <dc:creator><![CDATA[Simon Muiruri]]></dc:creator>
            <pubDate>Mon, 06 Jun 2022 06:32:58 GMT</pubDate>
            <atom:updated>2022-06-07T05:16:55.570Z</atom:updated>
            <content:encoded><![CDATA[<p>This is an amazing journey, my 1st employment role after campus. Got a chance to train Wajir South Training and Vocation college in Wajir South but due to challenges, I ended training 11 trainers some weeks later at KTTC (Kenya Teachers Training College) in Nairobi and this time i had a team from Mandera Technical Training Institute(5), Wajir South Training and Vocation college(2) and Garissa National Polytechnic (4) It is a journey with ups and downs where by i endured the storm. It comprises of the the report on what i achieved, challenges, opportunities and lessons learnt.</p><h3>The Training</h3><p>The training begun on Monday 25th April.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*REulb7mIx4JnJzsdrkZusg.jpeg" /><figcaption>The Class</figcaption></figure><h3>DAY 1</h3><p>After introductions, i introduced my class to Figma and guided them in creating Github accounts and developer accounts where they will be having their badges once they do a pathway. An initiative they like. This link is our first design of a <a href="https://www.figma.com/file/Ejri8Zd9IyrHK4KJXqU1Eh/Untitled?node-id=0%3A1">dummy profile.</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SuD8wFZm_TP3uLsYlTxpJQ.jpeg" /></figure><h3>DAY 2</h3><p>Where rubber meets the road. We begun our journey into the basic of Kotlin. Guided my trainees to intelliJ where they used Kotlin REPL ( read–evaluate–print loop) to write their 1st Kotlin code “Hello World”. All the learners had a history of Computer Science or ICT and therefore the going was easy. They were able to write functions, call functions, create and assign data to variables, carry out arithmetic and work with various data types such as string, integer, and float.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJm--VLUz72DC542uL-1BQ.jpeg" /></figure><h3>DAY 3</h3><p>..From hello world to Change the world… We switched gears to Android Studio. The trainees were very excited to design, create and run their first ever android application on their physical devices. They were able to create and interact with Constrained layout, Relative layout and Linear Layout (with both vertical and horizontal orientation). They were also able to create views such as Text View, Edit Text, Image View and Button.The day was graced by a visit by google officials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eLtx5XJmKaYK59s67nSfsQ.jpeg" /><figcaption>1st application</figcaption></figure><h3>DAY 4</h3><p>We interacted and created various layouts, used dataBinding as i explained viewBinding. We also understood the anatomy of an android app whereby an android app should atleast contain: Activity, Resources (images, layouts..) and Gradle files</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XBMaj27D2zEA8_9YH3dBKw.jpeg" /></figure><h3>Day 5</h3><p>I guided my class on Navigation from one activity to another using intents. We had look at implicit and explicit intents. We also tackled navigation from one fragment to another fragment using navigation graph. Was able to demonstrate navigation using bottom menu navigation. By the end of physical training, all learners could create a simple application and interact with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*MS3tmj-72DgaM4NbHu_P1A.jpeg" /><figcaption>Learners PC</figcaption></figure><h3>Challenges</h3><p>The whole thing was not a walk in the park. I almost gave up at one point. After a 13 hr journey from Nairobi to Wajir, I was unable to meet with my contact person due to communication hitches and never made it to the institution. My attempts to look for the institution on my own only landed me in more trouble as i almost lost my way. Enduring 36<strong>°C </strong>with 1 litre cold water bottle retailing at Sh 250 (price for strangers like me), overpriced food, limited water to wash some apples i had, (i ended up using an alcohol based sanitizer to clean them), being charge twice in lodging for the day and night as i patiently waited for the contact person to perhaps receive my calls or reply to my sms. Internet connectivity was an issue and i had to obtain a small phone which was almost double the normal price.</p><p>Returning to Nairobi without training was one of my lowest moments, I was frustrated. We used to have weekly call whereby every on will share their weekly progress whereas i had nothing to share. I was about to write my resignation later. It was a tough time, in every meeting i used to feel i am a failure but had little hope that things will change. Some people that i turned to could tell me to “Count it as funded trip to Wajir and walk away”, knowing my identity, what i wanted to achieve kept me pushing the program manager to look for a way to ensure i train.</p><p>In the physical class at KTTC, i was the youngest. All my trainees had a degree and a certificate on top but i just graduated the other day. Of of my best trainees actually had they 1st degree the year i was in class 4. Another one was a masters student. This almost brought the inferior complex but what I learnt while serving as a the pioneer lead for Google Developer Student Clubs Lead Chuka University (2020/21); <a href="https://simonmuiruri.medium.com/my-journey-as-a-gdsc-lead-at-dsc-chukauni-faa5e03cc2f4">read my journey here</a> kept me sailing.</p><h3>Opportunity</h3><p>The program was a success to me:</p><ol><li>I have identified 3 students that are really interested and even after the contract ends, i assured them to hold their hands and ensure they become Android developer. With experience i have gained in leading a community and volunteering in other communities, i believe i will mentor them at 0 fee.</li><li>It landed me into another similar job that i’ll be reporting middle June 2020.</li><li>On our last call, i was named among the best performing, outstanding and committed trainer by our seniors.</li></ol><h3>Lessons</h3><ol><li>What ever you do, do it with your whole heart. The success of this project had be go beyond the normal as nothing happens in comfort zone. #BuildWithHeartAndBalance</li><li>“The Unexamined Life is Not Worth Living”. Challenges are there to make us and not break us. We should always remain focused to the goal.</li></ol><h3>Conclusion</h3><p>Special thanks to Africa Center for Advanced Training (ACAT), my family members, My Team Lead, Team from Google and my trainees.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c49e53c61fea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey as a GDSC Lead at Dsc Chukauni]]></title>
            <link>https://simonmuiruri.medium.com/my-journey-as-a-gdsc-lead-at-dsc-chukauni-faa5e03cc2f4?source=rss-45b613c44a81------2</link>
            <guid isPermaLink="false">https://medium.com/p/faa5e03cc2f4</guid>
            <category><![CDATA[dsc-google]]></category>
            <category><![CDATA[clubs]]></category>
            <category><![CDATA[cd]]></category>
            <category><![CDATA[community]]></category>
            <category><![CDATA[developer-student-club]]></category>
            <dc:creator><![CDATA[Simon Muiruri]]></dc:creator>
            <pubDate>Sat, 21 Aug 2021 05:43:07 GMT</pubDate>
            <atom:updated>2021-08-23T02:56:58.646Z</atom:updated>
            <content:encoded><![CDATA[<p>I remember very well, it was around 8 pm on 18th August 2020. I decided to have a random visit to my Gmail accounts only to be gracefully ‘Slapped’ by the “We are thrilled…” email from @GoogleDeveloperStudentsClubs.</p><p>Around November 2019, I came to know about DSCs when I was part of a team that represented Chuka University at a Hackathon in Meru University #MUSTHACK2019, Which changed my life completely. I could see tweets about DSC Meru and DSC DeKUT. I felt bad since we never had a club handle to tweet about our team. The burden to start a Community in my University gave me restless nights. I kept on checking when the applications will be open. I applied on the first day.</p><p>Being a Lead during the Covid-19 was another thing. Hosting events online, marathon semesters, exams, no public gatherings was another experience. I learned how to host meetings online during this time.</p><p>I was lucky to work with a very supportive core team.</p><p>During my tenure, I have seen people drastically upskill and embracing modern ways of doing things. I have seen students in my University embrace communities and enjoying the benefits of a community. I normally say <em>“ Just as elephants move in a herd, lions hunt in a pride, gazelles feed in a herd and wild dogs chases in a pack, </em><strong><em>then a developer needs a community</em></strong><em>”</em></p><p>We had a chance to host 6 #FlutterFridays among other events, after which I have seen a couple of guys doing Flutter.</p><p>As a Lead, I was able to host 16 events and with a total number of 533 attendees, both Kenyans and International attendees. The community has 254 members who have registered and we operate in two Whatsapp groups.</p><p>The role also enhanced my network which translates to my net worth. During the time, I became a freelancer at Upwork, got an internship role, and had a chance to participate in more than 5 interviews. My skillset has really improved and the contribution I had in GitHub was more than the contribution I had since joining Github back in 2018.</p><p>This was one of the Best Experiences in my life so far.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faa5e03cc2f4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>