Ship LITE and PRO, and let CLARITY and LIGHT GLOW reach the library
Both flavors build from one JS tree: `lite` hands out the free apk (com.locphamtran.recipescamera), `pro` sells as-is (same id + .pro, label "RecipesCam Pro"). Release is signed from android/keystore.properties, both files gitignored - lose either and no later build can install over this one. The tier reaches JS through src/provariant.ts, which tools/set-variant.mjs rewrites before each build (`npm run apk:lite` / `apk:pro`); the gradle flavor alone would ship a Pro apk that thinks it is Lite. The dev scaffolding goes: the three src/dev probes and their App effects, the EXPO_PUBLIC_CAPTURE_MODE [CAPTURE] timing log, and the -PdevtestSuffix side-by-side install hook. 'balanced' stays the shipped capture mode, which is what those probes measured on the 12S Ultra. Looking at the picture: WB now converts kelvin through the Planckian locus into a luma-normalised gain (unity at 5500K, symmetric tint) instead of the old one-sided push; LEITZ STREETLIFE splits into CLASSIC and VIVID; selecting a recipe loads every knob it carries over the defaults and stays editable, and RESET hands the panel back to the sim's own values. The in-app library picker, the ultra-wide native module and recipe share/import land here too. CLARITY and LIGHT GLOW existed only on the camera worklet and the export engine, so a photo opened from the library ignored both. They now run in all three library preview branches (libPhoto), and the preview clips them to the drawn image - the export engine always clipped its bloom to the canvas, the preview drew it over the whole rect, so the bloom bled past the photo onto the black letterbox and over the frame's mat.
This commit is contained in:
@@ -6,8 +6,8 @@ import { Animated, PanResponder } from 'react-native';
|
||||
// While zoomed in, responder termination is refused so the parent ScrollView
|
||||
// cannot steal the gesture — the photo pans instead of paging; swiping to the
|
||||
// next photo resumes after zooming back out (double tap or pinch below 1.15).
|
||||
// Two-finger pinch only zooms once the photo is already zoomed in: at 100% the
|
||||
// pinch stays inert, so the paging strip still behaves like a plain gallery.
|
||||
// Pinch zooms from any scale: a two-finger gesture never pages the strip, so
|
||||
// pinching out of 100% cannot be mistaken for a swipe.
|
||||
//
|
||||
// ponytail: pinch zooms around the image center, not the finger midpoint;
|
||||
// focal zoom needs per-touch location math against the image's screen rect.
|
||||
@@ -116,13 +116,10 @@ export default function ZoomableImage({ uri, width }: ZoomableImageProps) {
|
||||
const b = touches[1];
|
||||
const dist = Math.hypot(a.pageX - b.pageX, a.pageY - b.pageY);
|
||||
if (!st.pinchStart) st.pinchStart = { scale: st.scale, dist: dist || 1 };
|
||||
const next =
|
||||
st.pinchStart.scale > 1.001
|
||||
? Math.max(
|
||||
1,
|
||||
Math.min(MAX_SCALE, st.pinchStart.scale * (dist / st.pinchStart.dist))
|
||||
)
|
||||
: 1;
|
||||
const next = Math.max(
|
||||
1,
|
||||
Math.min(MAX_SCALE, st.pinchStart.scale * (dist / st.pinchStart.dist))
|
||||
);
|
||||
st.scale = next;
|
||||
if (next <= 1.001) {
|
||||
st.tx = 0;
|
||||
|
||||
Reference in New Issue
Block a user