Skip to content

feat(branding): ship the rebranded icon, splash and adaptive layers - #108

Merged
bpacholek merged 3 commits into
mainfrom
fix/export-fps
Jul 20, 2026
Merged

bpacholek merged 3 commits into
mainfrom
fix/export-fps

Conversation

@bpacholek

Copy link
Copy Markdown
Contributor

The rebrand never reached main. PR #105 merged an earlier state of this branch, and the branding commit landed afterwards, so main still carries the old placeholder icon.

I confirmed this against a real release build: I extracted base/res/mipmap-xxxhdpi-v4/ic_launcher.png from an AAB built off origin/main and pixel-compared it.

Compared against RMS difference
origin/main icon 0.00 (identical)
rebranded icon 103.86

So any AAB built from main today ships the placeholder sparkle, not the mascot, on every user's home screen and on the Play listing.

What's here

  • All launcher, adaptive, themed-monochrome and splash assets regenerated from design/branding/app-icon-master.png.
  • The adaptive background becomes an image layer instead of the flat #131019, so every launcher mask shape sees gradient edge to edge rather than a dark frame. values/colors.xml went with it.
  • flutter_launcher_icons now consumes assets/branding/icon_launcher.png (the RGB twin) rather than icon.png. The generator box-averages per mipmap bucket and an all-255 alpha plane lands as 254 at hdpi, which optimize_res.py then cannot strip losslessly. icon.png stays RGBA at exactly 512x512 because it is the Play listing asset.
  • New tools/optimize_res.py, step 3 of the pipeline, plus pinned tools/requirements.txt. Both Dart generators re-emit unoptimised RGBA and recreate byte-identical drawable-night-* duplicates, so res/ needs a lossless re-encode after each regeneration.
  • CI runs optimize_res.py --check --strict first, before Java and Flutter are set up. A skipped step 3 is the one failure here that is otherwise silent: ~1 MB of duplicate PNGs ships and nothing else notices.
  • secrets/ is now gitignored as a whole directory, not just *.jks. That folder holds the Play upload keystore, its passwords and key.properties; an extension list would leak the first file type nobody anticipated.

Play Store icon compliance

assets/branding/icon.png was verified against the icon design specifications: 512x512, 32-bit RGBA, 286 KB (limit 1024 KB), full-bleed square with all four corners painted, no pre-rounded edges, no baked outer shadow, alpha 255 everywhere. Rendering Play's 30% corner mask over it leaves the mark comfortably inside.

Gates

  • dart format . - 161 files, 0 changed
  • flutter analyze - no issues
  • flutter test - 464 passed
  • python tools/optimize_res.py --check --strict - clean, 0 B would be saved

Not included

The export/fps Dart work still in the working tree is deliberately left out - this PR is branding only.

🤖 Generated with Claude Code

bpacholek and others added 3 commits July 19, 2026 23:44
- AndroidManifest label now @string/app_name ("Sticker Maker") instead of
  the raw module name, with the new res/values/strings.xml resource.
- New icon/splash artwork generated from design/branding/app-icon-master.png
  via tools/build_branding.py + flutter_launcher_icons / flutter_native_splash
  (adaptive background + foreground + monochrome drawables; colors.xml drops
  out because the background is now a PNG layer).
- AppLogo widget renders the real mark in the home header and About sheet and
  owns its own semantics node (container: true) labelled "Sticker Maker logo".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…res optimizer

Regenerates every launcher, adaptive, themed and splash asset from
design/branding/app-icon-master.png. The adaptive background is now an image
layer rather than the flat #131019, so every launcher mask shape sees gradient
edge to edge instead of a dark frame.

flutter_launcher_icons now consumes assets/branding/icon_launcher.png, the RGB
twin of icon.png, rather than icon.png itself: the generator box-averages the
source down to each mipmap bucket, and an all-255 alpha plane comes out as 254
at hdpi, which tools/optimize_res.py then cannot strip losslessly. icon.png
stays RGBA at exactly 512x512 because it is the Play Store listing asset, where
32-bit PNG is what the spec asks for.

Adds tools/optimize_res.py as step 3 of the branding pipeline. Both Dart
generators re-emit unoptimised RGBA and recreate byte-identical
drawable-night-*/android12splash.png duplicates, so res/ needs a lossless
re-encode after every regeneration. The tool is idempotent, and
`--check --strict` fails when the step was skipped. CI runs that guard before
Java or Flutter are set up: a skipped step 3 is the one failure here that is
otherwise silent, shipping ~1 MB of duplicate PNGs with nothing else noticing.

AGENTS.md and docs/DEVELOPMENT.md document the three-step order; requirements
are pinned in tools/requirements.txt so local runs agree with CI.

Gates: dart format (161 files, 0 changed), flutter analyze (no issues),
flutter test (464 passed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The Play upload keystore, its passwords and key.properties live in secrets/.
Only *.jks and *.keystore were ignored before, so a .pem, a key.properties or a
password note dropped in that folder was committable.

Ignoring the directory rather than an extension list is deliberate: an
extension-by-extension rule silently leaks the first file type nobody thought
of. Leaking the upload key is the one outcome here that cannot be undone by
re-generating it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bpacholek
bpacholek merged commit eb206eb into main Jul 20, 2026
1 check passed
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