Commit Graph

245 Commits

Author SHA1 Message Date
Jonas Bark
08889a556b ci(patch): make platform selection work like the build pipeline
patch.yml referenced inputs.build_mac in three places but never declared it as
a workflow input, so it always evaluated falsy. Declared it, mirroring
build.yml's per-platform booleans. Default is false and the macOS patch step
stays disabled (#143) — the toggle only drives certificate install today, and
its description says so rather than implying macOS gets patched.

Also gated the macOS-runner job on the platforms it actually serves. A
Windows-only patch previously still spun up a macos-26 runner that checked out
the repo, installed Shorebird and Flutter, then ran no patch step at all.

The symbol zip/upload steps deliberately keep gating on android || ios only:
with the macOS patch step disabled, a macOS-only run produces no symbols/ and
`zip -r symbols.zip symbols/` would fail. Noted inline for whoever re-enables
#143.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PanTG9kRBi4QTQ2psvpTxP
2026-07-30 13:26:20 +02:00
Jonas Bark
00f903d20c ci: add Shorebird track input; stable patches also feed the beta track 2026-07-07 11:13:58 +02:00
Jonas Bark
aee00402fc version++ 2026-06-26 22:41:11 +02:00
Jonas Bark
312137bad3 Mirror the App Store listing to macOS
macOS shares the App Store record (same bundle id), so add an
upload_metadata_macos deliver lane that reuses the iOS listing texts
(same metadata_path) under platform osx, and run it from the metadata
workflow's iOS job on every upload. Screenshots use the desktop renders
(2560x1600 — a valid Mac size, framed like the others); the prepare
script now stages them into ios/fastlane/screenshots_macos (gitignored).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 18:54:26 +02:00
Jonas Bark
57a530acbc Make metadata download/commit-back robust
- Android download: 'supply init' won't overwrite existing metadata (it printed
  'Metadata already exists ...' and downloaded nothing), so clear the folder
  first to actually re-pull the live Google Play listing.
- Commit-back: rebase onto FETCH_HEAD instead of origin/6.1 (the remote-tracking
  ref doesn't exist after 'git fetch origin 6.1', which failed the iOS job with
  'invalid upstream origin/6.1'), and retry the push so the two parallel jobs
  (disjoint android/ vs ios/ paths) converge.
- Drop the auto app-repo submodule-pointer bump (racy across the two jobs); the
  metadata still lands in prop@6.1. Bump the pointer separately if needed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 10:09:42 +02:00
Jonas Bark
e84ba6c44e Fix fastlane path resolution (lanes run from the fastlane/ folder)
The Store Metadata workflow failed on first run: fastlane chdir's into the
fastlane/ folder before executing a lane, so the Fastfiles' project-dir-relative
paths resolved one level deep (e.g. android/fastlane/fastlane/service-account.json,
ios/fastlane/fastlane/asc_api_key.json) and the lanes couldn't find the key files
or metadata.

Anchor every path at the repo root via GITHUB_WORKSPACE (set by Actions; falls
back to two levels up from the Fastfile locally), so json_key, metadata_path,
screenshots_path, the API-key .p8/.json and the download-lane subprocess args are
all absolute and CWD-independent. Drop the now-redundant relative
SUPPLY_JSON_KEY_FILE env.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 09:57:30 +02:00
Jonas Bark
3c1495ff8f Merge origin/6.1 into claude/fastlane-supply-metadata-2cjxs3
Bring the fastlane/store-metadata branch up to date with 6.1. Resolved
.gitignore by keeping both sides' rules; prop fast-forwards to the
store_metadata commit (a descendant of 6.1's prop pin).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 09:21:54 +02:00
Jonas Bark
cea9112031 Move store metadata into the private prop submodule
The localized App Store / Google Play listing text (titles, descriptions,
keywords, ...) was committed under ios/fastlane/metadata and
android/fastlane/metadata in this public repo, exposing the marketing/ASO copy.
Relocate it to the private prop submodule (prop/store_metadata/{ios,android})
and point fastlane at it; the public repo keeps only the lanes/workflow.

- ios/android Fastfiles: METADATA = "../prop/store_metadata/{ios,android}"
  (lanes run from ios//android/, so ../prop is the repo-root submodule).
- prepare_store_screenshots.sh: Android images stage under the prop metadata
  path; iOS screenshots unchanged.
- metadata.yml: checkout the prop submodule (submodules: recursive + PAT_TOKEN);
  on download, commit & push the listing text to OpenBikeControl/prop (6.1) and
  bump the submodule pointer here. PAT_TOKEN needs write access to prop.
- .gitignore / STORE_METADATA.md updated; screenshots stay public in ./screenshots.
- Bumps prop submodule to include the new store_metadata.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 06:56:26 +02:00
Claude
eb37850b2d Upload store screenshots from screenshot_test.dart goldens
Add scripts/prepare_store_screenshots.sh which maps the golden screenshots
produced by test/screenshot_test.dart (./screenshots/<scene>-<device>-<WxH>.png)
into the per-language layout fastlane expects:
- Google Play: phoneScreenshots (android) + tenInchScreenshots (androidTablet)
- App Store: iPhone 6.5" + iPad 12.9" images per locale (device detected by size)

The fastlane upload lanes now include screenshots (skip_upload_screenshots /
skip_screenshots disabled), and the 'Store Metadata' upload workflow runs the
prepare step first. Generated screenshot folders are gitignored so the images
stay sourced from the test output instead of being duplicated per language.

https://claude.ai/code/session_01Q3VrPge5KaXrrogqtbvGLZ
2026-06-15 20:21:43 +00:00
Claude
69025a5a71 Add fastlane for App Store & Play Store metadata per language
Manage localized store listings via fastlane (supply for Google Play,
deliver for the App Store) with one folder per language under
android/fastlane/metadata and ios/fastlane/metadata (en, de, fr, es, it, pl).

The txt files are seeded with the current live store data fetched from the
public Play Store and App Store listing pages. App Store listings are only
localized in English upstream, so the non-English iOS texts are translated
from the live en-US listing.

Adds a manually-triggered 'Store Metadata' GitHub Actions workflow to
download (store -> repo, auto-committed) or upload (repo -> store, texts only)
the metadata for either or both platforms, reusing the existing store secrets.

https://claude.ai/code/session_01Q3VrPge5KaXrrogqtbvGLZ
2026-06-14 17:43:15 +00:00
Jonas Bark
16b264df2a Pin Patch Windows job to windows-2025
windows-latest rolled over to the VS 2026 image; its MSVC (14.51) turns
the STL1011 experimental-coroutine deprecation into a hard error, which
breaks the native build of bluetooth_low_energy_windows and
permission_handler_windows during 'shorebird patch windows'. Pinning to
windows-2025 also matches build.yml, so patches are produced with the
same toolchain as the release they patch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 22:22:24 +02:00
Jonas Bark
a5e57049c4 Flutter version update 2026-06-02 21:30:37 +02:00
Jonas Bark
17153f707a ci: block patch workflow from running on main
Patches must come from a release branch — dispatching from main risks
shipping unreviewed work to release users.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 23:03:04 +02:00
Jonas Bark
aafc44fa68 patch symbolds 2026-05-18 21:24:16 +02:00
Jonas Bark
d60bb575b4 patch symbolds 2026-05-18 21:18:34 +02:00
Jonas Bark
7c613500fc Revert "patch symbolds"
This reverts commit 854a6197a582d256835f9987f323a034f7a95770.
2026-05-18 20:45:15 +02:00
Jonas Bark
39d6bbda85 patch symbolds 2026-05-18 20:44:32 +02:00
Jonas Bark
860d969010 patch symbolds 2026-05-18 19:22:53 +02:00
Jonas Bark
6f57e61d39 improve pipelines 2026-05-14 15:59:53 +02:00
Jonas Bark
e02c6f284e fux certificates 2026-05-14 15:48:51 +02:00
Jonas Bark
5b2baf2e85 screenshots & iOS build 2026-05-13 09:30:13 +02:00
Jonas Bark
67c64d376a build fix IOS 2026-05-13 08:23:19 +02:00
Jonas Bark
82a9c0cb68 build fix IOS 2026-05-13 08:02:16 +02:00
Jonas Bark
c92cc7021c no need to password protect Windows release artifact 2026-05-06 08:30:36 +02:00
Jonas Bark
4d23006a84 version++ 2026-05-06 06:59:15 +02:00
Jonas Bark
7e4f1697b0 update iOS SDK 2026-04-29 09:42:58 +02:00
Jonas Bark
2187056260 ci: include native PDBs in Windows symbols artifact
Lets future native crashes in bike_control.exe / plugin DLLs (e.g. the
universal_ble_plugin failfast investigated in 5.3.0) be symbolicated with
WinDbg / dbghelp instead of relying on offset-only stack frames.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-28 18:22:40 +02:00
Jonas Bark
00ddbb7ea7 patch adjustments 2026-04-22 09:41:32 +02:00
Jonas Bark
624f871c5d patch it 2026-04-21 21:04:19 +02:00
Jonas Bark
9f2e5af315 zip build files 2026-04-13 13:32:30 +02:00
Jonas Bark
99d55d2996 fix patch 2026-03-26 16:37:48 +01:00
Jonas Bark
393ac83c8d fix patch 2026-03-26 16:34:04 +01:00
Jonas Bark
f09ec17c34 commit 2026-03-26 10:50:11 +01:00
Jonas Bark
3643944009 commit 2026-03-26 10:25:37 +01:00
Jonas Bark
d16486b1e0 Merge branch 'patch' 2026-03-23 09:44:09 +01:00
Jonas Bark
d5ab8aad50 obfuscate not needed 2026-03-22 18:57:43 +01:00
Jonas Bark
cee6527af9 upload msix directly 2026-03-22 11:45:34 +01:00
Jonas Bark
b6b54878b3 fix logs 2026-03-19 21:15:14 +01:00
Jonas Bark
5aa259483a reenable steering for earlier purchases 2026-03-19 21:01:50 +01:00
Jonas Bark
72b0f38cc0 patch 2026-03-19 08:06:58 +01:00
Jonas Bark
3214c72b03 patch windows 2026-03-11 10:11:40 +01:00
Jonas Bark
f89959a03c version++ 2026-03-08 16:15:28 +01:00
Jonas Bark
2c59475fdd use store ID from Windows #1 2026-03-07 17:22:47 +01:00
Jonas Bark
10d4e299b8 actions fix 2026-03-07 08:34:24 +01:00
Jonas Bark
54801e2b04 re-add Windows Store MSIX 2026-03-06 19:31:58 +01:00
Jonas Bark
f49e2a92c9 version++ 2026-03-06 18:38:10 +01:00
Jonas Bark
9091318470 version++ 2026-03-06 18:35:49 +01:00
Jonas Bark
809596d397 revise logic 2026-03-06 18:18:23 +01:00
Jonas Bark
da43f19533 no longer build self signed MSIX 2026-03-06 18:12:09 +01:00
Jonas Bark
225a670213 actions 2026-03-06 17:45:27 +01:00