Lint Revisit: Providing Alternatives ๐งโโ๏ธ
In my previous post, we updated our TODO Detector to be more flexible. It is also easily extensible so that if we want to include more parameters or perhaps add more checks, we can follow the existing pattern and modify it.
Lint Revisit: TODO Detector v2
A few years ago, I wrote about writing a Lint rule to validate the format of TODO
comments. Whilst I find that
Lint is still difficult to grok, I have since learnt a little bit more that I feel a revisit of this rule is
warranted.
I Dub Theeโฆ Marginally better at RegEx
Being a perpetual RegEx n00b, one thing I keep on forgetting is that it is easy to get tripped up when extracting information from an input.
Extended ADB: En Vogue ๐
Last year, I wrote about an extended adb
script. The idea of the script is to make it really easy to issue an adb
command even if there are multiple devices attached by presenting a chooser. For example, if I have two physical devices and an emulator and I want to use my deeplink alias
, I get presented with a device chooser:
โ ~ deeplink https://zarah.dev
Multiple devices found:
1 - R5CR7039LBJ
2 - 39030FDJH01460
3 - emulator-5554
Select device:
Extending an Interactive ADB ๐
A few weeks ago, I wrote about a script for making adb
a little bit more interactive. The script makes the process of running an adb
command much smoother if there are multiple devices attached by presenting a chooser. For example, when sending a deeplink:
โ ~ deeplink https://zarah.dev
Multiple devices found:
1 - R5CR7039LBJ
2 - emulator-5554
3 - emulator-5556
Select device:
Making ADB a little bit dynamic ๐ฑ
Android has a lot of tools for developers and one that has been around for as long as I can remember is Android Debug Bridge (adb
). It allows you to issue commands to an attached device, such as installing an app or starting an Activity
.
Bundling Things Nice and Pretty ๐
Of all the projects that I have worked on over the years, one thing they all have in common is the need to pass things around. Whether passing stuff to an Activity
as Intent
extras, a Fragment
as arguments or its onSaveInstanceState
, or even a ViewModel
โs SavedStateHandle
, the most common way to do it is through a Bundle
.
Multi-module Lint Rules Follow Up: Suppressions โ ๏ธ
It has been a hot minute since I posted about writing multi-module Lint rules so itโs time for a follow up. Todayโs topic: suppressions! A quick recap of where we are:
Debugging App Links in Android 12 ๐
I have been working with deeplinks lately and I noticed that quite a few things have changed since I last worked with them. The most important change is quoted in the list of Android 12 behaviour changes:
๐ฃ PSA: Disabling mapping file uploads with Crashlytics
One of the more famous crash reporting tools used in Android development is probably Crashlytics. It offers up a lot of insight into an appโs performance โ from device characteristics to insights on issue commonalities. If, like my current project, obfuscation is enabled in an app, Crashlytics has a Gradle plugin that uploads the mapping file so that we end up with readable crash reports.