LifeMate — Personal, Family & Learning Companion
docs/offline-data-rescue-options
chore/phase1-repository-cleanup
deploy/stable-web-apk
deployment-static
design/mobile-accessibility-v2
design/mobile-navigation-review
docs/child-education-access-decision
docs/offline-data-rescue-options
docs/owner-guide-and-delivery-plan
docs/phase1-policy-options
docs/public-review-live-2026-10-15
feat/aparat-learning-library
feat/child-device-safety
feat/child-identity-schema
feat/flutter-mobile-navigation
feat/learning-content-operations
feat/local-signing-preflight
feat/online-family-stage0
feat/personal-encrypted-recovery
feat/private-planner-series-api
feat/public-review-page
feat/standalone-weekly-planner
feat/weekly-planner-android
final-feature-1/iran-family-school
fix/auth-abuse-expiry-safety
fix/auth-expiry-after-lock
fix/backend-request-safety
fix/lifeguide-bootstrap-naming-ci
fix/lifeguide-pages-qa-base-preflight
fix/lifeguide-qa-pages-env-deployment
fix/local-task-persistence
fix/managed-child-session-boundary
fix/personal-jalali-dates
fix/personal-notification-controls
fix/personal-upgrade-delivery-guard
fix/sms-approval-gates
fix/study-duration-display
infra/cloudflare-neon-migration
infra/lifeguide-cloudflare-qa
infra/lifeguide-github-pages-qa
infra/lifeguide-supabase-qa
main
phase-1/foundation-completion
phase-2/product-foundation-identity
phase-3/planner-school-family-core
phase-4/ai-learning-wellbeing
phase-5/hardening-observability-release
test/android-reminder-acceptance
test/personal-notification-settings
test/personal-recovery-acceptance
test/role-entry-apk
| 1 | name: LifeGuide personal Android APK (device-only) |
| 2 | on: |
| 3 | pull_request: |
| 4 | paths: |
| 5 | - '.github/workflows/standalone-personal-apk.yml' |
| 6 | - 'apps/lifemate/lib/standalone/**' |
| 7 | - 'apps/lifemate/lib/standalone_main.dart' |
| 8 | - 'apps/lifemate/test/standalone*' |
| 9 | - 'apps/lifemate/tool/*standalone*' |
| 10 | - 'apps/lifemate/android/**' |
| 11 | - 'apps/lifemate/pubspec*' |
| 12 | - 'docs/operations/personal-delivered-baseline.json' |
| 13 | workflow_dispatch: |
| 14 | permissions: |
| 15 | contents: read |
| 16 | concurrency: |
| 17 | group: lifeguide-personal-${{ github.ref }} |
| 18 | cancel-in-progress: true |
| 19 | jobs: |
| 20 | personal-apk: |
| 21 | runs-on: ubuntu-latest |
| 22 | timeout-minutes: 35 |
| 23 | defaults: |
| 24 | run: |
| 25 | working-directory: apps/lifemate |
| 26 | env: |
| 27 | ORG_GRADLE_PROJECT_lifeguideDevicePlanner: 'true' |
| 28 | steps: |
| 29 | - uses: actions/checkout@v4 |
| 30 | - uses: actions/setup-java@v4 |
| 31 | with: {distribution: temurin, java-version: '17'} |
| 32 | - uses: subosito/flutter-action@v2 |
| 33 | with: {flutter-version: '3.47.6', channel: stable, cache: true} |
| 34 | - run: flutter pub get |
| 35 | - name: Verify personal edition and test-tool safety |
| 36 | run: | |
| 37 | dart format --output=none --set-exit-if-changed lib/standalone lib/standalone_main.dart test/standalone* tool/standalone_acceptance_fixture.dart |
| 38 | flutter analyze |
| 39 | flutter test |
| 40 | python3 -m unittest discover -s tool -p '*standalone*test.py' -v |
| 41 | - name: Build actual user APK (no fixture and no INTERNET permission) |
| 42 | run: | |
| 43 | flutter build apk --debug --target=lib/standalone_main.dart --dart-define=LIFEGUIDE_STANDALONE=true --build-name=0.7.2-personal.1 --build-number=9 |
| 44 | cp build/app/outputs/flutter-apk/app-debug.apk build/LifeGuide.apk |
| 45 | mkdir -p exports |
| 46 | python3 tool/check_standalone_apk.py build/LifeGuide.apk > exports/standalone-apk-manifest.json |
| 47 | SIGNER=$(find "$ANDROID_HOME/build-tools" -type f -name apksigner | sort -V | tail -1) |
| 48 | "$SIGNER" verify --verbose --print-certs build/LifeGuide.apk > exports/standalone-apk-signature.txt |
| 49 | sha256sum build/LifeGuide.apk > exports/standalone-apk-sha256.txt |
| 50 | - name: Build same-signature synthetic fixture (never distributed) |
| 51 | run: | |
| 52 | flutter build apk --debug --target=tool/standalone_acceptance_fixture.dart --dart-define=LIFEGUIDE_STANDALONE=true --dart-define=LG_STANDALONE_ACCEPTANCE=true --build-name=0.7.2-personal.1 --build-number=9 |
| 53 | cp build/app/outputs/flutter-apk/app-debug.apk build/standalone-private-fixture.apk |
| 54 | python3 tool/check_standalone_apk.py build/standalone-private-fixture.apk |
| 55 | - name: Enable KVM for fresh synthetic emulator |
| 56 | run: | |
| 57 | test -c /dev/kvm |
| 58 | echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules |
| 59 | sudo udevadm control --reload-rules |
| 60 | sudo udevadm trigger --name-match=kvm |
| 61 | - name: Launch real user APK; verify SQLite and actual OS alarms |
| 62 | uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d |
| 63 | with: |
| 64 | api-level: 35 |
| 65 | target: google_apis |
| 66 | arch: x86_64 |
| 67 | profile: pixel_6 |
| 68 | emulator-port: 5554 |
| 69 | avd-name: lifeguide-personal-synthetic |
| 70 | force-avd-creation: true |
| 71 | emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -wipe-data -noaudio -no-boot-anim -camera-back none |
| 72 | working-directory: apps/lifemate |
| 73 | script: python3 tool/test_standalone_android.py --serial emulator-5554 --user-apk build/LifeGuide.apk --fixture-apk build/standalone-private-fixture.apk --allow-synthetic-emulator-reset --output exports/standalone-android.json |
| 74 | - name: Require compatibility with the delivered personal APK |
| 75 | run: python3 tool/check_standalone_update.py build/LifeGuide.apk > exports/standalone-update-compatibility.json |
| 76 | # Reviewed source hold: the same-run fixture above does not test the exact |
| 77 | # delivered APK -> candidate with data in the default product database. |
| 78 | # Remove only with implemented, independently verified upgrade acceptance. |
| 79 | # No workflow input, environment flag or manual dispatch bypasses this hold. |
| 80 | - name: User APK delivery blocked pending default-database upgrade acceptance |
| 81 | if: ${{ false }} |
| 82 | uses: actions/upload-artifact@v4 |
| 83 | with: |
| 84 | name: LifeGuide-personal-Android-0.7.2-9 |
| 85 | path: apps/lifemate/build/LifeGuide.apk |
| 86 | if-no-files-found: error |
| 87 | - name: Preserve sanitized verification output |
| 88 | if: always() |
| 89 | uses: actions/upload-artifact@v4 |
| 90 | with: |
| 91 | name: LifeGuide-personal-verification |
| 92 | path: apps/lifemate/exports/standalone-* |
| 93 | if-no-files-found: warn |