Skip to content

foss

The importance of reproducible builds in FOSS

Beyond "It Builds on My Machine"

Developing an open source application implies more than just sharing the code. It is true, on the one hand, that sharing the code is a necessary condition so that other people (and fellow developers) can inspect the code, build it on their own, and install it wherever they want.

For a project to be successful it also needs users, though. And non-technical people do not want to set up their system in order to compile from source. This is why I also ship compiled binaries and, in the case of mobile apps, installable packages.

In this scenario, it is vital to guarantee to users that the binary they install on their device is exactly the same one they would get if they built it directly from the published source code.

It is a matter of transparency: the distributed executable must not contain proprietary binary blobs or dependencies that may include so-called "anti-features" (such as trackers, ads, or unwanted telemetry).

The simplest way to guarantee this is to certify that the build is reproducible: building from source in a neutral environment (outside the developer's direct control) must produce the exact same executable distributed by the maintainer, such as the release packages built by CI.

In Raccoon, there are actually four distribution channels:

  1. Google Play Store: the recommended way for regular users, since app bundles are analyzed by Google's inspection tools to make sure they comply with current industry quality and security standards;
  2. GitHub: APKs are attached to releases on GitHub as the result of a CI pipeline step; they can be installed directly or via third-party utilities (e.g. Obtainium) and serve as a reference for reproducibility comparisons;
  3. IzzyOnDroid: where users can install the latest versions almost immediately, since new versions often arrive earlier on Izzy's repo than on the production channel of the Play Store where review may take more time;
  4. F-Droid: where releases usually arrive later due to custom extra checks, which include verifying build reproducibility.

For case 1, I create signed AABs directly on my machine and upload them to Google Play; for case 2, APKs are created by the CI pipeline and signed with the same keystore I use for Google Play. In case 3, IzzyOnDroid basically mirrors the artifacts from case 2, so there is not much extra work, except for some caveats to reduce install size.

In case 4, however, the story is very different—and that is the topic of this week's deep dive.

A One-Year Gap

Until last week (November 2026), there was a huge gap between the versions available on Google Play Store, GitHub releases, or IzzyOnDroid and what was available on F-Droid. On the former three channels, users could install 1.x, but F-Droid was still stuck on 0.4.2 (released in March 2025). Why did this happen?

First of all, 2026 has been quite a year for Raccoon. The recommended Gradle version for KMP projects transitioned from 8.x to 9.x, and the Android Gradle Plugin 9.x series brought a major overhaul of the project structure. Modules were renamed and added, Gradle convention plugins were rewritten, build scripts were refactored, and build configuration was updated (see here for more).

As a result, the build instructions for the project changed and the F-Droid pipeline, which neither I nor the app store maintainers were paying close attention to, inevitably fell behind.

What happened?

F-Droid Metadata Registry

In order to understand what happened, we need to look at how apps in F-Droid's catalog are processed and updated.

F-Droid requires specific "recipes" on how to manage and build each app. These recipes are stored as YAML in the fdroiddata repository. Each recipe contains several sections:

  • project metadata (categories, license, homepage, authors, etc.);
  • a registry of individual builds (each with specific build commands and environment settings);
  • rules describing how to automatically update the recipe itself (e.g. when a new version is tagged).

When Automatic Updates Break

The first thing that broke due to my refactoring was that automated update check. When F-Droid's server ran checkupdates, it watched for a trigger event (e.g. a new git tag pushed to the GitHub repository) and tried to extract the version code / name and generate a new build block.

However, due to my refactoring, the values used for versionName and versionCode were moved from gradle/libs.versions.toml to the root gradle.properties. While this wasn't strictly required by the AGP migration, I decided to reserve the version catalog solely for third-party dependencies, relying on project properties for internal versioning.

By doing so, however, F-Droid's version scanning by the checkupdates bot had been inadvertently made ineffective.

Pointing F-Droid to the new location by setting a custom regex for the UpdateCheckData property restored update detection, but that was not enough to solve the entire issue.

The 1.x build could not be compiled using previous configuration. For instance, the subproject name for building the Android app had changed from composeApp to androidApp as part of the AGP migration.

But even after that was resolved, the build still failed during reproducibility checks.

Conflicting Requirements

After digging deeper, I discovered two additional underlying causes.

Starting in February 2027, Google is enforcing stricter requirements for app optimization in order to reduce install sizes and improve user experience. In preparation for these upcoming requirements, I had recently enabled code minification and resource shrinking.

IzzyOnDroid, on the other hand, prefers to avoid "universal" APKs that bundle native shared libraries for multiple architectures (e.g. x86_64 versus arm64) into a single large package. Instead, they prefer smaller per-architecture packages, achieved by enabling ABI splits in the build setup.

This is a legitimate distributor preference that solves the same issue Google addresses with the AAB format in a different way. On the downside, this configuration conflicts with some optimization and reproducibility settings.

Therefore, build scripts and GitHub workflow definitions had to be adjusted so that:

  • when building locally: optimizations are enabled, but ABI splits are disabled;
  • when building in CI: optimizations are disabled, and ABI splits are enabled.

F-Droid introduced yet another constraint:

  • obfuscation and minification are discouraged to preserve source auditability;
  • ABI splits are not used, as F-Droid requires a single universal APK for its verification checks.

I updated the recipe to satisfy both constraints by pre-processing the build scripts. This time, the build succeeded, but the reproducibility check failed.

Inspecting the F-Droid pipeline error logs revealed that resource shrinking was the culprit: shrinking was still active in F-Droid's build environment while disabled in my GitHub reference APK, leading to a binary discrepancy.

Disabling resource shrinking in the F-Droid build instructions finally brought the generated APK in line with the GitHub reference.

Takeaways

What can be learned from all of this? First and foremost, different distribution channels embody different philosophies:

  • Google Play Store prioritizes runtime and download optimization: R8 code minification and resource shrinking are enabled to minimize download size. Quality checks are centralized on Google's servers, and developers are held accountable directly to their users and Google Play policies.
  • IzzyOnDroid prioritizes release speed and lean packages: their recommended strategy is to use ABI splits so devices only download native libraries for their specific CPU architecture.
  • F-Droid prioritizes public auditability: obfuscation and code / resource shrinking are discouraged or restricted for inspectability and to prevent non-deterministic transformations.

As a result, build workflows must be carefully designed to accommodate all these requirements with minimal friction. In my case, this was achieved through a combination of Gradle compilation flags (such as passing -PciBuild=true on GitHub Actions) and pre-processing in fdroiddata to align those flags for what F-Droid needs.

Maintaining compatibility across multiple app stores requires ongoing effort. This extends beyond build configuration; in the past, library architectural choices have triggered similar headaches, such as the F-Droid catastrophe we discussed last year.

For my future self, I will remember to treat reproducibility as an integral part of "project hygiene", ensuring F-Droid users receive timely updates.

Question

Are you interested in this topic and would like a more detailed breakdown of the exact checks F-Droid performs and how to test them locally before discovering build breakages?

Let me know by commenting on the post linked to this article on Procyon Project News from your favorite Fediverse instance.

Community contributions: sharing is caring

In English, there is this popular phrase "sharing is caring". For introverts, though, this often remains something very difficult to apply in real life. For example, one may hesitate to offer their work out of fear of being judged. Or, on the opposite side, one may find it difficult to accept collaboration from others, wondering what they might expect in return.

Working on apps like Raccoon-s (the Mastodon/Friendica client and the Lemmy one) was an opportunity to put myself to test and see how I would cope with those situations.

In today's article we'll see what kinds of contributors the projects attracted and how each one of them not only shaped the apps themselves but also turned me, as the main developer, into a richer person.

So let's start!

Different types of contributors

To begin, my work exposed me to public criticism. Trust me, a lot of criticism. Especially on Lemmy, where users are known for not being excessively polite or diplomatic.

I must confess that I've not always reacted well to it; e.g. when I closed and reopened the repository under a different organization (see What happened to Raccoon for Lemmy?).

Nonetheless, when this happened, I was surprised to see that there were also people who genuinely appreciated the project, some of them even volunteered to take ownership of it in case I decided to discontinue it.

1. Developers

That leads to the first type of collaboration I got from people online. That moment of crisis, when I was facing being harshly criticized for how a library I used rendered Markdown in August 2024, was also the moment when I met N7-X.

He helped me immensely, both with Markdown rendering and in general with some design decisions I am still applying today. I was impressed to see that someone (in another continent, with a totally different background) wanted to collaborate with me to make the app better, expecting nothing in return.

"Being impressed" is not even the right word, it was heartwarming. And I must admit it helped me get through that difficult moment and find the energy not only to continue working on the project, but also to start new ones.

2. Translators

Then there are translators. Before studying Computer Science and working as a software engineer, I was in the professional translation industry.

Question

Did you notice all apps had Italian and Spanish support from day zero?

This is why I've always been attentive to offer support for localization and to choose the right tools to make localization easier for me as a maintainer and for translators.

Since I understand the struggles of localization, all translators are given credits in the acknowledgements screen.

acknowledgements screen
A screenshot of the "Acknowledgements" screen.

Tip

Those who submitted translations in the Weblate project also reached out to me to provide feedback, talk about the future of the project, discover who was behind it, etc.

Receiving new translations or proofreads for existing ones was, again, a motivation boost and it was surprising to see how people nearby (e.g., German or Romanian) and from far away (e.g., Tamil or Brazilian Portuguese) wanted to help expand the user base.

3. Accessibility experts

When working on apps / websites professionally, there are legal requirements about accessibility which must be met by all services (see earlier article about advanced a11y), so it should be taken as a given.

In an open-source "pet project", though, accessibility can be much more discretionary. For Raccoon, I remember making it the default behavior to open a dialog for alternative text and issuing a warning when a post is about to be published with missing alt text.

alt text dialog
Dialog to insert the alt text each time an image is attached.
missing alt text warning
Warning shown when some image attachments are missing the alt text.

Then, I was relying on Compose Multiplatform for the heavy lifting of integrating with accessibility tools, provided that the guidelines and best practices are being followed.

Until one day a lot of unexpected help came from pvagner, who helped me understand some of the issues people using screen readers faced with the original timeline layout, fix them and avoid making the same mistakes again.

One of the purposes of the Fediverse is to create inclusive and diverse communities, and I guess this is also one of the reasons why we work on creating ecosystems for it.

Knowing that in some way I laid my brick to help build that was a sign that the direction is the right one and was a motivation booster for me personally.

4. Strategic advisors

The fourth kind of collaborators I met during my journey was what I would classify as "strategic advisors". For example, while working on the Lemmy client, I met the administrators of feddit.it which is the largest Italian instance.

One of them was the one who first talked to me about the unique features of Friendica and inspired me to create a new client for it.

This person also suggested emphasizing aspects such as rich text formatting and discussion groups, which became one of the most distinctive features of the app compared to similar ones in the open source ecosystem.

Engaging with this kind of input has always been a little challenging because it forced me to question the scope of my work over and over again, adjust the strategy to constantly meet new targets.

But, on the other side, I truly believe that what originates from a constructive discussion is greater than the sum of the components involved. Moreover, having this kind of advisory helped me to prioritize user requests and bug reports (see the next paragraph).

5. Feedback and bug reporters

Finally, there are the most common contributions an open-source project receives: feature requests and bug reports.

Having to deal with these helped me to develop both social and planning skills, which are crucial even in my professional job.

Wrapping up

Working on open source projects can be daunting for introverts, but looking back, it was one of the best decisions I made.

You have no idea how good it feels to create, little by little, something useful (hopefully) for myself and for others.

Plus, this was the occasion to open up to other people, share thoughts, and collaborate to create something together in a period where individualism seems to dominate relationships.

In a word, I would say this felt like "healing" a little bit from the scars of life.

Note

Want to know more about the project? Or, maybe, feel like contributing yourself? Have a look at our GitHub page!

The Raccoon's Dilemma: Balancing Features, Maintenance, and Sanity

The idea of writing about the balance between features and maintenance in our apps has been lingering in my mind for over a year. But it never felt like the right moment, so I kept putting it off… ironically, somehow like the maintenance tasks I'm writing about.

This procrastination alone says a lot about my way of managing open-source side projects. It's a delicate dance between personal life and professional obligations. Days only have 24 hours, weeks only have 7 days (trust me, I've checked)!

Between family, a full-time job, and trying to be a functional adult in these chaotic times, maintaining apps can feel like a secondary full-time job, just without any paycheck.

One might wonder: Why on earth do I do this? It's a fair question. In today's article, I want to pull back the curtain on why Raccoon exists and why our development roadmap looks the way it does.

Longing for the Wild

I've worked as a developer for more years than I'd like to admit (let's say my early code belongs in a museum, or perhaps a dumpster). Throughout that time, I often struggled to find room to experiment. As a junior, every choice was made for me. As I moved into mid and senior roles, I was often tethered to legacy systems or constrained by "steering committees" which is often corporate-speak for «we don't like change».

I don't blame them: companies avoid risk because a bad tech choice can haunt a team for years. So, I was usually left playing in the safe corners of projects.

Even while bouncing between backend, web, iOS, and Android, something was missing. I missed the thrill of building from the ground up. I wanted the freedom to choose a foundation, evaluate it in the real world, and pull a complete U-turn on failure without causing a financial crisis for my employer.

The Perfect Storm

In 2023 the stars aligned. Kotlin Multiplatform1 transitioned from Beta to Stable(and Compose Multiplatform was in Alpha for iOS and stable elsewhere).

Meanwhile, the "Reddit API Apocalypse" killed off third-party clients, driving a massive migration toward the "threadiverse" (Lemmy, Kbin, Sublinks, Friendica, etc.).

On a personal note, in early 2023 I had finally switched to a job that actually respected my evenings and weekends, no more unpaid overtime! 🎉 🦝 🎉

These factors converged into a single goal: build a Lemmy client for Android and iOS using KMP. A year later, the Friendica client followed.

This was my playground. I could try libraries, break things, and discard what didn't work for my use cases (like Koin or Ktorfit).

So, finally, I had:

  • total tech freedom: I was the lead, the junior, and the steering committee.
  • continuous learning: hands-on experience with the bleeding edge.
  • purpose: contributing something useful to an ecosystem I actually believed in.

The "Why" Behind the Trash

Even without a paycheck, the ROI on these projects is massive. It's professional growth and psychological satisfaction rolled into one. It's a process of hypothesis and experimentation, not unlike academic research, but with more raccoons and fewer lab coats.

This also explains why instead of always going on and pile new features one on top of the other, sometimes the development process seems to go in circles: e.g. switching from a network library to another, rewrite the app navigation system, migrate localization from a framework to another, etc.

But why talk about this right now?

Recently, I hit a milestone: version 1.0.0 of the Mastodon/Friendica client. A local admin wrote an announcement about it (in Italian). Then they ran it through machine translation and posted an English version.

You know, the Fediverse is federated, so this propagated to Lemmy, where naturally critics arrived:

Quote

Why are people upvoting this? If OP used AI to 'make' this post, obviously the app is gonna be slop too.

The "proofs"? The word "finally" appeared in the middle of a list. Apparently, to some, using transition words is a sign of a robotic takeover rather than, you know, being relieved that a some longed-for feature is available to end users.

The Human (and Raccoon) Element

This brings us back to sustainability. When we maintain open-source projects, we aren't just pushing code; we're managing a community and navigating the weirdness of the Internet.

The "AI slop" accusation stung, but it also highlighted the irony: I do this work specifically to keep the human element alive in tech. I build these apps so we have independent, non-corporate ways to communicate and I do so because I love software development and learning new technologies.

So, to the "lemming" who thought I was a bot: I'm not. I'm just a developer who likes KMP, hates unnecessary API fees, and occasionally enjoys a piece of "trash" code that eventually may turn into treasure.


  1. At that time it was still called Kotlin Multiplatform Mobile (KMM) for those who remember. ↩