Building REDDY and REDDY TRAINER separately from one source
REDDY and REDDY TRAINER share many rules, but each was also building code it didn’t need. They keep one source and get separate builds.
Both apps build the whole of the same engine. So REDDY carried trainer code, and REDDY TRAINER carried code and native modules it doesn't use. In trying to write the rules only once, we erased the boundary between the two products as well.
If we copy the source into two apps, the boundary becomes clear, but we have to fix the same rule twice. With feature flags the code stays as one set, but both products still go into one build. Adding another React Native project would duplicate about 5,300 lines of settings and the app's basic frame. If we only worry about what to merge, we lose something else.
So the common rules get written once, while each app gets its own entry point, engine and build. The source stays shared, and only the code each app needs goes into it.
Is there a reason to split even if the line count goes up?
Before we started, we already expected the total code to grow by about 600 to 1,000 lines. The shared screens need places for the parts that differ by app, and code modules and wiring grow. In October we made the line count the goal and missed features. This time we looked at what goes into each app, not at the line count of the whole repository.
We expected REDDY TRAINER's engine to shrink from about 46,300 lines to about 17,700, but after the split it was 26,808. The two numbers may be counted over different ranges, so the expectation and the result can't be compared directly. Android permissions dropped from 49 to 28. The build output also contained no code that should exist only in the other app.
We also tried to split the coach lesson and personal workout procedures. But they differed in only eight places, and splitting added 1,300 lines. A different name doesn't mean a different rule. We keep that procedure as one.
The first REDDY TRAINER we built after the split quit as soon as it launched, on both iOS and Android. We had split the source and the engine, but the two apps were using the same build cache. We found that cause and fixed it. Splitting the boundary of the code and splitting the boundary of the apps actually built were different jobs.
Written from that day’s point of view, using the documents and change history of the time. Published 2026.12.01.
