feat(ios): add lock-screen Live Activities for running sessions

Hub:
- add encrypted Live Activity token registry, registration API, and
  update/end pushes over direct APNs
- enable only for HAPI_IOS_PUSH=apns; relay reports remote:false
- keep content-state encrypted with the per-install push key and a
  domain-separated AAD

iOS:
- add ActivityKit coordinator, HapiWidgets extension, lock-screen and
  Dynamic Island UI, encrypted content-state, deep links, and settings toggle
- cap concurrent activities and reconcile across hub switches

Docs/tests:
- native contract, privacy, READMEs, localization catalogs
- cross-language cipher fixture and hub/iOS unit tests

via [HAPI](https://hapi.run)

Co-Authored-By: HAPI <noreply@hapi.run>
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-11-06 19:18:09 +08:00
co-authored by HAPI Claude Code
parent d6a0bb2ec1
commit b81c6be39b
55 changed files with 4302 additions and 61 deletions
+2 -1
View File
@@ -42,6 +42,7 @@ jobs:
PYTHONDONTWRITEBYTECODE: '1'
run: |
python3 ios/scripts/localizations.py --check
python3 ios/scripts/localizations.py --check ios/HapiWidgets/Localizable.xcstrings
python3 -m unittest discover -s ios/scripts/tests -p 'test_localizations.py'
- name: Build Hapi app for iOS Simulator
run: xcodebuild build -project ios/Hapi.xcodeproj -scheme Hapi -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO
@@ -69,4 +70,4 @@ jobs:
-only-testing:HapiTests/SessionSplitPresentationTests
-only-testing:HapiTests/TranscriptGeometryTests
- name: Verify localization catalog was not rewritten
run: git diff --exit-code -- ios/Hapi/Resources/Localizable.xcstrings
run: git diff --exit-code -- ios/Hapi/Resources/Localizable.xcstrings ios/HapiWidgets/Localizable.xcstrings