<?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 Bhavesh Sharma on Medium]]></title>
        <description><![CDATA[Stories by Bhavesh Sharma on Medium]]></description>
        <link>https://medium.com/@bhavesh3005sharma?source=rss-290b0f9f696------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Gg61Hs-92aHZMALu538J1Q.jpeg</url>
            <title>Stories by Bhavesh Sharma on Medium</title>
            <link>https://medium.com/@bhavesh3005sharma?source=rss-290b0f9f696------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 08:44:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhavesh3005sharma/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[How to replace Koin with Hilt for Dependency Injection]]></title>
            <link>https://medium.com/getpowerplay/how-to-replace-koin-with-hilt-for-dependency-injection-71b37c62d667?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/71b37c62d667</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[koin]]></category>
            <category><![CDATA[dagger-2]]></category>
            <category><![CDATA[dependency-injection]]></category>
            <category><![CDATA[dagger-hilt]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Wed, 19 Oct 2022 04:51:48 GMT</pubDate>
            <atom:updated>2022-10-20T10:14:48.565Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bed9ZhBW6NE6tD2jnCLoxw.png" /></figure><p>Hi everyone! I am back with another blog of my previous sprints. With our rapidly increasing code size, we introduced dependency injection (DI) in our codebase. When we compared the two most popular dependency injection frameworks on Android, Koin &amp; Dagger, we observed that Koin -</p><ul><li>Requires fewer lines of code to inject dependency,</li><li>Doesn’t have many complications of the dependency graph, and</li><li>Can inject objects anywhere, even in object class holding static references</li></ul><p>Because of these advantages, we implemented Koin initially. Few classes down the line, however, we started to see many flaws with it, forcing us to make a switch to Dagger-Hilt. We realised Dagger-Hilt excelled in several ways too.</p><ul><li>Dagger-Hilt gave us errors at compile time unlike Koin which threw them at runtime, resulting in fewer bugs</li><li>Dagger’s runtime initialisation also reduced the app’s startup time, and</li><li>Hilt created a testable code architecture setup</li></ul><p>Our app has 30+ network API classes, 30+ Repositories, 50+ ViewModels &amp; 100+ views. At this scale, it was a gargantuan task to implement Hilt. Let’s discuss the architectural approach followed we followed to get this done.</p><h3><strong>Steps at a glance</strong></h3><ol><li>At first, we created module to inject the API interface classes.</li><li>Secondly, APIs were injected into the Repository classes.</li><li>Then we injected the Repositories into the ViewModels.</li><li>We have logical components as well in our code. We call them Utils or UseCases. So now it’s their time. They were also crushed in this. ☠️</li><li>After that, all Activities, Fragments, &amp; Views were targeted.</li><li>We have achieved 70% DI in our app by Hilt, and it is running smoothly.</li><li>Next, our target is WorkManagers. We are using WorkManagers for a lot of tasks in our app. We have approximate 20 workers. It’s a time when we need to think about the right way of its implementation.</li><li>For better or extracted implementation of our worker classes, we have to build WorkerInterfaces.</li><li>In the end, finally, the Application class &amp; build.gradle is freed from Koin.</li></ol><h3><strong>A glimpse of common code &amp; problems with solutions/tips</strong></h3><ol><li><strong>8/10 time I face this issue 🤯😪</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eRkiAa0kSxD3gwevRqHzyg.jpeg" /></figure><p><strong>Suggestion</strong>: This is a useless error that does not signify the exact problem in your code. The solution that worked for me is to just go back to the changed files, check the Hilt annotations used and see how DI is implemented. The first time I came across it was when I missed adding some dependencies, which helps in multi-module Hilt communication.</p><p><strong>Note</strong>: I am not getting the actual error in build root.</p><p><strong>2. How to implement DI if some data is to be passed in the </strong><strong>ViewModel constructor at runtime and other dependencies are injected by Dagger. I have found the following three approaches work best:</strong></p><ul><li>Dagger factory + components, etc. (lengthy approach)</li><li>Use an external library like AutoFactory, etc.</li><li>Use AssistedFactory in the latest version of the Dagger &amp; Hilt.</li></ul><p>I chose the last way. Here, we write the function signature and leave other things to Hilt. Following is a code snippet of AssistedFactory’s usage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b9e66e2cab60fe5c672a99ddbe266c02/href">https://medium.com/media/b9e66e2cab60fe5c672a99ddbe266c02/href</a></iframe><p><strong>3. Use of </strong><strong>SavedStateHandle in </strong><strong>ViewModel</strong></p><p>Sometimes you need some data in ViewModel, which is coming from the intent of the activity. So Activity-A passes data to Activity-B. Activity-B extracts the info and passes it to Activity-B’s ViewModel via the constructor. There is a better approach to do it.</p><p><strong>Correct: </strong>With the help of SavedStateHandle, you can access the corresponding view’s intent or bundle data directly into the ViewModel. There is no need to pass it from activity/view. It&#39;s Hilt&#39;s responsibility to inject it into ViewModel.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c926b35590b792fecdc99b70eb80aa7/href">https://medium.com/media/4c926b35590b792fecdc99b70eb80aa7/href</a></iframe><p><strong>4. Dagger does not support injection into static scope</strong></p><p>Some of our static methods are in the companion objects but depend on the external classes. These methods&#39; dependencies are easily injected by Koin, But it is not possible with the Dagger. So we moved the methods out of static scope.</p><p>For some classes, we are bound to create them as object classes due to their heavy uses. For them, I came up with an idea to inject a dependency into them.</p><p><strong>Example</strong>: SharedPreference is one such object which needs context to build its object, which is used in our BaseSharedPreference class. But, we want our BaseSharedPreference to be an object instead of a class due to its heavy uses. Since it’s a one-time initialisation, memory consumption is not a big problem for us. We passed context from the Application class via a setter.</p><p><strong>5. Hilt with WorkManagers</strong></p><ul><li>I have used the HiltWork annotation and AssistedInject to inject workers into the app</li><li>We are utilising the same worker at multiple places. Therefore, we have moved the work request creation to the Worker class instead of calling OneTimeWorkRequest.Builder multiple places</li><li>But the problem is that we can’t create the object of a worker class annotated with AssistedInject, so we can’t call our common work request creation function from the views/ViewModels.</li><li>It’s a challenging implementation where we extracted its uses with the help of interfaces. Now we are injecting the WorkerInterface into the views/ViewModels, and calling work requests creation functions with their help.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df03dba3408e6618ad79b22d2eaea905/href">https://medium.com/media/df03dba3408e6618ad79b22d2eaea905/href</a></iframe><p><strong>6. What to do for the classes where Hilt doesn’t provide direct support to add them to Hilt Graph?</strong></p><p><strong>Solution:</strong> Create EntryPoint Interface for them and inject the required dependencies through it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b9d40ce10afd7a4208d4fbf2858db04/href">https://medium.com/media/6b9d40ce10afd7a4208d4fbf2858db04/href</a></iframe><p>Powerplay: We at Powerplay are reimagining construction management one step at a time; Have a look at the app. Link for <a href="https://play.google.com/store/apps/details?id=in.powerplay.android.fieldapp&amp;hl=en_IN&amp;gl=US">Android</a> and <a href="https://apps.apple.com/in/app/powerplay-manage-projects/id1552606148">Apple</a>. <br>Do you want to join us? Check out <a href="https://www.getpowerplay.in/career/">Powerplay Career</a></p><p>Thank you for reading, hope it helps. Feedback &amp; suggestions are most welcome in the comment section. ✨</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71b37c62d667" width="1" height="1" alt=""><hr><p><a href="https://medium.com/getpowerplay/how-to-replace-koin-with-hilt-for-dependency-injection-71b37c62d667">How to replace Koin with Hilt for Dependency Injection</a> was originally published in <a href="https://medium.com/getpowerplay">Powerplay</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intro to Motion Layout…]]></title>
            <link>https://bhavesh3005sharma.medium.com/intro-to-motion-layout-4482b0ca0bdd?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/4482b0ca0bdd</guid>
            <category><![CDATA[development-and-growth]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[solutions]]></category>
            <category><![CDATA[motionlayout]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Tue, 15 Mar 2022 05:42:29 GMT</pubDate>
            <atom:updated>2022-03-15T05:42:29.410Z</atom:updated>
            <content:encoded><![CDATA[<p>In my last sprint of <a href="https://medium.com/u/724960ebaa4d">Powerplay</a> I had to integrate a lot of invite banners in our android application for various invite experiments. All of them had the same functionality that on swipe up, the banner should disappear from the screen and on swipe down it should restore its state.</p><blockquote><strong>How I Achieved it ?</strong></blockquote><h4>APPROACH -1 : Hacky Solution</h4><p>Initially I tried a hacky solution. Actually at every place we have a banner at the top and recycler view list just below it.</p><p>So we added an extra item in the list that is of the type <em>Banner </em>and added a scroll listener on the recycler view list. As per our small algorithm steps :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2cVt3oOqziBA2pTpkPxviA.png" /></figure><p>As you can see in the above code the on scroll <strong><em>isScrollingUp</em></strong> variable gets updated and since on its update we are calling</p><pre><em>adapter?.notifyItemChanged(0)</em></pre><p>therefore <strong><em>onBindViewHolder</em></strong> will be called every time on its update and it’s a place where we will update this banner’s visibility on the basis of above variable.</p><p>But this approach was not long lasting and had a lot of shortcomings. Few of them are :</p><ul><li><em>onScrolled </em>is not called up when items in the list are less or only that much which can be easily fit into a single page.</li><li>Let at a time your screen can host 10 items of the list and now you are at 20–30 items in this case scrolling up/down will not gives expected result because items 1 will be at the top so its not a part of visible list now, so it will never be visible.</li><li>Scrolling of the list is hampered a lot in some cases &amp; sometimes recycler view is not providing the smooth scroll.</li></ul><h4>APPROACH -2 : Motion Layout</h4><p>I have a bit idea that motion layout can solve this issue with it’s animations so I tried it out. Let’s discuss it’s solution with Motion layout.</p><p>Motion Layout is a extended class of Constraint Layout which provides you the easy way to add animations, motion of widget in your app. Simple steps to follow are -</p><ul><li>You need to change the parent layout to Motion Layout in which you want add motions.</li><li>Motion Layout uses a XML file <em>motion_scene.xml </em>which contains the whole information of the transitions, animation start constraints &amp; animation end constraints of the all widgets.</li><li>Add above defined xml file to Motion Layout.</li></ul><pre>app:layoutDescription=&quot;@xml/<em>motion_scene&quot;</em></pre><p>Basic schema of layoutDescription <em>motion_scene.xml </em>file.</p><ul><li>ConstraintSet (start) : Starting constraint of the widget before the start of animation.</li><li>ConstraintSet (end) : Final constraint of the widget that should sustain after the end of animation.</li><li>Transition : It is the most important segment or we can say core of the whole motion. It have the information like when to start animation, how to start animation, what will be the path or flow of animation, time of animation, how to show the results, etc.</li></ul><blockquote><strong><em>My solution of the above problem with Motion Layout —</em></strong></blockquote><p><strong>Fragment XML file :</strong> It has a motion layout with majorly two views one is invite banner and other is SwipeRefreshLayout with embeded recycler view.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f7d66f40a0122c4f1a750b942e37deb/href">https://medium.com/media/5f7d66f40a0122c4f1a750b942e37deb/href</a></iframe><p><strong>@XML/whatsapp_banner_list_scene :</strong> It has three components.</p><ol><li>ConstraintSet (start)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*jDIZI1Hx9T6HPcLX2jHgzA.png" /></figure><p>2. ConstraintSet (end)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*gl_WoVpMAslUSv9UyFv6Ww.png" /></figure><p><strong><em>Why “ &lt;PropertySet motion:visibilityMode=”ignore” /&gt;” is declared?</em></strong>👀🧐</p><p>If you want to change the visibility of any view which is used in the motion layout then you need to declare this property. We don’t want to show the banner to all the users. Only the Users that are the part of our experiment will get this type of experience.</p><p>3. Transition</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*Lf4L0Sge0FonEeYKefnz_A.png" /></figure><p>Let’s discuss each attribute used in above file -</p><ul><li>OnSwipe : on which act the transition should occur.</li><li>duration : determine the time of transition between start &amp; end constraint sets.</li><li>dragDirection : refers to the progress direction of drag</li><li>dragScale : scale factor to adjust the swipe by. Its value is 1 so won’t show any effect.</li><li>touchAnchorId : on which view’s touch the transition should occur.</li><li>touchAnchorSide : from which side of the view if touched or acted transition should start.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/42c9e9711dab28932fa396180eea6a30/href">https://medium.com/media/42c9e9711dab28932fa396180eea6a30/href</a></iframe><blockquote><strong><em>Results</em></strong></blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1K1ALojlpIM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1K1ALojlpIM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1K1ALojlpIM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c68db23004d7d392f3efc12f49417526/href">https://medium.com/media/c68db23004d7d392f3efc12f49417526/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*XIgE_v89XZrCFSmkZGMCmA.png" /><figcaption>Intro to Motion Layout End up here!!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4482b0ca0bdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[End of this Amazing Journey : GSoC-21]]></title>
            <link>https://bhavesh3005sharma.medium.com/end-of-this-amazing-journey-gsoc-21-7a16c0febfe8?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a16c0febfe8</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[librehealth]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[gsoc]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Sat, 28 Aug 2021 11:38:04 GMT</pubDate>
            <atom:updated>2021-08-29T18:08:36.257Z</atom:updated>
            <content:encoded><![CDATA[<h3>End of this Amazing Journey : GSoC-21</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*hyTM-vmsC0XJYCf0.png" /></figure><p>Hello Everyone, the GSoC-21 program has been ended and I had submitted my detailed final work report as well. I am writing this blog to express my views about GSoC 21, the experience that I gained through this program &amp; with the LibreHealth organisation.</p><p>I will also provide a brief of all the work done during this journey with relevant links &amp; details.</p><ul><li>Project Title: Scale-up mHBS Applications.</li><li>Primary mentor: <a href="https://forums.librehealth.io/u/sunbiz">Saptarshi Purkayastha</a></li><li>Backup mentor: <a href="https://forums.librehealth.io/u/shbucher">Sherri Bucher</a></li><li>Student: <a href="https://forums.librehealth.io/u/bhavesh3005sharma">BHAVESH SHARMA</a></li><li>Project Link: <a href="https://forums.librehealth.io/t/project-scaling-up-the-mobilehbs-dhis2-tracker-and-trainer-applications/4156">Project Thread Link</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*aIzdxuHJ3MtDQ2tD.png" /></figure><h3>Overview</h3><p>In various low/middle-income countries children die in just a few days after their birth due to the inadequate supply of facilities that they require. The important fact is that all of these deaths are Preventable and can be prevented by providing proper knowledge to the mothers of the babies and other people and by providing a proper tracker facility to track the health status of the baby in the early days of his birth.</p><p>As a sort of solution MHBS applications are launched which is a set of 4 applications. Out of which I had worked on the mhbs-trainer and mhbs-tracker. Tracker is used for data collection which is built from the dhis2 mobile application and trainer is used to access the resources.</p><p>The goal of this project is to develop the scale-up version of the existing mHBS application, updating the old code base and adding new features, providing a feature to access media resources uploaded on the dhis2 through the trainer app which will be used for the training of the individual.</p><h3>Objectives Of The project</h3><p>1. Add Media Module.</p><p>2. Update mHBS-tracker with the latest dhis2 app.</p><p>3. Add offline support &amp; sync facility for all media files.</p><p>4. Add app usage tracking module.</p><p>5. Standardize code quality.</p><h3>Contributions</h3><p>I am listing down the important MRs and their link. For the details please check the <a href="https://gist.github.com/bhavesh3005sharma/59f32064f727bef967a1a05cdd15c4fc">Final Report</a>.</p><ul><li>Update mHBS-Tracker &amp; Set-up CI/CD — <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/12">Merge Request 12</a></li><li>Added Media Page | Added Feature to play any type of media file | Set-up CI Pipeline — <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/194">Merge Request 194</a></li><li>Added offline support — <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/195">Merge Request 195</a> &amp; <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/198">Merge Request 198</a></li><li>Added System to track app usage — <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/196">Merge Request 196</a></li><li>UI Improvements &amp; Filtering Options — <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/199">Merge Request 199</a></li><li>Exported Mhbs Tracker app Metadata — <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/16">Merge Request 16</a></li><li>Passed user credentials to trainer app — <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/13">Merge Request 13</a></li></ul><blockquote><em>Other Supporting MRs &amp; Tested/Fixed Issues :)</em></blockquote><ol><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/201">MR-201</a> | <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/196">Issue-196</a> — Updated cordova secure storage plugin.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/14">Issue-14</a> — View data completion form.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/13">Issue-13</a> — Create <em>seconds </em>data element for OSCE B.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/10">Issue-10</a> — Tested all the features of <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/uploads/0728128fc5240cbd2797e0d707dd27ae/Module_1_mHBS_General_User_Guide_JANUARY_30_2019_FINAL.pdf">Module_1_mHBS_General_User_Guide_JANUARY_30_2019_FINAL.pdf</a> in the new tracker app.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/11">Issue-11</a> — Need to change frequency of tracker forms and HBB survey.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/12">Issue-12</a> — Need to modify HBB infrastructure survey.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/14">MR-14</a> | <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/4">Issue-4</a> — Fixed mHBS logo.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/15">MR-15</a> — Fixed mHBS tracker app CI-Pipeline.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/197">MR-197</a> | <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/193">Issue-193</a> — Removed embedded — Keeping baby warm video.</li></ol><h3>Weekly Blog Posts</h3><ol><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/06/community-bonding-at-librehealth.html">Community Interaction</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/06/first-week-of-coding-7june-11-june.html">Week 1</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/06/second-week-of-coding-14-june-18-june.html">Week 2</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/06/third-week-of-coding-19-june-25june.html">Week 3</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/07/fourth-week-of-coding-26-june-2july.html">Week 4</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/07/fifth-week-of-coding-5th-july-9th-july.html">Week 5</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/07/sixth-week-of-coding-12th-july16th-july.html">Week 6</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/07/seventh-week-of-coding-19th-july-23-july.html">Week 7</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/07/eighth-week-of-coding-26th-july-30july.html">Week 8</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/08/ninth-week-of-coding-2-august7-august.html">Week 9</a></li><li><a href="https://bhavesh3005sharma-gsoc21.blogspot.com/2021/08/tenth-week-of-coding-9th-august-15th.html">Week 10</a></li></ol><h3>Resources</h3><ol><li><a href="https://www.youtube.com/watch?v=BxqrhDFDdlM">Youtube link to Final presentation.</a></li><li><a href="https://gist.github.com/bhavesh3005sharma/59f32064f727bef967a1a05cdd15c4fc">Final Report</a>.</li></ol><h3>Thoughts on GSoC</h3><p>GSoC was one of the best experiences that I ever had. There was an immense amount of knowledge to be gained and it taught me how great minds from different parts of the world work to make a product alive.</p><p>Thanks to my mentors who always came to my rescue and guided me throughout the journey. My coding standards have greatly improved and my experience with Android has been great.</p><p>The part I enjoyed most was the new technologies with which I got exposure through this program.</p><p>I would love to contribute to mHBS Applications in the future and guide the new enthusiast and pass on the knowledge I gained to them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a16c0febfe8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tenth Week of Coding 9th August — 15th August]]></title>
            <link>https://bhavesh3005sharma.medium.com/tenth-week-of-coding-9th-august-15th-august-ec82c1a62708?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec82c1a62708</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[cordova]]></category>
            <category><![CDATA[librehealth]]></category>
            <category><![CDATA[gsoc]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Mon, 16 Aug 2021 08:27:37 GMT</pubDate>
            <atom:updated>2021-08-16T08:35:45.465Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tenth Week of Coding 9th August — 15th August</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y-2A3st4DKxOtzesRgDETw.jpeg" /></figure><p>Hey Everyone, I am back with my weekly updates about my GSoC journey😀. This amazing journey is about to its end guys, but really I never forget this great experience where I learned a lot of technologies &amp; experienced a new tech side of android development in just a few weeks.</p><p>This week I had a meeting with my mentor where I discussed some of the UI-UX related stuff that can make the user experience much better. Hence I have improved the UI of the app, uploaded educational resources over dhis2, find out some very important bugs that need to be resolved in the scale-up version. Let’s discuss them one by one -</p><h3>Segregated Media Resources into Categories-</h3><ul><li>Earlier all types of media files either it is pdf, video, xls file, doc., etc. everyone is present in the single page.</li><li>Since we have more video resources and Pdfs I have made out the filter options to view resources into 4 separate sections All Media, Videos, PDFs and Other files.</li><li>Related Issue: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/195">Issue #195</a> Related MR: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/199">MR #199</a></li><li>Media files are classified based on their mime types.</li><li>Segregation is done only for downloaded media files.</li></ul><p>To Classify Documents as :</p><p><strong>PDF </strong>— pdfMimeTypes = [“application/pdf”]</p><p><strong>Videos </strong>— videoMimeTypes = [“video/ogg”,”video/webm”,”video/.webm”,”video/.ogv”,”video/mp4&quot;, “video/.mp4”,”video/.m4v”,”video/x-flv”,”application/x-mpegURL”,”video/MP2T”,”video/3gpp”, “video/quicktime”,”video/x-msvideo”,”video/x-ms-wmv”]</p><h3>Added Metadata of Media Resources &amp; Improved UI-</h3><ul><li>Added a button to download and open media files for easy to use purposes.</li><li>Added Thumbnail for video resources &amp; a default pfd icon for pdf files.</li><li>Added video duration in the media card.</li><li>Related MR: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/200">MR #200</a></li><li>Check the new UI &amp; functionalities of the Media Page.</li></ul><p><a href="https://drive.google.com/file/d/1PF-1pKZmyjsa7tpzVQXEH7SuIFdjrh7j/view?usp=sharing">https://drive.google.com/file/d/1PF-1pKZmyjsa7tpzVQXEH7SuIFdjrh7j/view?usp=sharing</a></p><h3>An issue with Cordova plugin Secure storage-</h3><p>Everything is working fine and in the last few days back I updated my phone and as usual, I keep on changing the code to come up with a better solution. But after some time everything is like 😶.</p><p>Suddenly my app gets on crashing on my device and does even not get opened. I was completely clueless why it is happening where the problem is? what I had changed 🤔.</p><p>After a long time, I identified the great culprit i.e. <em>cordova-plugin-secure-storage</em> which is begin used in our trainer app to store the user credentials. After doing a google search, I had to find out its cause. Some of the important points regarding this issue and its fix are :</p><ul><li><em>cordova-plugin-secure-storage</em> has been archived and no longer maintained.</li><li>They are not going to solve the existing issues.</li><li>So I find out some of its alternatives that are <em>cordova-plugin-secure-storage-echo</em> which is a forked version of an earlier one with all of these fixes and being used a lot.</li><li>Therefore I have made the appropriate changes to shift our project from cordova-plugin-secure-storage to cordova-plugin-secure-storage-echo</li><li>Related Issue: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/196">Issue #196 </a>Related MR: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/201">MR #201</a></li><li>For More info please check -</li></ul><ol><li><a href="https://forum.ionicframework.com/t/ionic-native-secure-storage-not-working-on-android-q/167386">Ionic Native Secure Storage Not Working on Android Q</a></li><li><a href="https://www.npmjs.com/package/cordova-plugin-secure-storage-echo">cordova-plugin-secure-storage-echo</a></li><li><a href="https://github.com/Crypho/cordova-plugin-secure-storage">Crypho/cordova-plugin-secure-storage</a> — Repo with Issues &amp; archived</li><li><a href="https://github.com/mibrito707/cordova-plugin-secure-storage-echo">mibrito707/cordova-plugin-secure-storage-echo</a> — Repo with Fix &amp; active</li></ol><h3>Uploaded Educational Resources-</h3><p>We need to upload the real educational resources in the dhis2.</p><p>Resources: <a href="https://globalhealthmedia.org/videos/">https://globalhealthmedia.org/videos/</a></p><p>It is having a lot of media files. This week I had uploaded 60+ Media files on the dhis2 and all of these media files are being accessed through the trainer app.</p><h3>Checked the possibility for opening all types of media files with the app-</h3><p>It was an idea that it is better if possible to open every media file within our app. Currently, we use the cordova-file-opener2 plugin for this purpose which gives access to the supportive apps to open the file. But the interesting fact to note is that any of the apps do not have access to check the media files and play even they are not visible if we find them on the phone or any supportive app. All the media files are downloaded and saved in users internal storage in a Persistent manner and well encrypted so any of the media files can be open only from the trainer app.</p><p>But I checked for the other options -</p><ul><li>We can play video files using the video HTML element.</li><li>The problem is with pdf and another one.</li><li>I checked <a href="https://www.npmjs.com/package/cordova-plugin-document-viewer">cordova-plugin-document-viewer</a>. But this is also redirected us to download a specific app from the play store and after that only it can open the pdf using that app. This app uses pdf.js.</li><li>I implemented this and tested but the problem is we need to download an open that app is being used to open pdfs.</li><li>Overall till now also we are using fileopener2 🤷‍♂️.</li></ul><h3>What is work done this week?</h3><ol><li>Segregated the media files into pdf, video, all media and other options ( Provided filtering options )</li><li>Added Metadata to the Videos UI like thumbnail &amp; time duration.</li><li>Added Button and smoothen the way to download and view media files.</li><li>Fixed <em>Issue with Cordova plugin Secure storage-</em></li><li>Tested the option to open media files within the app by the <em>cordova-document-viewer</em> plugin &amp; pdf.js.</li><li>Uploaded Half of the Education Resources over dhis2 for training. Find &amp; Fixed old bugs.</li></ol><h3>What do I plan to do next week?</h3><ol><li>Work on final submission and improve written blogs.</li><li>Finding more bugs and fix them.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec82c1a62708" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ninth Week of Coding 2 August — 7 August]]></title>
            <link>https://bhavesh3005sharma.medium.com/ninth-week-of-coding-2-august-7-august-ab020717c50e?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab020717c50e</guid>
            <category><![CDATA[librehealth]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[dhis2]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[gitlab]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Sat, 07 Aug 2021 20:14:07 GMT</pubDate>
            <atom:updated>2021-08-07T20:15:34.522Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ninth Week of Coding 2 August — 7 August</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*LPH-5Y8At8nlSC_q.png" /></figure><p>Hey Everyone, this week I have fixed the tracker app pipeline that failed last week, exported the tracker and trainer specific metadata, tested them by importing them to the play servers and a lot more. Let’s discuss this in detail.</p><blockquote><strong><em>Fixed Tracker App Gitlab Pipeline</em></strong></blockquote><p>Last week when I submitted an MR that passed the pipeline and was merged by my mentor into the main repo of the tracker app but it gets failed unexpectedly.</p><p>The interesting fact to note is that it ran successfully in the commit with which I had submitted but the merge commit that my mentor made to merge it which doesn’t contain any new changes, and is only having the commits that I made failed the pipeline. I didn’t get any reason for it.😌</p><p>But in the end, I made it find out the cause of it and fix it😀. I think it is due to the NDK version. I suggest if you are building it locally as well please try building after installing NDK Version 21.0.6113669</p><p>Related MR: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/15">MR-15</a></p><blockquote><strong><em>Exported Tracker App Metadata</em></strong></blockquote><p>I had exported tracker specific metadata so that one can import them in his own dhis2 instance and can get benefitted from the use of the mhbs — tracker app.</p><p>I have exported 2 mHBS Tracker App-specific metadata-</p><ul><li>Exported HBB Survey Metadata</li><li>Exported HBB Program Metadata</li></ul><p>To make both of the metadata importable I had deleted the old references from the metadata like “user”, “lastUpdatedBy”, “organisationUnit ”keys from the corresponding JSON. There are more than 4k+ such instances in the HBB Program metadata as it was heavily used by the bmgfdev instance users.</p><p>Now the metadata can be imported into the new dhis2 instance easily.</p><p>Corresponding Issue : <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/22">Issue #22</a></p><p>Corresponding MR : <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/16">MR-16</a></p><p>Discussion Thread : <a href="https://forums.librehealth.io/t/project-scaling-up-the-mobilehbs-dhis2-tracker-and-trainer-applications/4156/74?u=bhavesh3005sharma">Link</a></p><blockquote><strong><em>Import Testing of Metadata</em></strong></blockquote><p>I had tested the import of the metadata over <a href="https://play.dhis2.org/">Dhis-2 Play Severs</a> with all data elements and attributes. There is 2 issue that my mentor suggested me to test with the export and import related to HBB Survey are also tested and can be closed as a FIX.</p><p><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/12">Issue #12</a></p><p><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/11">Issue #11</a></p><h3>What progress have you made this week?</h3><ul><li>Fixed the tracker app pipeline that failed last week</li><li>Exported HBB Survey Metadata &amp; HBB Program Metadata</li><li>Tested Importing of testing Metadata</li><li>Can be Closed — <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/12">Issue #12</a> <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/11">Issue #11</a></li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/22">Issue #22</a> — Export mHBS tracker and trainer metadata from DHIS2</li><li>MRs : <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/16">MR-16</a> &amp; <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/15">MR-15</a></li></ul><h3>What do I plan to do next week?</h3><ul><li>Discuss with the mentor the features and issues to work on.</li><li>Fix more issues, check for current needs.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab020717c50e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eighth Week of Coding 26th July — 30 July]]></title>
            <link>https://bhavesh3005sharma.medium.com/eighth-week-of-coding-26th-july-30-july-d7ba19035b5f?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7ba19035b5f</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[librehealth]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[cordova]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Sat, 31 Jul 2021 13:42:06 GMT</pubDate>
            <atom:updated>2021-07-31T13:43:02.757Z</atom:updated>
            <content:encoded><![CDATA[<h3>Eighth Week of Coding 26th July — 30 July</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*fDElUHsf7cZbU8hv.png" /></figure><p>Hello Everyone, I am elated to share that project is going good and mostly all the issues are being sorted in the GitLab. This week I had tested the workflow of the apps, fixed few bugs and updated Readme and added some demonstration videos to help in the use of mhbs apps.😀</p><h3>Tested or Fixed issues</h3><ul><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/14"><strong>Issue #14</strong></a><strong> — View data completion form</strong></li></ul><p>I have verified that there is a functionality in the mhbs Tracker app to mark the existing enrollment as complete and even there is also an option to re-open the completed enrollments as well.</p><p>To understand the working please check <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/14#note_635418843">this</a>.</p><ul><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/13"><strong>Issue #13</strong></a><strong>- Create “seconds” data element for OSCE B</strong></li></ul><p>I have checked the second data element presence and working in OSCE B form. I had tested few other things as well. The data elements that I had tested and present in OSCE form are :</p><ol><li>Start time -&gt; (TIME type. (hh:mm))</li><li>Ventilates with bag and mask within The Golden Minute (at ___seconds) -&gt; (fill in the blank)</li><li>Time of effective ventilation (chest moving gently at __seconds)-&gt; (fill in the blank)</li><li>Ventilates at 40 breaths/minute (30–50 acceptable) -&gt; (yes only)</li></ol><p>Link of the OSCE B Form:</p><p><a href="https://bmgfdev.soic.iupui.edu/dhis-web-maintenance/index.html#/edit/programSection/program/WlD3NNKrbqu">Link</a> <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/uploads/b89644897390c04b2f5548076e9150ff/Check_OSCE_B_form_of_already_existing_event.mp4">Check_OSCE_B_form_of_already_existing_event</a></p><p><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/uploads/cd4309e1e95726433c5aa6fa5f95a090/Create_new_Event_in_OSCE_B.mp4">Create_new_Event_in_OSCE_B</a></p><ul><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/10"><strong>Issue #10</strong></a><strong>- Tested all the features that need to be present in the tracker app</strong></li></ul><p>All the features of <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/uploads/0728128fc5240cbd2797e0d707dd27ae/Module_1_mHBS_General_User_Guide_JANUARY_30_2019_FINAL.pdf">Module_1_mHBS_General_User_Guide_JANUARY_30_2019_FINAL.pdf</a> are being tested and present in the new tracker app.</p><p>But the new UI is entirely different and features may not be located in the place where they are shown in this file. I am thinking of making a new user guide for the tracker app and will discuss that regards with the mentor.</p><ul><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/11"><strong>Issue #11</strong></a><strong>- Need to change frequency of tracker forms and HBB survey.</strong></li></ul><p>I had checked the frequency of the existing HBB Survey and it is as per our need but mentors might want me to check the same for exported metadata. Till now I had not completed the work of exporting and importing metadata when it gets completed it will be fixed at that time.</p><ul><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/12"><strong>Issue #12</strong></a><strong>- Need to modify HBB infrastructure survey.</strong></li></ul><p>Similar to the above issue, I had checked its functionality with the existing HBB Survey and it is fine. We should also need to check it with exported metadata as well and will do that when exporting part gets completed.</p><h3>Modify Syncing Logic for Media files.</h3><p>There is a slight modification being made in the regular syncing of media files as per discussion with mentors.</p><p><em>Previous Approach:</em> Whenever the user clicks on any media file and if he is connected to the internet we will <em>re-download</em> the file and save replace it with its old locally saved copy. It was done to make sure that we always have the latest and correct file.</p><p><em>Problem With the Previous Approach: </em>There would not be regular updates on the media file but whenever the user checks that media file it will get downloaded in the background and <em>consumes a lot of the user’s data</em>.</p><p><em>New Approach: </em>As per discussion with the mentor we had decided that we will never update the existing media file if we need to update this file then we will remove it and upload a new copy with the same name in this way we never need to download the file again and again. However, you can change the name of an existing file, add a new file, remove old files but not updated the media content of the existing file.</p><p>As per the above discussion, I had made changes to the trainer app in order to stop downloading media content again and again. There are few bugs that I encountered during testing in the trainer app and has been fixed.</p><p>Committed : <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/commit/b8f6403d471174011040d17cb50c6625f50be8fb?merge_request_iid=198">b8f6403d</a></p><p>Related Issue: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/194">Issue #14</a></p><h3>Updated Readme file regarding Media Resources</h3><p>I had updated the readme of the trainer app regarding all these logic and added resources like</p><p><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/uploads/c761d45b6871155e19418ad73282fa64/Demonstration_of_Uploading_resources_on_dhis2.mp4">Demonstration_of_Uploading_resources_on_dhis2</a></p><p><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/uploads/83cb2a940eb7b7f8fa36e14870b466eb/Demonstartion_of_accessing_resources_on_trainer_app_through_tracker_app.mp4">Demonstartion_of_accessing_resources_on_trainer_app_through_tracker_app</a></p><p>Committed : <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/198/diffs?commit_id=8483042aefc4b41a159410123fc750dba5d9568a">8483042a</a></p><p>Related MR: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/198/diffs?commit_id=8483042aefc4b41a159410123fc750dba5d9568a">Link</a></p><h2>Works Done this week.</h2><ol><li>Tested or Fixed issues -</li></ol><ul><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/14">Issue #14</a> — View data completion form</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/13">Issue #13</a>- Create “seconds” data element for OSCE B</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/10">Issue #10</a>- Tested all the features of <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/uploads/0728128fc5240cbd2797e0d707dd27ae/Module_1_mHBS_General_User_Guide_JANUARY_30_2019_FINAL.pdf">Module_1_mHBS_General_User_Guide_JANUARY_30_2019_FINAL.pdf</a> in the new tracker app.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/11">Issue #11</a>- Need to change frequency of tracker forms and HBB survey.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/12">Issue #12</a>- Need to modify HBB infrastructure survey.</li></ul><p>2. Fixed <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/194">Issue #14</a> — Modify Syncing Logic for Media files.</p><p>3. Updated Readme — Added Documentation demonstrating to access media resources through trainer app and upload resources through dhis2.</p><p>Committed <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/198/diffs?commit_id=8483042aefc4b41a159410123fc750dba5d9568a">8483042a</a></p><p>4. Related MR: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/198/diffs?commit_id=8483042aefc4b41a159410123fc750dba5d9568a">Link</a></p><p>5. Small clips to depict the use of the media page.</p><p><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/uploads/c761d45b6871155e19418ad73282fa64/Demonstration_of_Uploading_resources_on_dhis2.mp4">Demonstration_of_Uploading_resources_on_dhis2</a></p><p><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/uploads/83cb2a940eb7b7f8fa36e14870b466eb/Demonstartion_of_accessing_resources_on_trainer_app_through_tracker_app.mp4">Demonstartion_of_accessing_resources_on_trainer_app_through_tracker_app</a></p><h2>Work to be done Next Week</h2><ol><li>Fixing tracker app GitLab CI failed last week.</li><li>Export metadata of tracker and trainer app and add to the readme.</li><li>Some testing in HBB Survey after exporting metadata.</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/14">Issue #14</a> — Create BMGF Indicators</li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/44">Issue #44</a> — Role-based restricted access for viewing tracked entities.</li><li>Discuss with mentors about the complete app for further scale-up.</li></ol><h2>Have you had any blockers or issues that are impeding your project?</h2><p>Export and Import of metadata and GitLab CI failed last week.</p><p>I want to discuss them with my mentor and want to get fix them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7ba19035b5f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seventh Week of Coding 19th July — 23 July]]></title>
            <link>https://bhavesh3005sharma.medium.com/seventh-week-of-coding-19th-july-23-july-8e159e2f6dbe?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e159e2f6dbe</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[dhis2]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[librehealth]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Fri, 23 Jul 2021 18:24:12 GMT</pubDate>
            <atom:updated>2021-07-23T18:24:12.958Z</atom:updated>
            <content:encoded><![CDATA[<h3>Seventh Week of Coding 19th July — 23 July</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*JYxVNmSOz8gpb7xx.png" /></figure><p>Hello Guys. This blog is to reflect the light on the work done in 7th week of gsoc-21.😀</p><p><strong>Tested 3–4 Issues</strong></p><p>I had go through almost all the issues of the tracker and trainer app. I had tested issues 4 issues marked with testing label and prepared their solution. I will be discussing my approaches for these issues with my mentor and fixed them in next week.</p><p><strong>Fixed mhbs Logo Issue I</strong><a href="https://www.blogger.com/blog/post/edit/4300684785665598499/1096355784586892019#"><strong>ssue #4</strong></a></p><p>In the tracker app some of the screens have the dhis-2 logo. It is now fixed to mhbs logo.</p><p>Fixed I<a href="https://www.blogger.com/blog/post/edit/4300684785665598499/1096355784586892019#">ssue #4</a></p><p>Related MR : <a href="https://www.blogger.com/blog/post/edit/4300684785665598499/1096355784586892019#">Mhbs logo fixed</a></p><p><strong>Updated Trainer App </strong><a href="https://www.blogger.com/blog/post/edit/4300684785665598499/1096355784586892019#"><strong>Readme.md</strong></a></p><p>Since we had added media page, offline support, app usage tracker in trainer app we want a small documentation details to be added to the readme for further reference. I had done it -</p><p>Committed here ( <a href="https://www.blogger.com/blog/post/edit/4300684785665598499/1096355784586892019#">718f8756</a> ).</p><p><strong>Fixed Bug in GitLab CI</strong></p><p>There is a bug in GitLab CI code of trainer app. Gradle is building the apk correctly but it is not assembling the artifact correctly. It is my mistake what I had made earlier. I had corrected it.</p><p>Committed <a href="https://www.blogger.com/blog/post/edit/4300684785665598499/1096355784586892019#">f01c6cf9</a>.</p><h3>Work Done this Week</h3><ul><li>Fixed logo Issue.</li><li>Updated Trainer App Readme.md.</li><li>Fixed Bug in GitLab CI.</li><li>Tested 3–4 Issues &amp; prepared their solution. After discussing with mentor need to implement them.</li></ul><h3>Planning of next Week</h3><ul><li><a href="https://www.blogger.com/blog/post/edit/4300684785665598499/1096355784586892019#">Need to modify HBB infrastructure survey</a></li><li><a href="https://www.blogger.com/blog/post/edit/4300684785665598499/1096355784586892019#">Need to change frequency of tracker forms and HBB survey</a></li><li>Fixing more issues which I had tested this week and prepared solution to fix them.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e159e2f6dbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sixth Week of Coding 12th July — 16th July]]></title>
            <link>https://bhavesh3005sharma.medium.com/sixth-week-of-coding-12th-july-16th-july-991309282d9d?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/991309282d9d</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[cordova]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[librehealth]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Fri, 16 Jul 2021 17:37:30 GMT</pubDate>
            <atom:updated>2021-07-16T17:37:30.558Z</atom:updated>
            <content:encoded><![CDATA[<h3>Sixth Week of Coding 12th July — 16th July</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*nR6KpvMjOSUmhzlOGEpq3w.png" /></figure><p>Hey Everyone, I am back with my weekly blog. Let’s have a look at work done in the 6th week of this amazing journey.</p><p><strong>Reimplemented and Completed App Usage Tracking System</strong></p><p>Guys actually as stated in the last blog I had completed the app usage tracking system but on discussing with the mentor We come up with a better approach and reimplemented the completed system. There are not very huge changes we just did some changes in the dhis2 storage part. Let’s have a look at how we are tracking the trainer app usage now -</p><ul><li>App usage is now stored in the user’s data store instead of the tracker program.</li><li>For each page, a unique id is assigned with which the page usage is tracked in datastore and in local DB as well.</li><li>There is a local DB support that will store the page usage and when the page usage exceeds the threshold limit for each usage then data will be sent to the dhis2 in the user’s datastore.</li><li>When local app usage storage get synced with the dhis2 user’s data store then local DB will get resettled to store new data.</li></ul><p>Related MR: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/196">Added System to track app usage (!196) · Merge requests</a></p><p>Resolved Issues: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/36">#36</a> <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/120">#120</a></p><p>Passed Pipeline: <a href="https://gitlab.com/bhavesh3005sharma/mHBS-trainer/-/pipelines/338127000">#338127000</a></p><p><strong>Modified mhbs-tracker app to send login credentials</strong></p><p>Since we want the user to enter credentials only once for both the apps and trainer app to be launched from the tracker app. Therefore the idea is, tracker app will share the login credentials with the trainer app on each launch. I had saved the login credentials of the user in secured Shared Prefs and on launching intent of trainer app passed these credentials so that trainer app to process further.</p><p>Related MR: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/13">Passed user credentials to trainer app for login &amp; Fixed Some Warnings · Merge requests</a></p><p>Resolved Issues: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/16">#16</a></p><p>Passed Pipeline: <a href="https://gitlab.com/bhavesh3005sharma/mHBS-tracker/-/pipelines/338443846">#338443846</a></p><p><strong>Removed Fabric usages</strong></p><p>The fabric plugin is depreciated and we need to remove its instances from the app.</p><p>Committed <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/196/diffs?commit_id=ad140f8f1308a4f23aa944eb913a384bb7692ba7">here</a>.</p><p><strong>Other Works</strong></p><ul><li>Added commits to the previously sent MR as asked by the mentor to make them able to merge. As for testing purposes, I had used the hardcoded credentials, Now I had removed them and fetched the password from secure storage.</li><li>I am not clear with the login procedure of the trainer app. I had studied the codebase and understand it well and made changes in the trainer app accordingly to make the user able to get logged in to the trainer app from the tracker app.</li></ul><h3>Work Done this Week</h3><ol><li>Implemented New Idea suggested by the mentor and Completed the system to get trainer app usage over dhis2.</li><li>Removed Fabric usages from the app as it is depreciated.</li><li>Modified mhbs-tracker app to send login credentials to trainer app for login.</li><li>Added commits to the last MR’s to make them able to merge as suggested by the mentor.</li><li>Completely understand the secure storage and login flow of the trainer app.</li></ol><h3>Planning of next Week</h3><ol><li>Completed all pending work so can focus on new issues. Will be solving more bugs.</li><li>Working on “Need to create a new program stage in dhis2” issue of tracker app.</li><li>Working on <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/4">#4</a> issue.</li></ol><p>I am not clear with these issue so will try to discuss these issue in the weekend so that can start work from Monday.</p><h3>Important Links</h3><ol><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/196">Added System to track app usage (!196) · Merge requests</a></li><li>Resolved Issues: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/36">#36</a> <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/120">#120</a></li><li>Passed Pipeline: <a href="https://gitlab.com/bhavesh3005sharma/mHBS-trainer/-/pipelines/338127000">#338127000</a></li><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/merge_requests/13">Passed user credentials to trainer app for login &amp; Fixed Some Warnings · Merge requests</a></li><li>Resolved Issues: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/16">#16</a></li><li>Passed Pipeline: <a href="https://gitlab.com/bhavesh3005sharma/mHBS-tracker/-/pipelines/338443846">#338443846</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=991309282d9d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fifth Week of Coding 5th July — 9th July]]></title>
            <link>https://bhavesh3005sharma.medium.com/fifth-week-of-coding-5th-july-9th-july-7c8f97fea077?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c8f97fea077</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[cordova]]></category>
            <category><![CDATA[librehealth]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Mon, 12 Jul 2021 12:12:56 GMT</pubDate>
            <atom:updated>2021-07-12T12:12:56.508Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fifth Week of Coding 5th July — 9th July</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*r5QJlq5puGI-DP1ynw4wmA.png" /></figure><p>Hello Everyone, sorry for getting delayed in writing this blog. Last week’s work is as follows:</p><h4>Worked on App Usage Tracking System of Trainer App</h4><p>To track the app usage I had followed these steps-</p><ol><li>Created “mHBS Trainer Usage Tracker” Tracker Program</li></ol><ul><li>Created Tracked Entity Attributes to store [ total page visits, total time spent on a page, page visits per user, time spent on a page by per user].</li><li>Created “Page Usage Tracker” Tracked Entity with the above attributes.</li><li>Created a tracker program i.e. “mHBS Trainer Usage Tracker” to track the tei created above (Page Usage Tracker).</li><li>There are more than 40 pages in Trainer app. Enrolled tei for each page in “mHBS Trainer Usage Tracker” program.</li></ul><p>Now we can send data for each and every page to dhis2 in the Tracker program.</p><p>2. Created Local SQL- DB table to store app usage</p><ul><li>Users cannot remain online every time but we want the full usage of our app to track therefore we need some local storage to store app usage in offline mode and update this data to dhis2 whenever the user comes online.</li><li>Therefore created “app_usage” SQL table in the trainer app with the — [page_id (stores tei id of the page with which it is created at dhis2), page_name, page_visits, time spent on page ]</li><li>Whenever a user visits any of the pages ( get to know from routes ) then we update its visits in local DB.</li><li>And similar to time spent on any page, it will be calculated with the help of “beforePageIn” &amp; “beforePageOut” Events with simple subtraction of time in invoking this event.</li><li>Then update this data to dhis2</li></ul><p>3. Idea of Threshold Limit for app usage</p><ul><li>I thought that instead of hitting the API continuously to update dhis2 with current usage we can make a threshold limit like 50-page visits means whenever any page visits crossed the number 50 only in that cases we will hit the API to update dhis2 and in other cases, we just update the usage in local DB.</li><li>This will help us to save a lot of users data.</li></ul><p>All of the above-discussed flows are integrated and set up. But recently we come up with a better approach suggested by the mentor, so I will try to implement that one and send the MR instead of this approach.</p><h3>Works Done in the Fourth Week</h3><ul><li>Created “Page Usage Tracker” Tracked Entity &amp; “mHBS Trainer Usage Tracker” Tracker Program</li><li>There are approx 40 pages in the trainer app, made tei instance for every page in “mHBS Trainer Usage Tracker” program to keep its usage track.</li><li>Stored page visits and time spent on each page by the user in local SQL-DB as well as updated this to dhis2 program.</li></ul><h3>What do I plan to do next week?</h3><ul><li>Complete Pending Tasks, reimplement this solution with a better approach suggested by the mentor.</li><li>Try to fix some more bugs.</li></ul><h4>Have you had any blockers or issues that are impeding your project?</h4><ul><li>Not yet</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c8f97fea077" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fourth Week of Coding : 26 June — 2 July]]></title>
            <link>https://bhavesh3005sharma.medium.com/fourth-week-of-coding-26-june-2-july-2db415323c9f?source=rss-290b0f9f696------2</link>
            <guid isPermaLink="false">https://medium.com/p/2db415323c9f</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[librehealth]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Bhavesh Sharma]]></dc:creator>
            <pubDate>Fri, 02 Jul 2021 17:50:32 GMT</pubDate>
            <atom:updated>2021-07-02T17:51:00.114Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fourth Week of Coding : 26 June — 2 July</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*r5QJlq5puGI-DP1ynw4wmA.png" /></figure><p>Hello everyone, do you want to know what is the progress of our project?😏</p><p>Obviously, I am here to share that with you. So let’s have a look at the work done in the fourth week of this amazing journey🧐-</p><p>This week I had set up Gitlab CI for our trainer app, Completed the offline support for the trainer app using SQLite database, added syncing UI in the app to differentiate the downloaded content, testing 2–3 issues that were mentioned in the last blog that they are resolved or not. Wait guys let’s discuss all this in detail😀-</p><p><strong>Set up CI/CD Pipeline to automatically build apk/artefact</strong></p><p>Without CI/CD it difficult to check whether the particular code will build properly or not and we have to think about a local clone of the project or any other option to get its latest apk. To solve this I had set up the CI/CD Pipeline as well with the MR sent last week and in the one sent this week also.</p><p><strong>Resolved Issues: </strong><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/112"><strong>#112</strong></a></p><p><strong>committed here — </strong><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/commit/ce83405aa894adb9f77646eb8df91a8f73d2b2a8?merge_request_iid=194"><strong>ce83405a</strong></a></p><p><strong>Last run Pipeline: </strong><a href="https://gitlab.com/bhavesh3005sharma/mHBS-trainer/-/pipelines/327895681"><strong>#327895681</strong></a></p><p>CI is also added to offline-support MR.</p><p><strong>Completed offline support</strong></p><p>Initially, in the last MR documents on the media page and every media file get downloaded and then played there is not any support for storing any type of data locally to the device to make it available offline.</p><p>Therefore I had added an SQL database to the trainer app to store data. This week I had completed my pending work related to this which was just started last week.</p><p>Now the updated list of documents get saved to the local database whenever a user visits the media page with an active internet connection and if a user visits this page in offline mode even in that case he is able to use the application in the same manner as it is in online mode, in this case, it is fetching data from a local database.</p><p>When a user clicks on any media file if it does not download it takes some time to get downloaded the first time and show a progress UI. Let’s suppose if it is already downloaded in that case it gets played instantly without waiting for a newer version but every time when user clicks on the media either it is already downloaded or not, it hits the API to update the media file. In offline mode, nothing update happens and it played the last cached version stored in the device and in online mode, it instantly plays the last cached version and hit the API to listen for any updates on this file.</p><p><strong>SQL Database Schema &amp; Logic</strong></p><ol><li>When the application launches it creates a <em>media </em>table with 4 columns-</li></ol><ul><li>id- stores the id of the document with which it is stored on dhis2</li><li>name- stores display Name of the document</li><li>fileuri- will be not null only when the document is downloaded and saved on the device, it stores the local location of the document on the device and in other cases its value is null</li><li>mimeType- it stores the content Type or media type of the document like <em>application/pdf, video/mp4, etc. </em>to play the media using the fileopener2 plugin</li></ul><p>2. Logic for storing a list of documents of media page-</p><ul><li>when a user visits this page new list will be fetched from dhis2 and now we need to take care of 3 cases :</li></ul><p>(1) DELETE : Document ids not present in the new list but present in our local DB. These documents are deleted from dhis2 and need to be deleted from local DB as well.</p><p>(2) UPDATE : After completing the first step, local DB is left only with those ids which need an update. We just update the particular row of their ids of local DB with whatever new corresponding data we received.</p><p>(3) CREATE : Now those document ids of a new list that are not passed through step 2 are one of those of newly added documents. We just need to create a new document with their data in our local DB.</p><p>These steps will take care of all cases for making a list of documents available offline.</p><p><em>committed here: </em><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/commit/e8b937591e4e613a58f4a55a984c33493bb81e39?merge_request_iid=195"><em>e8b93759</em></a></p><p>3. Logic for offline support of media files-</p><ul><li>Whenever the user clicks on the media file it gets downloaded and saved to the device local storage and its corresponding file location and mimeType gets updated to the fileuri and mimeType key of local DB for that document. And on the next time, a user doesn’t need to wait for it to get downloaded it gets played from the last saved location.</li><li>I had used PERSISTENT storage and cordova-file-plugin to save the file to the device.</li></ul><p><em>committed here: </em><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/commit/65ddad020f9a3ef33fb49e27ecc5a17f19318077?merge_request_iid=195"><em>65ddad02</em></a></p><p><strong>Resolved Issues: </strong><a href="https://medium.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/69"><strong>#69</strong></a></p><p><strong>Corresponding MR: !</strong><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/195"><strong>195</strong></a></p><p><strong>Pipeline: </strong><a href="https://gitlab.com/bhavesh3005sharma/mHBS-trainer/-/pipelines/329574660"><strong>#329574660</strong></a></p><p><strong>Added Sync Based UI</strong></p><p>I had added 3 types of sync symbols ( Pending, Completed, Error ) in the media page list.</p><p>I had also added a progress bar that shows the ongoing sync state.</p><p><em>committed here:</em> <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/commit/bf49a62947bf5db21ab04f57caf6b6339ad775bd?merge_request_iid=195">bf49a629</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1J4a2L3gvnOgphZd.jpeg" /></figure><p><strong>Testing of Issues</strong></p><p>There are some issues whose testing I have to do last week. Let’s discuss them one by one-</p><ol><li>Track app usage data ( <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/36">#36</a> )</li></ol><ul><li>We want to track the usage of our app and gets its report on dhis2 or tracker app.</li><li>For that, the page visit is set up for all pages means whenever the user visits any page then it gets recorded on local device storage as a counter of visits to that page.</li><li>Now the need is to shift this data to dhis2 via Web API in an App Usage Tracker Program. This part is not done.</li></ul><p>2. Role-based restricted access for viewing tracked entities ( <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/44">#44</a> )</p><ul><li>We want that the TEI should be visible only to the person who had created it other person visibility to this should be restricted.</li><li>This part is not working and since we had updated the mHBS app from dhis2 after 3 years it has a lot of changes and the new codebase is completely in Kotlin and well architectured and segregated.</li><li>Therefore this part need rework. This is not working in the new app. You can have a look at the latest mHBS tracker app codebase from <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/">here</a>.</li></ul><p>3. Need to create a new program stage in dhis2 ( <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/10">#10</a> )</p><ul><li>This issue is also cannot be closed for now.</li><li>There is no commit in the latest code that can solve this for now.</li><li>Needs rework.</li></ul><h3>Works Done in the Fourth Week</h3><ol><li>Set up CI/CD to automatically build the apk and check for errors.</li><li>Added full offline support for the media page for both media files and a list of documents.</li><li>Added file synced based UI for each media file.</li><li>Tested 3 Issues.</li></ol><h3>Important Links</h3><ol><li><a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/merge_requests/195">Merge Request</a>: Having code related to full offline support &amp; SQL implementation of media page.</li><li>Solved Issue: <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/69">#69</a> <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/112">#112</a></li><li>Gitlab Pipeline : <a href="https://gitlab.com/bhavesh3005sharma/mHBS-trainer/-/pipelines/329574660">#329574660</a> <a href="https://gitlab.com/bhavesh3005sharma/mHBS-trainer/-/pipelines/327895681">#327895681</a></li><li>Tested Issues : <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/36">#36</a> <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/44">#44</a> <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/10">#10</a></li></ol><h3>Work to be done in the next week</h3><ol><li>Working on Issue <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/36">#36</a></li></ol><ul><li>Shifting all app usage data from local storage to dhis2</li></ul><p>2. Working on Issue <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-trainer/-/issues/44">#44</a></p><ul><li>Restricting the access of other users for viewing tracked entities</li></ul><p>3. Working on Issue <a href="https://gitlab.com/librehealth/incubating-projects/mhbs/mHBS-tracker/-/issues/10">#10</a></p><ul><li>create a new program stage in dhis2</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2db415323c9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>