Shipping week: what the stores taught me

I thought the hard part was the code. The last ten days proved me wrong. The app itself barely changed; almost everything I worked on was the space between “it runs on my machine” and “anyone can download it”. This is the log of that week — including the parts that did not go to plan.
Release first, then build in the open
On 19 September I made a decision: ship the version I already had as the first store release, and build the next one in public. The repository says so openly: version 0.1.2 was built privately and imported as a snapshot; everything after that happens in the open.
RevenueCat, in practice
The Shipaton requires RevenueCat to power at least one in-app purchase. The SDK was integrated weeks ago. Connecting it to real stores was a different story.
Google Play wants a service account that RevenueCat uses to validate purchases. I created it, uploaded the key, and got three red checks. The missing step was not in the Google Cloud console at all: the account also has to be invited in the Play Console, with permission to view financial data and manage orders. And even then, new permissions take hours to arrive.
Here’s the full purchase path, and where each of this week’s failures sat:
SupportScreen ─▶ SupportViewModel ─▶ RevenueCatSupportRepository (commonMain)
│ purchases-kmp 3.3
┌──────────────────┴───────────────────┐
Play Billing (Android) StoreKit (iOS)
│ │
└──────────────▶ RevenueCat ◀──────────┘
│ validates via
service account + Play Console In-App Purchase key (.p8)
permissions ← fail #1 ← product not delivered yet
│
offering "default" → package → product ID
▲ ← fail #2: offering had no packages
entitlement "supporter" ─▶ badge in the app
The Test Store saved me a day. RevenueCat has a Test Store with simulated purchases, so I could test the purchase flow without waiting for Google. My first attempt showed an endless spinner and then “purchases not available”. The reason: the offering existed, but had no packages. I checked it by calling the same endpoint the SDK calls, with the public key — and saw an empty list. Lesson one: when the app says “nothing to buy”, ask the API what it actually delivers.
Product IDs beat package names. My code looked for packages named support_small; the dashboard had created one called $rc_lifetime, later support. I changed the app to recognise tiers by their store product ID (etb_support_small), which is identical in Google Play, the App Store and the Test Store, and cannot be renamed anyway. Now the dashboard can call its packages whatever it likes.
// Store product IDs are fixed and identical across stores; package identifiers
// are free-form dashboard names, so they are only the fallback.
private fun tierFor(pkg: Package): SupportTier? =
when (pkg.storeProduct.id.substringBefore(':')) { // Play subs arrive as "product:basePlan"
"etb_support_small" -> SupportTier.SMALL
"etb_support_medium" -> SupportTier.MEDIUM
"etb_support_large" -> SupportTier.LARGE
"etb_supporter" -> SupportTier.SUBSCRIPTION
else -> null // (simplified: the real code falls back to the package identifier)
}
No keys in the open-source repo. RevenueCat’s public SDK keys are designed to be public — they ship in every app binary. Still, a fork should not send test purchases into my project. So the keys are now injected at build time from a local file that git ignores. Without them, the app builds and the support screen calmly says purchases are not available. And a release build refuses to compile with a Test Store key, because the SDK would deliberately crash in production.
-Prevenuecat.androidKey=… ┐
env REVENUECAT_ANDROID_KEY ├─▶ generateRevenueCatKeys ─▶ build/generated/…/RevenueCatKeys.kt
local.properties (ignored) ┘ (Gradle task) const val ANDROID = "goog_…"
none of them? ─▶ "goog_PLACEHOLDER" ─▶ NoopSupportRepository ("unavailable")
bundleStoreRelease with a test_… key ─▶ build fails before the SDK can crash in production
The first real iOS build
I wrote the app on Linux, where the iOS target compiles but cannot run. The first time I built the actual iPhone app on a Mac, it did not compile. The Swift entry point called initKoin(), but Kotlin exports functions whose names start with init to Swift with a do prefix: doInitKoin(). One line — and a good reminder that “the iOS target compiles” is not the same as “the iOS app compiles”.
@main
struct iOSApp: App {
init() {
MainViewControllerKt.doInitKoin() // Kotlin `fun initKoin()` – exported with a `do` prefix
}
var body: some Scene { WindowGroup { ContentView() } }
}
Two more things only showed up on a real iPhone screen: a white strip and doubled spacing at the top, because SwiftUI and Compose both applied the safe area (the fix: let Compose handle it with .ignoresSafeArea()), and a time-correction chip that wrapped its label into “n / ow” on narrower phones.
SwiftUI App ─▶ ContentView ─▶ UIViewControllerRepresentable ─▶ ComposeUIViewController { App() }
.ignoresSafeArea() ← leave insets to Compose; with only
.ignoresSafeArea(.keyboard) both layers pad the top
The App Store, round by round
- “Spende” is not allowed. Apple does not let in-app purchases be presented as donations; that is reserved for approved non-profits. The tiers are now called “Unterstützung” in German and “tip” in English.
- No emoji in the description. My store text used emoji as section headings. App Store Connect rejected the whole field: “invalid characters”.
- Screenshot sizes are exact. The slot wanted 6.5-inch screenshots (1284×2778), not the 6.9-inch ones I had. Because my screenshots are rendered from the app’s own Compose screens, a new size was one line of code.
- A privacy manifest has to tell the truth. RevenueCat is linked statically through the Kotlin SDK, so its own privacy manifest is not bundled. I had to declare its data use in the app’s manifest myself.
- “Information needed”. The first review stopped with Guideline 2.1: a new developer account, so Apple asked for a screen recording on a physical device, plus written answers about purpose, audience, services and purchases. I don’t own an iPhone — only an iPad. An iPhone app runs on an iPad, so that is what I recorded.
And then the honest part: the in-app purchase on iOS was not ready in time. App Store Connect did not deliver the product to the app yet, and the deadline was not going to move. So the first iOS release ships without the tip. I told App Review exactly that. The tip is live on Google Play, and version 0.1.5, which brings it to the iPhone, is already built.
Letting the machine do the boring parts
Two things I’m glad I automated. The store screenshots render themselves: a headless module draws the real screens at exact store sizes — Play, App Store, and the 1179×2556 images the Shipaton wants. And the demo video records itself: one Maestro flow drives the same app on the Android emulator and the iPhone simulator, in light and dark mode, while the screen is recorded.
:ui (the real Compose screens)
├─▶ :screenshots (JVM, headless Skia) ─▶ Play 1440×2560 · App Store 1284×2778 / 1320×2868
│ · Devpost 1179×2556 · DE/EN · light/dark
└─▶ the app ─▶ video/demo-flow.yaml (Maestro)
├─ Android emulator: pm clear · demo-mode status bar · light/dark
└─ iPhone simulator: reinstall · status bar override · light/dark
─▶ startRecording … stopRecording ─▶ 4 × mp4
What I’d tell myself two weeks ago
- Store rules are engineering constraints. Every one of them is as binding as a compiler error, and invisible until it blocks you. Read them before you write the code.
- Submit to Apple early. Review questions take a day, not an hour.
- Build the platform you can’t run as early as possible. The iOS bugs were trivial. Finding them on deadline day was not.
Next up: the “It’s live” post, with the store links.
#BuildInPublic