Skip to content

fix: release 3.0.14 (3.0.13 partially published) + clear build warnings - #217

Draft
therajanmaurya wants to merge 20 commits into
MobileByteLabs:devfrom
therajanmaurya:session-PayCraft-20261126121612868
Draft

therajanmaurya wants to merge 20 commits into
MobileByteLabs:devfrom
therajanmaurya:session-PayCraft-20261126121612868

Conversation

@therajanmaurya

@therajanmaurya therajanmaurya commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Release 3.0.14. 3.0.13 was partly published on Nov 24 (cmp-paycraft and navigation went out before #216), so Maven Central rejected the rest. This PR also clears the build's warnings and fixes the failures that CI never ran.

Release + warnings (9aeeb94)

  • paycraft.version=3.0.14. Removed the AGP 9 opt-outs and the obsolete kotlin.js.compiler. Compose moved to 1.12.1 (Compottie 2.3.3 needed it).

Tests CI doesn't run, now passing locally (649b4e0)

  • JS/wasm Compose UI tests:
    • binaries.executable() (CMP-4906).
    • Karma serves composeResources and skiko.wasm.
    • A Mocha root hook waits for Skiko before any test.
    • awaitText suspends instead of blocking the JS thread.
    • Results: cmp-paycraft jsBrowser 290/0 and wasmJs 290/0.
  • OfflineLoginKeepsTokenTest on JS: 3/3. The web device id no longer assumes localStorage exists (Node).
  • account_link_01_restore_idle_dark.png: re-recorded. Its IDAT was corrupt, the only bad one of 99. verifyRoborazziJvm is green.
  • Navigation iOS tests: now link wherever Xcode is installed. This is the same Swift-runtime -L fix cmp-paycraft already has.

Detekt 2.0.0-alpha.6 (dev.detekt)

  • Detekt 1.23.8 was NO-SOURCE, so it checked nothing. 2.0 now covers every cmp-*/src/*/kotlin.
  • The 884 existing findings are recorded in config/detekt/baseline.xml. They are debt to pay down separately.
  • alpha.7 is in detekt's README but is not published yet.

sample-app split (AGP 9)

  • :sample-app is now the shared KMP module (android.kmp.library).
  • The Android application moved to the new :sample-app-android, with the same applicationId.
  • Docs, Maestro flows and scripts now point at :sample-app-android.

Sample debug panel: register_device … Connection refused

  • PayCraftBackend.Mock still got the Supabase-backed service. Mock's mock:// URL became https://localhost, so any login on Mock failed.
  • Mock now binds an in-memory MockPayCraftService, covered by MockPayCraftServiceTest (5/5).

Local gate:

  • spotless and detekt
  • builds every cmp-* module plus both sample modules
  • allTests for core, cmp-paycraft and navigation (jvm, js, wasmJs, iOS sim)
  • testAndroidHostTest for the same three modules
  • verifyRoborazziJvm
  • the yarn lock checks

🤖 Generated with Claude Code

….13 partially published) + clear every build warning
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…aycraft + navigation on Nov 24, pre-MobileByteLabs#216), so Central rejected the rest; clear the build's warnings

- paycraft.version 3.0.14 so all three modules ship together from the merged code
- Kotlin: one Json per decoder (PayCraft config, checkout errors); drop a needless !! and an iOS cast; opt-ins for Channel.isEmpty, NSString.create, wasm @JSFun; seeds resolved by name (no deprecated template refs)
- Compottie 2.3.3 + Compose 1.12.1 so Skiko and Compose versions line up
- build scripts: compose.* aliases -> catalog entries; getting/registering/static=/android{} -> current DSL; spotless leadingTabsToSpaces; drop kotlin.js.compiler
- Android host tests on for cmp-paycraft (124 common tests; Compose UI + app-Context tests stay on jvm) and navigation (4)
- tests: runComposeUiTest/runDesktopComposeUiTest -> v2, koinConfiguration, ExperimentalCoroutinesApi opt-in per test source set, ConfigClient tests suppress the expected deprecation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@therajanmaurya therajanmaurya changed the title fix(paycraft): release 3.0.14 (3.0.13 partially published) + clear every build warning fix: release 3.0.14 (3.0.13 partially published) + clear build warnings Nov 26, 2026
therajanmaurya and others added 18 commits November 26, 2026 16:58
…rces, awaitSkiko, suspending awaitText); OfflineLoginKeepsTokenTest passes on JS (Node-safe device id); re-record the corrupt dark restore golden; Detekt 2.0.0-alpha.6 over every cmp-* source set with a baseline; split sample-app into a shared KMP module + :sample-app-android; Mock backend binds an in-memory PayCraftService (no more register_device Connection refused); navigation iOS tests link wherever Xcode lives

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the Loading check and the write were separate, so a purchase Error set on another thread in between was overwritten with Free (CI: purchaseViaStoreKit_blankAppStoreProductId_isBlocked read Free)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e wss://localhost, so every login logged Connection refused (seen on device after the service fix); realtimeOrNull() returns null on Mock, resubscribe goes through it; MockPayCraftServiceTest covers it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…seConsumerAuth + identity-verify silent link, kmp-supabase-auth sign-in on the identity screens, web signInWithSession, migration 219 tenant_set_auth_issuer); fix(paycraft): plan switches no longer raise failure-spike alerts (220), coupons sync to each store per request (Cloudflare cut off the fan-out), exit-survey offers resolve the product by SKU or id so the Play offer reaches Android
… (Stripe, Razorpay, Google Play, App Store) — a Play-only code like COMEBACK25 read "Not synced"
…nant/getUserApps memoized per request (layout and page each ran the 3-trip lookup) and the owner check runs alongside the alerts count; each trip is ~190 ms from Cloudflare's Delhi edge to the Tokyo project
…owed nothing until the server finished rendering (1-8 s, all 44 pages dynamic, no loading boundary), so the dashboard looked frozen; it also lets Next prefetch a page on hover
…w lg, padding scales, wide tables scroll inside their card instead of being clipped, page headers stack, fixed 3-5 column grids collapse, the paywall editors stack their panes (audited at 390 px: 37/37 pages fit)
…nStack Query — a click shows the page in ~10 ms, data lands in 0.4-0.7 s on a first visit and ~60 ms on a revisit (was 1-2 s of nothing, Analytics up to 8.5 s); every read has a skeleton and an error with Retry, every action a pending state and a visible error; server-only pieces (GA4, Stripe sync check) moved behind /api/dash/{analytics,products}
… Router app on the same domain — the middleware serves its static shell for every dashboard path (lib/spa-paths.ts), so a full load gets HTML in ~35-90 ms instead of waiting ~1.2 s for the server's account lookup, and data in ~0.7 s; the pages and components are the same files (next/link + next/navigation resolve to TanStack adapters in spa/shims), Next.js keeps the public site, /auth, /onboarding and every /api route; fixes: the shell knows the active app through a readable pc_active_app copy of the httpOnly cookie (else a switched app showed the first one), and sign-in returns to the page that asked for it (pc_after_login, same-site dashboard paths only)
…t (replaces the deprecated next-on-pages Pages build) — worker.ts serves the Vite dashboard shell from static assets and hands the rest to Next; the three hostnames are Worker routes (rollback = delete a route, Pages still behind them); Smart Placement on; every Stripe client goes through stripeClient() with the fetch HTTP client (Node's http hung on Workers and killed /api/sync/drift); runtime secrets synced from cloudflare-secrets.map (GA4 added) by deploy.sh to the Worker, staging is its own Worker; deploy-cloud.yml manual-only; feat(paycraft): an A/B variant can pre-select a plan (migration 221 default_sku, SDK ExperimentAssignment.defaultSku ahead of popular_plan_sku, per-variant picker in the experiments editor)
…ted placement — Smart Placement reported INSUFFICIENT_INVOCATIONS; a full drift check 4.8 s → 1.6 s); keep middleware.ts (OpenNext calls Node proxy experimental); docs(changelog): consumer-app sign-in, win-back offers on Android, experiment pre-selected plan (binary change → minor release)
…va 11 again; published bytecode checked: class major 55)
…, provider_method_registry (the public anon key could INSERT/UPDATE/DELETE them: PayCraft's plan limits, regional prices, provider routing); readable by all, writable only by the service role; drop ticket_votes' USING(true) delete policy (anyone could wipe every vote via REST; toggle_vote is SECURITY DEFINER). Applied to production: 0/73 public tables without RLS
…new Worker paycraft-edge at edge.paycraft.mobilebytesensei.com (edge/: path allowlist rest/functions/auth/storage/realtime, X-Forwarded-For replaced with CF-Connecting-IP so per-IP limits stay per caller and unspoofable, WebSockets pass through, pinned to Tokyo; deno tests); SDK + web SDK CLOUD_SUPABASE_URL → the proxy (CloudEndpointTest); dashboard builds with it and pins its session cookie name so operators stay signed in. Provider webhooks stay direct (signed, registered per provider)
…auth (drop ws@8.18.0 — the PR check's kotlinStoreYarnLock failure); -Ppaycraft.localSupabaseAuth=false resolves Maven locally, and with the local source build a lock mismatch only warns; PR check temporarily on mbl-actionhub PR 22 (compile split into Linux + Apple jobs, actions on Node 24)
…lit into Linux + Apple jobs, actions on Node 24)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant