<?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 Rihan Farman on Medium]]></title>
        <description><![CDATA[Stories by Rihan Farman on Medium]]></description>
        <link>https://medium.com/@rihan007?source=rss-6e2796eb2da7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TRlJ2ttcXEo1aij3i51WVA.jpeg</url>
            <title>Stories by Rihan Farman on Medium</title>
            <link>https://medium.com/@rihan007?source=rss-6e2796eb2da7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 20:52:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rihan007/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[Publish AndroidLint violations to GitHub]]></title>
            <link>https://medium.com/travelex-digital/publish-androidlint-violations-to-github-5ceca62e0ded?source=rss-6e2796eb2da7------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ceca62e0ded</guid>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-apps]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <dc:creator><![CDATA[Rihan Farman]]></dc:creator>
            <pubDate>Mon, 08 Oct 2018 16:08:16 GMT</pubDate>
            <atom:updated>2018-10-08T16:08:16.118Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*67iHljUVH7gb35SIxsYO6Q.png" /></figure><p>If you are an Android app developer, I am sure you won’t deny that you should be running <a href="https://developer.android.com/studio/write/lint">lint</a> or <a href="https://github.com/arturbosch/detekt">detekt</a> (for Kotlin) on your code as often as possible. Ideally, you would want to run the static code analysis tools on CI builds as well.</p><p><em>Continue reading if you use Github…</em></p><p>To ensure that you don’t merge code which has static code analysis issues lets try and post the issues as comments to pull requests on Github. You can use this solution with any build system that you use, as the plugin that we are going to use works with Gradle.</p><p>We are going to use <a href="https://github.com/tomasbjerre/violation-comments-to-github-gradle-plugin">violation-comments-to-github-gradle-plugin</a> which will report the static analysis tool violations as comments in the pull requests.</p><p>To set it up, let’s add the following to our build.gradle</p><pre>buildscript {<br>    repositories {<br>        mavenLocal()<br>        mavenCentral()<br>    }<br>    dependencies {<br>        classpath &quot;se.bjurr.violations:violation-comments-to-github-gradle-plugin:1.49&quot;<br>    }<br>}</pre><p>Now we need to set up a task in our Gradle build script</p><pre>apply plugin: &#39;se.bjurr.violations.violation-comments-to-github-gradle-plugin&#39;</pre><pre>task violationCommentsToGitHub(type: se.bjurr.violations.comments.github.plugin.gradle.ViolationCommentsToGitHubTask) {<br>    repositoryOwner = &quot;repositoryOwner&quot;<br>    repositoryName = &quot;repositoryName&quot;<br>    pullRequestId = System.<em>properties</em>[&#39;GITHUB_PULLREQUESTID&#39;]<br>    username = System.<em>properties</em>[&#39;GITHUB_USERNAME&#39;]<br>    password = System.<em>properties</em>[&#39;GITHUB_PASSWORD&#39;]<br>    oAuth2Token = System.<em>properties</em>[&#39;GITHUB_OAUTH2TOKEN&#39;]<br>    gitHubUrl = &quot;https://api.github.com/&quot;<br>    createCommentWithAllSingleFileComments = false<br>    createSingleFileComments = true<br>    commentOnlyChangedContent = true<br>    minSeverity = se.bjurr.violations.lib.model.SEVERITY.<em>INFO<br>    </em>keepOldComments = false<br>    commentTemplate = &quot;&quot;&quot;<br>**Reporter**: {{violation.reporter}}{{#violation.rule}}</pre><pre>**Rule**: {{violation.rule}}{{/violation.rule}}<br>**Severity**: {{violation.severity}}<br>**File**: {{violation.file}} L{{violation.startLine}}{{#violation.source}}</pre><pre>**Source**: {{violation.source}}{{/violation.source}}</pre><pre>{{violation.message}}<br> &quot;&quot;&quot;<br>    violations = [<br>            [&quot;ANDROIDLINT&quot;, &quot;.&quot;, &quot;.*/build/reports/.*\\.xml\$&quot;, &quot;AndroidLint&quot;]<br>    ]<br>}</pre><p>In the above script, replace the repositoryOwner and repositoryName with your own values.</p><p>To run this, do the following</p><pre>./gradlew violationCommentsToGitHub -DGITHUB_PULLREQUESTID=$GITHUB_PULL_REQUEST -DGITHUB_USERNAME=... -DGITHUB_PASSWORD=...</pre><p>If you have 2FA enabled in GitHub, set up a personal access token and use that token instead of the password.</p><p>When the task violationCommentsToGitHub is run, it will post the static analysis issues as comments in the PR. For example,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*go4wVy7eQncJ2f5gy7N0pg.png" /></figure><p>This is great as it draws the attention of the code committer and the reviewer to the issues in the code.</p><p>Let us know in comments about your thoughts on this, or if you have any suggestions 😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ceca62e0ded" width="1" height="1" alt=""><hr><p><a href="https://medium.com/travelex-digital/publish-androidlint-violations-to-github-5ceca62e0ded">Publish AndroidLint violations to GitHub</a> was originally published in <a href="https://medium.com/travelex-digital">Travelex Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Travelex Makers Day — How it went and what we’ve learned]]></title>
            <link>https://medium.com/@rihan007/travelex-makers-day-how-it-went-and-what-weve-learned-85ac56a329b7?source=rss-6e2796eb2da7------2</link>
            <guid isPermaLink="false">https://medium.com/p/85ac56a329b7</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[culture]]></category>
            <dc:creator><![CDATA[Rihan Farman]]></dc:creator>
            <pubDate>Thu, 02 Aug 2018 14:58:22 GMT</pubDate>
            <atom:updated>2018-08-02T15:34:06.867Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1rInm6iQgFhPk5SUHboblQ.png" /></figure><p>About a month ago, the <a href="https://www.travelex.co.uk/services/travelex-money-app">Travelex Money</a> Mobile App team ran a Makers’ Day — an event that gives our team members a chance to take a break from everyday work, experiment with new technologies and collaborate with new people, and in different ways. The team had one full day to build something new. The plan was to ideate and build a prototype in a day of anything they thought would be a value-add. This was a good opportunity to move away from the product backlog and focus on something different.</p><h3>Collaborative work, done remotely</h3><p>Our cross-functional team consists of Product Manager (Sofi Newsham), UX/UI designer (Tereza Sustrova) and software engineers. The majority of our engineers are based in Sofia, Bulgaria (the rest of the team are based in London) and so this event was a good test of our communication abilities as a team.</p><p>While we’re excited about the creativity and thought put into these projects, this blog is more to give you an insight into the spirit of the event and our culture of innovation. We know some of these may not make it into production, but it was about showing what we are capable of building in a day!</p><p>Thanks again to the whole team who in just one day, assembled really innovative and impressive hacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*skYjA5Qu_oNcvAHRbxQiuw.jpeg" /><figcaption>Team in action 😃</figcaption></figure><h3>The plan</h3><p>Our format was fairly straightforward — each engineer came up with an idea, and these were presented to the rest of the team. We identified where UX/UI help was needed and took it from there.</p><ul><li>Kick-off meeting</li><li>Brainstorm and ideation</li><li>Build a prototype</li><li>Demo</li></ul><p>Altogether the team came up with a wide range of ideas, including hacks designed to improve the product, our internal efficiency, and some that were just meant to be fun. We arranged a vote for the best ideas, with the winning ideas making it into production in the coming months.</p><p>The below summaries and screenshots showcase the results from the day.</p><h3><strong>Siri balance check</strong></h3><p><em>Team — Vladimir Savov, Tereza Sustrova</em></p><p>Wouldn’t it be cool if you can ask Siri to check your Travelex Money App card balance? No more opening the app up to view the balance. Ask Siri and it will tell you what your balance is. After all that’s what Siri is for isn’t it ? 😃</p><p><strong>APIs/SDKs used</strong> — <a href="https://developer.apple.com/documentation/sirikit">Intents app extension from SiriKit</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*t_N5fhJ6M2_Ejko1rPVXZA.png" /></figure><h3>AR Price Converter</h3><p><em>Team — Todor Kolev, Sofi Newsham</em></p><p>Picture this, you are on a holiday overseas , about to order food off a restaurant menu but the prices are in their local currency. You then want to convert it to your home currency just so you are comfortable knowing what it costs. You don’t have to open a calculator and do the math yourself. The Price Converter feature will let you point the phone at the menu which will display the converted prices in realtime. Cool eh?</p><p><strong>APIs/SDKs used — </strong><a href="https://developers.google.com/vision/android/text-overview">Text Recognition API</a>, Travelex APIs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*7M8FMJtxSRnEFw-MF2jk_w.png" /></figure><h3>Currency converter</h3><p><em>Team — Gabriela Zagarova, Sofi Newsham, Tereza Sustrova</em></p><p>Traveling abroad can be an anxious experience. So many things to remember and the complexity of travel money can sometimes get overwhelming. Am I getting the best rate? Is it the right time to buy? Am I being charged with any additional fees? Not only different rates from different providers are confusing, it is also hard to know when I am being charged at ATM etc.</p><p>We’ve tried to make it easy by providing a quick and easy overview of rate evolution as well as tips on how to not get mugged off when traveling.</p><p><strong>APIs/SDKs used </strong>— Travelex APIs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aw2bht7xPXTsG5Gmri0rvA.png" /></figure><h3>Rate tracker</h3><p><em>Team — Rihan Farman, Tereza Sustrova</em></p><p>If you are one of those who keeps an eye on the foreign exchange market and pounces on that one opportunity when the rate gets better. Let the app do the hard work for you. It will alert you when the rate has hit a certain point. Rate tracker also lets you see the historical rate so you can decide if its the right time to buy currency.</p><p><strong>APIs/SDKs used</strong> — Travelex APIs, <a href="https://github.com/jjoe64/GraphView">GraphView</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*k94kJunXGGL_QPnGTjwEMQ.png" /></figure><h3>Location based offers</h3><p><em>Team — Stanislav Traykov, Sofi Newsham, Tereza Sustrova</em></p><p>Location based advertising lets advertisers personalise their messages to users based on their current location. Using the geofence functionality, relevant offers can be targeted to users depending on where they are.</p><p>Imagine you are in London Heathrow airport. Checked in and past security check, walking around in the shopping hall searching for a restaurant to dine, you suddenly get notified of a discount at a restaurant. This would be the perfect use case for location based advertising were the offer/ad is personalised, timely and targeted.</p><p><strong>APIs/SDKs used — </strong><a href="https://developer.android.com/training/location/geofencing">Geofence API</a>, <a href="https://developer.android.com/training/notify-user/build-notification">Notifications API</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KRGookQwnZ3gw0F4-jY4w.png" /></figure><h3>API Monitoring</h3><p><em>Engineer — Martin Tsenov</em></p><p>We investigated about tools that would allow us to run tests against our APIs and monitor their status. We chose SOAPUI and Postman for our investigation and ended up deciding on using Postman as it was able to cater to all our requirements whilst also being cheaper.</p><p><strong>Tool — </strong><a href="https://www.getpostman.com/docs/v6/postman/monitors/intro_monitors">Postman API Monitoring</a></p><h3>Cucumber extent reporter</h3><p><em>Engineer — Vladimir Mihov</em></p><p>We run extensive automation tests on our mobile apps using Appium and Cucumber. The test results are generated as a CSV file which was hard to comprehend. We looked at ways to improve the test result format so it was easy to understand and could be shared with a wider audience (even non-technical). We integrated Cucumber extent reporter plugin which massively improved the clarity of test results and also provided lot more relevant information.</p><p><strong>Plugin — </strong><a href="http://www.vimalselvam.com/cucumber-extent-reporter/">Cucumber-extent-reporter</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*olRGQ5HwMNM1jpkyz_xxWw.png" /></figure><h4>Key learnings from our Makers Day</h4><p>The Makers day lifted the teams spirit to new highs and we all felt accomplished after a long day. We are ready to keep the momentum and continue to work on these exciting projects that might have a future instead of never wanting to hear its name again.</p><p>Overall, I think the biggest takeaway from our Makers day was that our remote team doesn’t preclude working in sync, our communication can be great and we should definitely pair across disciplines more often!</p><p>Do you have ideas about what we should work on next? Would you like us to do a deep dive into any of the above features? Let us know in the comments section 🙂</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85ac56a329b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Charles proxy, an indispensable tool for mobile app development]]></title>
            <link>https://medium.com/@rihan007/charles-proxy-an-indispensable-tool-for-mobile-app-development-f4a766180cd?source=rss-6e2796eb2da7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4a766180cd</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[android-apps]]></category>
            <dc:creator><![CDATA[Rihan Farman]]></dc:creator>
            <pubDate>Sun, 13 Mar 2016 11:45:34 GMT</pubDate>
            <atom:updated>2017-02-26T20:02:01.843Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://www.charlesproxy.com/">Charles</a> proxy is an HTTP/HTTPS debugging proxy which enables a developer to view the requests, responses, headers etc for the traffic between a mobile device and the internet.</p><p>The setup instructions for Charles proxy are provided <a href="https://www.charlesproxy.com/documentation/getting-started/">here</a>.</p><p>The features of Charles proxy which I have found very useful when developing mobile apps are,</p><h4>Recording</h4><p>The primary function of Charles is to record requests and responses to be inspected. Charles lets you set up rules with which you can include or exclude network locations in the traffic. The recordings can be viewed in a structure or sequence layout, and they provide a lot of information. An alternative for recording on Android is <a href="http://facebook.github.io/stetho/">Stetho</a> by Facebook.</p><h4>Throttling</h4><p>Developers usually run their apps in an ideal scenario. Their devices would be connected to Wi-Fi with good bandwidth/low latency. This is very different to what their users experience. If an app is not resilient in poor network conditions, the user experience will be awful.</p><p>This is where Charles proxy comes to rescue with its throttling feature. Throttling can be enabled for all requests or selectively. The bandwidth can be adjusted to simulate a low bandwidth scenario. A timeout can be simulated by increasing the round trip latency to a high value.</p><h4>Breakpoints</h4><p>Breakpoints let you intercept requests/responses which are going through Charles. You can edit the request/response or let it pass through or block it. This is especially useful when there are chained network calls and you would like to test the behaviour when one of the calls fail due to timeout or if the service is unavailable.</p><h4>Rewrite</h4><p>Rewrite tool enables you to modify requests/responses when they are proxied through Charles. This is very useful if you want to test the behaviour of your app when different server responses are received. For example, you can test how the app handles different error codes coming from the server.</p><p>There are many more tools provided by Charles proxy. You can read about them <a href="https://www.charlesproxy.com/documentation/tools/">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4a766180cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>