<?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 Aaron Smith on Medium]]></title>
        <description><![CDATA[Stories by Aaron Smith on Medium]]></description>
        <link>https://medium.com/@aaron_marino?source=rss-f0da27919a7c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kqLyw3717PoRFOmcLmHQdg.gif</url>
            <title>Stories by Aaron Smith on Medium</title>
            <link>https://medium.com/@aaron_marino?source=rss-f0da27919a7c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:25:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aaron_marino/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[App release cycles — why faster is better]]></title>
            <link>https://medium.com/marino-software/app-release-cycles-why-faster-is-better-6eb2a2376cdf?source=rss-f0da27919a7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eb2a2376cdf</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[googleio]]></category>
            <category><![CDATA[google-play-store]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[release-management]]></category>
            <dc:creator><![CDATA[Aaron Smith]]></dc:creator>
            <pubDate>Wed, 18 Jul 2018 13:02:17 GMT</pubDate>
            <atom:updated>2018-07-18T13:02:17.270Z</atom:updated>
            <content:encoded><![CDATA[<h4>One of the Google I/O ’18 talks that really struck a chord with us was on the topic of release management, and in particular the benefits of a shorter release cycle.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XzImC4vhlohKbrX9B25XPw.gif" /></figure><h3>Release Strategies</h3><p>As an agency, broadly speaking we have 2 different types of customers. The first type are those who need an app built, which once released will only receive infrequent updates, perhaps to add a new feature or fix a breaking platform change. The second type are customers who require constant maintenance and updates to their app.</p><p>Release strategy for the first type is pretty straight forward. Once development is finished and QA have signed off, the app can be shipped. If any serious bugs come to light from the public release then we follow up with a patch. Case closed.</p><p>However, for projects that are in constant development things become more complex. Typically we may be adding a new large feature perhaps once every 2 or 3 months, with smaller features and UI updates every couple of weeks or so. Also, on large projects there will be ongoing constant bug-fixing. So when and where do we draw the line when deciding to do a release?</p><p>Traditionally this would have been done when one of the large features was finished. When &lt;<em>Super New Feature&gt;</em> is ready, a build is made with it and all of the other updates and bug-fixes since &lt;<em>Previous Super New Feature&gt;</em> was released. More and more however, companies are transitioning to a more regular and frequent release cycle, and there are a number of advantages to this.</p><h4>Wait for me!!!</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*VGWIjLUFb_ThOGigvM9WQA.gif" /><figcaption>Delayed feature holds up release shipment.</figcaption></figure><p>The problem with waiting for a certain feature to be ready before doing a release is that if the feature gets held up, then so does the release. It may not even be the main feature that’s delayed, it could be a smaller feature that’s tantalisingly close to being finished, so the release is held up for it, even though everything else is ready. The problem with this is sometimes that 99% finished feature actually turns out to be further from being finished than expected. The result is that users are forced to wait even longer for the completed features and all the bug-fixes made since the last release.</p><p>This isn’t a problem if you adopt a frequent release cycle. If a feature isn’t ready on time, just go ahead and release without it; the next release will be along soon so we can add it to that one.</p><h3><strong>Bugs and feedback</strong></h3><p>A fast release cycle also allows you to respond to user feedback and fix bugs much more quickly. According to the Google I/O talk, users are 26% more likely to give a 1 star review on days when your app is at its crashiest (rising to 52% for games), and they’re 38% more likely to mention stability in reviews on those days. This illustrates how important it is to be able to respond to bugs. Even with the best developers and QA people, we can’t guarantee a bug free app, but what we can do is fix those bugs quickly and get the fixes to users as soon as possible.</p><p>With a traditional slow release cycle you can still release a patch for serious issues, but less severe bugs tend to get pushed to the next release. For users experiencing those bugs, it can be very frustrating if they’re not fixed in a timely manner and can lead to an impression that the app isn’t actively maintained. With a fast release cycle, fixes for those minor bugs will be rolled into the next release, which is always just around the corner, so the user never has to endure them for long.</p><p>The same goes for issues arising from OS updates or new device releases. Once a fix has been implemented you know that it won’t take long to get to end users, and it also involves less effort as developers don’t have to create special <em>hotfix</em> builds and QA don’t have to test said builds separately.</p><h3><strong>QA</strong></h3><p>On the subject of QA, this is another area where frequent releases actually helps. If you’re doing infrequent releases, there can be a lot of features, code and bugs added since the last release. This means that when an issue is found, it can be hard to trace its origins. On the other hand, if there have only been a relatively small amount of changes since the last release, then it makes it much easier to identify when and where a problem originated.</p><p>QA people also have a tendency to find bugs just before the build is due for release (oh I went there ;D). With a slow release cycle this means that we generally need to delay even further until all known bugs are fixed. With a fast release cycle however, it’s much easier to persuade them to let the release go ahead as the bug can be fixed for the next release, which will be along soon. Our rule of thumb is that if it’s not a regression (i.e. the bug already exists in the current release) then it shouldn’t hold up a new release. To do so would only deprive users of fixes for other issues that have been made since the last release.</p><h3><strong>Release Tools</strong></h3><p>At the same I/O talk they discussed a number of new and existing tools that can assist in accomplishing a faster release cycle. These are Android Play Store specific but similar tools may exist on other less popular platforms such as Blackberry, Tizen and iOS.</p><h4><strong>Test Tracks</strong></h4><p>The Play Store has had Alpha and Beta channels for quite some time, but these weren’t necessarily the best options for distributing builds internally. In particular, it could be slow, with builds potentially taking several hours to process. Also, some teams might need finer grained distribution options. These problems have been solved with the addition of internal test tracks. You can create custom tracks for various levels of distribution, such as to your dev team, to QA or to your client. Builds uploaded to these tracks are available within seconds instead of hours! This means that third party tools such as Fabric or Hockeyapp aren’t necessarily needed any more.</p><h4><strong>Staged Rollout</strong></h4><p>When the time comes to release your build, it’s always a good idea to release it to a small percentage of your user-base first. Even with thorough QA, issues are bound to surface after you release to thousands of users. If you do a staged release then you can wait to see if any serious issues emerge before rolling out to all users. This means that if there is an issue found that requires a patch, only a small amount of your users will be affected before you get the fix rolled out.</p><h4><strong>Vitals</strong></h4><p>Staged rollouts aren’t much good if you don’t know how your app is behaving in the wild. While third party crash reporting tools exist, the Play Store now also does a decent job of reporting the health of your app in the <em>Vitals</em> section. Here you will find any ANRs (App Not Responding), crashes and also other useful performance indicators such as rendering time and battery use.</p><h4>Development tools</h4><p>A detailed discussion on development tools is beyond the scope of this article, but suffice to say that here at Marino we use industry standard tools and best practices to ensure that we can deliver releases in a safe, timely and agile manner. These can vary from project to project, depending on client needs, but generally include git for source control, JIRA for bug tracking and HipChat or Slack for communication.</p><h3>Conclusion</h3><p>As previously mentioned, a fast release cycle is not feasible for all projects, but we believe that if you have an app that’s in constant development it’s much better to aim for small frequent releases instead of large occasional ones. Both your developers and your customers will thank you for it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eb2a2376cdf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/marino-software/app-release-cycles-why-faster-is-better-6eb2a2376cdf">App release cycles — why faster is better</a> was originally published in <a href="https://medium.com/marino-software">Marino Software Insights</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google I/O 17 — What you might have missed]]></title>
            <link>https://medium.com/marino-software/google-i-o-17-what-you-might-have-missed-732e27858f63?source=rss-f0da27919a7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/732e27858f63</guid>
            <category><![CDATA[google-io-2017]]></category>
            <category><![CDATA[play-store]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Aaron Smith]]></dc:creator>
            <pubDate>Mon, 19 Jun 2017 14:30:35 GMT</pubDate>
            <atom:updated>2017-11-20T11:13:22.470Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MunEEPa_bEwWUn5ALL14nw.jpeg" /></figure><p>There are endless articles listing the main announcements from this year’s Google I/O, but unless you attended or took the time to watch the videos of all the talks, then you may have missed many smaller items that as an Android developer you should be aware of.</p><h3>Play Store</h3><p>Firstly, there have been a raft of updates to the Play Store itself. A lot of these are aimed at providing you with more detailed information on how your app is performing in the wild, but there are also some nice additions for release managers. Here are some highlights:</p><h4>Android Vitals</h4><p><a href="https://developer.android.com/topic/performance/vitals/index.html">Android Vitals</a> is an initiative by Google to improve general app performance and stability. In this section of the Play Store you can see ANRs (App Not Responding) and crashes for your app. This is nothing new, but what is new is that all of these are now automatically reported from users that have agreed to share “usage and diagnostic data” on device setup, whereas before a user had to manually agree to send each crash report. This means that you’re likely to see a big increase in the amount of crashes you see in the Play Console! This may be alarming at first, but it paints a much more accurate picture of how stable your app is for users.</p><p>Besides critical failures like crashes and ANRs, Vitals will also give you an indication on how your app performs from a rendering and battery viewpoint. Nobody likes janky apps, and one of the quickest routes to getting your app uninstalled is if a user discovers that it’s excessively draining their battery. The Vitals section of the Play Store helps here by giving statistics on rendering speed and excessive wake ups or stuck wake locks. Furthermore, it will also alert you if your app is performing in the bottom 25% of any of these metrics.</p><p>Often as developers we tend to have high performance devices, which may not give an accurate reflection of how our apps perform for the majority of users, so these new metrics in the Play Store are a very useful addition, even if it’s just to affirm how awesome our apps actually perform in the wild.</p><h4>Device Catalogue</h4><p>Before now the Play Store showed you the top 10 devices that your app was installed on. This was mildly interesting but basically useless when you needed to know the install numbers for a particular device, which might happen, for example, if you’re experiencing a hard to resolve bug on a certain handset and are considering not supporting it.</p><p>This problem is now resolved with the addition of the Device Catalogue. Now you can view details for every single device that your app is installed on. This allows you take a much more informed decision before you consider excluding a device, and perhaps more importantly, makes the process of excluding it much easier as it can now be done with the click of a button in the Store.</p><h4>Google Play App Signing</h4><p>The Play Store now gives you the option to <a href="https://developer.android.com/studio/publish/app-signing.html#google-play-app-signing">manage the signing of your app</a> for you. The main advantage of this is that you no longer need to worry about your release key getting lost or compromised. You can upload it to Google’s servers where they’ll use it to sign your apps and you no longer need to worry about distributing it amongst other developers in your organisation who may need it to perform releases. You do still need an <em>upload</em> key, which is used to sign your apk so that it can be uploaded to the store. However, unlike your release key this can be changed in the event that it becomes compromised.</p><p>Another benefit of letting the Store manage your app signing is that it will rebuild your app, optimising it in the process, and generate different apks for the various device groups you support. This means that the resulting apk size that users need to download will be smaller, potentially increasing installs.</p><h4>Pre-launch report</h4><p>Ok so this feature isn’t actually new, but it had gone under my radar so was new to me…</p><p>No matter how much we test our apps there’s always an element of trepidation as we hit the <em>Publish</em> button. Well, the <a href="https://developer.android.com/distribute/best-practices/launch/pre-launch-crash-reports.html">pre-launch report</a> function should go some way to alleviating this.</p><p>If you opt in to this, each time you upload an apk the Store will crawl your app using a handful of real devices and inform you if it detects any issues. You can even supply it with sign-in credentials so that it can get past any login gateway your app may have. The resulting report includes a full logcat and a video recording of the process.</p><p>In theory this is a very useful function, even if just for peace of mind. However, in practice (so far) we’ve found that the crawler is actually pretty limited and doesn’t come anywhere close to crawling an acceptable percentage of the app. Hopefully this is something that will improve as the feature matures.</p><h3>Architecture Components</h3><p>From an Android development perspective, Kotlin support undoubtedly created the biggest buzz at I/O, but probably the second most talked about thing amongst developers was the Architecture Components talks.</p><p>Until now Google has taken a hands-off approach to how an Android app should be architected, but they’ve finally broken their silence and <a href="https://developer.android.com/topic/libraries/architecture/guide.html">given their opinion</a> on how to best architect an app. Perhaps more importantly, they’ve also released a set of libraries to help you implement their recommended practices.</p><h4>Lifecycle</h4><p>Google has finally admitted that the Android lifecycle can actually be really difficult to develop for, especially in a complex app where we may have multiple components running, all with behaviour tied to the lifecycle state. In response, they’ve added some new classes designed to ease the pain of the most common lifecycle related issues developers tend to encounter.</p><p><strong>LifecycleObserver</strong></p><p>Ever find that your <em>onStart</em> and <em>onStop</em> methods tend to end up as a list of calls to start/stop various components? Well those days are are (potentially) coming to an end, as now each individual component can be made lifecycle aware; meaning that it can do its own initialisation and cleanup without being managed by the activity.</p><p>There are two steps involved in this. Firstly, pass a <em>Lifecycle</em> object to your component (this can be obtained from an Activity or Fragment) and finally have your component implement the <em>LifecycleObserve</em>r interface. This interface lets you annotate any events so that they’re called when the corresponding <em>Lifecycle</em> event is triggered (<em>ON_PAUSE</em>, <em>ON_RESUME</em> etc.). Furthermore, the <em>Lifecycle</em> class also lets you query the lifecycle state at any time.</p><p><strong>LiveData</strong></p><p><em>LiveData</em> is an observable data holder. You might already be using a library such as Rx for such things, but the advantage with <em>LiveData</em> is — yes you guessed it — that it’s lifecycle aware. This has advantages such as knowing when an observer is or isn’t active so that, for example, you could stop requesting location updates when the <em>LifeCycle</em> becomes inactive. It also reduces common risks associated with observables such as memory leaks and crashes due to activities receiving callbacks while in an invalid state.</p><p>Note that while there may be some overlap in functionality between <em>LiveData</em> and reactive libraries such as Rx, that doesn’t mean they’re mutually exclusive. You may still want to use them to avail of the extra power and convenience of their functions and operators such as <em>groupBy(), flatMap()</em> etc.</p><p><strong>ViewModel</strong></p><p>The <em>ViewModel</em> class is designed to store and manage UI-related data so that the data survives configuration changes such as screen rotations.</p><p>A common scenario would be where your Activity or Fragment makes a network call in <em>onCreate</em>, but while this is being executed, the user rotates the device. This could result in duplicate network calls being made. Not only is this slow and inefficient, but could potentially also lead to memory leaks.</p><p>By using a <em>ViewMode</em>l to manage the data, this problem is solved due to the fact that it survives configuration changes. In our example, the Activity would request the data from the ViewModel, which would make the network request. After the activity is recreated, the view model will supply it with the data that it has already received from the previous network request.</p><p>Other use cases for using a <em>ViewModel</em> include sharing data between fragments. An activity’s <em>ViewModel</em> can be made accessible to all of the activity’s fragments, potentially negating the need for defining complex interfaces in order to pass data around.</p><h3>Persistence</h3><p>When it comes to using a database in your app you have the option of using SQLite directly or using an ORM (Object-Relational Mapping) library. The latter can eliminate a lot of boilerplate and even increase stability and ease of maintenance due to the fact that SQL is not verified at compile time. However, anyone who’s worked with ORMs extensively will no doubt have encountered a scenario where the abstraction becomes a barrier to trying to accomplish the task at hand and they wished that they could just write the damn SQL directly. Well, Google has you covered here with their new <a href="https://developer.android.com/topic/libraries/architecture/room.html">Room Persistence Library</a>.</p><p>Now, I’m not saying that Room is the first or only library to achieve this, but it does appear to strike an excellent balance between abstraction and control. Furthermore, its core concepts are pretty easy to grasp, with 3 main class types to use: <em>Database</em>, <em>Entity</em> and <em>Dao</em>.</p><p>The <em>Databas</em>e class is used to create a database holder and defines a list of Entities and Data Access Objects (DAO).</p><p><em>Entity</em> is used to annotate your model classes to indicate that a database table should be created for them.</p><p>Your <em>Dao</em> will be an interface that defines the CRUD methods for your model. Using an <em>@Query </em>annotation you specify the SQL to be used on your get methods. This concept will feel familiar to anyone that regularly uses the Retrofit library.</p><p>For more details check out the official documentation <a href="https://developer.android.com/topic/libraries/architecture/room.html">here</a>.</p><h3>Fragments</h3><p>If you frequently use fragments, there was a talk called <a href="https://events.google.com/io/schedule/?section=myio&amp;sid=8b85a1ab-2fa6-43a5-9854-ddba6c02d97c"><em>Fragment Tricks</em></a> that’s worth checking out. Firstly, they acknowledged that there are times that a custom view is more appropriate and gave some useful rules of thumb on when to choose which:</p><blockquote><em>Don’t use a fragment when a view will do </em><strong><em>but</em></strong><em> don’t add outside dependencies to your views.</em></blockquote><p>We can expand on this by saying:</p><blockquote><em>Views display info and publish user interaction events — draw text, click, scroll etc.</em></blockquote><blockquote><em>Fragments integrate with lifecycle and may be aware of other app components — bind to a service, communicate with your app’s data model etc.</em></blockquote><p>There were also some useful backstack and navigation tips, but one new API stood out<em>.</em> Anyone who has worked extensively with fragments has no doubt encountered an exception similar to the following:</p><blockquote>java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState</blockquote><p>The most frustrating thing about this is that there was no concise way to check whether or not state had actually been saved… until now. Version 26 of the support library now has a <em>Fragment.isStateSaved()</em> method! Not exactly groundbreaking stuff, but useful to know.</p><h3>Security</h3><p>Somewhat disappointingly, the security talk was mostly about what they’ve done to harden the OS rather than what we as developers should do to make our apps more secure. However, there were some new additions that would interest anyone that doesn’t want their app being installed on a compromised device.</p><p>Firstly, an API has been added to Android’s Verify Apps function (which you may never even have noticed as it’s buried deep in the settings). This lets your app query whether any potentially harmful apps are installed on a device, giving you the option to disable functions of your app if you suspect there’s a threat.</p><p>There is also a new <em>SafetyNet</em> attestation API, which can be used to the same end. The api will return two different boolean values; <em>ctsProfileMatch</em> and <em>basicIntegrity</em>. The latter, as the name suggests, is the less strict of the two and basically tells you if your app is installed on a physical device (not an emulator or script) running a non rooted Android OS with no signs of system integrity compromise. For <em>ctsProfileMatch</em> to pass, the device must adhere to the above criteria, but also must be a certified compatible device that isn’t running a custom ROM or have an unlocked bootloader. This API is used by Google’s own Android Pay app to disable functionality if it’s installed on what they deem to be an insecure device.</p><h3>Animation</h3><p>Anyone who has been tasked with porting an iOS app to Android, or perhaps worked on an app that was simultaneously being developed on both platforms at once, will probably have cursed at how easy iOS devs seem to have it when it comes to creating smooth fluid animations. Thankfully Android has done a lot of catching up on this front in recent years and Support lib 26 represents another step in the right direction with the addition of new physics-based animations.</p><p>The new APIs takes forces like velocity, inertia and friction into account giving much more realistic and natural looking animations. Take the following as an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/238/1*2NVrH1l3GTmfLZv_-YSt5Q.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*zskZxxqfXqV-4zno-xe1XQ.gif" /></figure><p>Check out the <a href="https://developer.android.com/preview/features/physics-based-animation.html">official documentation</a> for more examples, including some impressive effects gained from chaining <em>SpringAnimations</em>.</p><h3>finally {</h3><p>The above are just a small selection of the more ‘under the radar’ type highlights from I/O 17. I’d highly recommend perusing the <a href="https://events.google.com/io/schedule/?section=may-17">list of talks at the I/O website</a> for anything that might interest you.</p><p>Overall, attending was a fantastic experience. It really was impressive to witness the amount of preparation and organisation that had clearly gone into the event. Oh… and we got a free Google Home!</p><p>Roll on I/O 18!</p><h3>}</h3><p>If you’re interested in developing an app for Android, iOS or the Cloud, we can help. <a href="https://www.marinosoftware.com/get-in-touch">Get in Touch</a> to find out how we can work with you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=732e27858f63" width="1" height="1" alt=""><hr><p><a href="https://medium.com/marino-software/google-i-o-17-what-you-might-have-missed-732e27858f63">Google I/O 17 — What you might have missed</a> was originally published in <a href="https://medium.com/marino-software">Marino Software Insights</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>