ylliX - Online Advertising Network

Sharing code between test modules

In 2015, I wrote a post about sharing code between unit tests and instrumentation tests on Android. Iain Cunningham just pointed out that the method I outlined no longer works. That’s fine for me because I haven’t used that method in years! Nowadays I use modules, which provide a far superior method of solving the […]

Domain-Specific Models

For a long time at Trello Android, we used the same class for parsing API calls (via Gson), making DB transactions (via OrmLite), and displaying data in the UI. Here’s a pseudo-code-y example of a board: @DatabaseTable(tableName = “boards”) data class Board( @DatabaseField(columnName = “name”) @SerializedName(“BoardName”) private var boardName: String?, private var cards: List<Card>?, private […]

Drawing custom text spans in Compose UI

While exploring how text paragraphs are rendered in Compose UI, I nerd sniped myself into porting squiggly underlines from Sam Ruston’s Buzzkill app. Sam’s animation was implemented using TextView custom spans, but Compose UI does not offer any alternatives for them yet. While our friends at Google are prototyping text modifiers (first, second), I figured […]

iPhone owners are pickier about apps than Android users

Third-party iPhone apps scored significantly lower than their Android counterparts, according to an analysis of user reviews of 4,400 top mobile apps. This does not necessarily mean that Android offers better third-party software, though. iPhone users simply expect more from their apps. “The data shows iOS users are more critical of mobile apps than Android users […]

iPhone shipments grow while Android tanks | Cult of Android

The global market for Android phones shrank considerably in the first quarter of 2022, even as iPhone shipments rose. Shipments from every major Android maker declined, from Samsung on down. Their combined drops were enough to reduce world smartphone shipments in Q1 by around 10%. iPhone sold well in Q1 2022 Quarterly shipment figures aren’t […]