Repository navigation
feat(branding): ship the rebranded icon, splash and adaptive layers - #108
Merged
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The rebrand never reached
main. PR #105 merged an earlier state of this branch, and the branding commit landed afterwards, somainstill carries the old placeholder icon.I confirmed this against a real release build: I extracted
base/res/mipmap-xxxhdpi-v4/ic_launcher.pngfrom an AAB built offorigin/mainand pixel-compared it.origin/mainiconSo any AAB built from
maintoday ships the placeholder sparkle, not the mascot, on every user's home screen and on the Play listing.What's here
design/branding/app-icon-master.png.#131019, so every launcher mask shape sees gradient edge to edge rather than a dark frame.values/colors.xmlwent with it.flutter_launcher_iconsnow consumesassets/branding/icon_launcher.png(the RGB twin) rather thanicon.png. The generator box-averages per mipmap bucket and an all-255 alpha plane lands as 254 at hdpi, whichoptimize_res.pythen cannot strip losslessly.icon.pngstays RGBA at exactly 512x512 because it is the Play listing asset.tools/optimize_res.py, step 3 of the pipeline, plus pinnedtools/requirements.txt. Both Dart generators re-emit unoptimised RGBA and recreate byte-identicaldrawable-night-*duplicates, sores/needs a lossless re-encode after each regeneration.optimize_res.py --check --strictfirst, 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 andkey.properties; an extension list would leak the first file type nobody anticipated.Play Store icon compliance
assets/branding/icon.pngwas 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 changedflutter analyze- no issuesflutter test- 464 passedpython tools/optimize_res.py --check --strict- clean, 0 B would be savedNot included
The export/fps Dart work still in the working tree is deliberately left out - this PR is branding only.
🤖 Generated with Claude Code