Guide · Pipelines · Signing

    What Corenna builds: Capacitor, Flutter and React Native from one repo

    Nathan Claiborne
    Corenna turns a GitHub repo into a signed .apk, .aab or .ipa. Until recently it could only do that for one kind of repo: a web app wrapped with Capacitor. It now builds three stacks, and this is both the list of what it does and the story of why adding the other two took a rewrite rather than two new files.

    The three stacks, and how to tell which one you have

    A stack is what your repo is built with. It is a separate question from the platform you are shipping to. Every stack below can be built for both Android and iOS, though iPhone builds are in beta.

    • Web app (Capacitor): a package.json and a web build that outputs to dist/ or build/. This is what Lovable, Bolt, v0 and Replit produce, as do many apps written in Cursor. Corenna builds the web app, wraps it with Capacitor and signs the result. Lovable projects created since May 13, 2026 are TanStack Start apps, which render on a server: for those Corenna makes a client-only build in SPA mode, and an app that uses server functions calls your published site for them (see the TanStack Start guide).
    • Flutter: a pubspec.yaml with a flutter: section and a lib/main.dart. Corenna runs flutter build appbundle and flutter build ipa.
    • React Native: react-native in package.json, Expo included. Corenna installs dependencies, runs pod install, and builds the native projects. An Android build of an Expo app with no android/ folder creates one with npx expo prebuild; iOS builds, and apps that don't use Expo, need their native folders committed.

    You do not have to work this out yourself. Paste a repo into the free repo check and it reads the repo and tells you, along with anything that would stop a build.

    What comes out

    The artifacts are the same whichever stack you came in on:

    • .apk: signed, installable on a real device. Useful for testing before you involve a store at all.
    • .aab: the Android App Bundle Google Play requires. Corenna can send it straight to your Play track for you.
    • .ipa: signed and exported with the method read from your provisioning profile, ready for App Store Connect or TestFlight.

    Signing uses your own material: an Android keystore (generated for you on the first build if you do not have one) and your Apple distribution certificate and provisioning profile. The upload-certificate SHA-1 and SHA-256 fingerprints are recorded from each build so you can check them against what the Play Console expects.

    The problem: one pipeline that assumed one stack

    The original Android workflow ran, in order: checkout, JDK, Node, detect the project layout, install a package manager, install dependencies, preflight the web build, build the web app, prepare the Capacitor Android project, sign, build, upload.

    Six of those steps assume a package.json. A Flutter repo does not have one. A bare React Native repo has one, but no web build to run. Both would have died somewhere in the middle, several minutes in, with an error about a missing file rather than an explanation.

    That was the honest state of things while the site already listed Flutter as supported. The detection code even recognised bare React Native repos, and then handed them a pipeline that could not build them.

    Why the obvious fix was the wrong one

    The safe-looking option is to copy the workflow twice and edit the copies. Nothing existing breaks, because nothing existing is touched.

    The cost shows up later. Most of a build workflow is signing, and signing is where the subtle, expensive bugs live: a provisioning profile that is installed but never named, a keychain that relocks partway through a long archive, signing material left on a self-hosted runner after the job ends. Those were all real bugs, and all recently fixed. Three copies of that code means fixing each of them three times, forever, and finding out you missed one when somebody's release fails.

    So the signing, artifact collection and cleanup were lifted into shared blocks that every stack composes. What differs per stack is only the part that produces a native project to sign.

    Proving the working pipeline did not move

    Refactoring the thing that already works for paying users is the risky half. So the rendered Capacitor workflows are pinned to a hash in the test suite. Pulling four blocks out and composing them back has to produce a byte-identical file: the same 44,969 and 50,539 bytes, or the build fails before anything reaches a repo.

    A future change that disturbs the live pipeline now fails in CI with a message saying so, rather than quietly riding along inside a refactor. If the Capacitor workflow ever should change, the hash is updated in the same commit, where a reviewer can see it.

    What is deliberately not supported

    Saying this plainly is cheaper for everyone than a failed build:

    • Expo on iOS without prebuild. A managed Expo app has no android/ or ios/ folder. An Android build creates the Android project itself with npx expo prebuild. An iOS build does not: run npx expo prebuild, commit the ios/ folder, and it works. Until then the iOS build is refused up front with that instruction rather than failing inside Xcode.
    • Native-only Android or iOS projects: a repo that is already a plain Gradle or Xcode project, with no web, Dart or React Native layer. This is a small change from what exists and is not shipped yet, rather than being shipped untested.
    • Anything needing custom native code you have not committed. Corenna builds what is in the repo. It does not write Swift or Kotlin for you.

    Everything else Corenna does

    • Preflight checks before a build starts. The same checks the public repo check runs, so a missing build script is a message in ten seconds rather than a failure in ten minutes.
    • Existing-app detection. Corenna reads the bundle ID out of your repo so an update lands on your real listing instead of forking into a second one.
    • Build numbers that increment themselves after every successful build, because reusing one is the most common update rejection there is.
    • Keystore generation and encrypted storage for signing material, with the fingerprints surfaced per build.
    • Live build logs streamed from GitHub Actions, with failures parsed into a readable cause instead of raw stderr.
    • Play Store submission straight to an internal, alpha, beta or production track.
    • A self-host export. The workflow YAML and signing setup, downloadable, so you can run the whole thing without Corenna. The pipeline is not a secret; it is a file in your repo you can read and keep.

    Picking a stack when you add a project

    The add-project form asks what your app is built with, and pre-selects the answer when the repo makes it obvious. Detection is deliberately conservative: where the evidence is thin it marks the guess as a guess rather than choosing silently, because the cost of being wrong is a build that fails ten minutes in.

    If it guesses wrong, change it. The choice only decides which workflow file is written to your repo, and it can be changed later.

    Keep reading