# Complete - mattermost_push_plugin_extraction/03+01,02_host_consumer

## 완료 일시

2026-05-25

## 요약

Host app plugin consumer 전환을 4-loop review로 완료했다. 최종 판정은 PASS.

## 루프 이력

| Plan | Review | Verdict | 메모 |
|------|--------|---------|------|
| `plan_cloud_G07_0.log` | `code_review_cloud_G07_0.log` | FAIL | notification tap/open event delivery, host local notification dependency, Android build verification trust follow-up 필요 |
| `plan_cloud_G07_1.log` | `code_review_cloud_G07_1.log` | FAIL | code/dependency follow-up은 닫혔으나 Android debug build가 SDK 부재로 실패 |
| `plan_cloud_G07_2.log` | `code_review_cloud_G07_2.log` | WARN | 원격 Android debug build는 PASS, repo-local transfer artifact cleanup 필요 |
| `plan_cloud_G07_3.log` | `code_review_cloud_G07_3.log` | PASS | transfer artifact 제거 검증 완료 |

## 구현/정리 내용

- `apps/mobile`을 `mattermost_push_plugin` path dependency consumer로 전환하고 local push facade/background handler를 제거했다.
- app-owned Android push service, receiver, ACK/helper/DB source와 notification resources를 제거하고 host manifest/Gradle을 consumer 경계로 정리했다.
- plugin 쪽 notification initial/new intent delivery와 pending EventChannel delivery를 보강하고 Kotlin nullable `EventSink` compile issue를 최소 수정했다.
- host `flutter_local_notifications` direct dependency와 generated registrant 잔여물을 제거했다.
- Android SDK-enabled 원격 환경에서 `flutter build apk --debug`를 성공시켰고, repo-local transfer artifact를 제거했다.

## 최종 검증

- `ssh toki@toki-labs.com "export ANDROID_HOME=/Users/toki/Library/Android/sdk && export PATH=/Users/toki/SDK/flutter/bin:\$PATH && cd ~/tmp/nomadcode-build/apps/mobile && flutter build apk --debug"` - PASS; `✓ Built build/app/outputs/flutter-apk/app-debug.apk`
- `cd /config/workspace/nomadcode && find . -maxdepth 2 -type f \( -name '*.tar.gz' -o -name '*.zip' -o -name '*.apk' \) -print` - PASS; no output
- `cd /config/workspace/nomadcode && git status --short nomadcode.tar.gz agent-task/mattermost_push_plugin_extraction/03+01,02_host_consumer` - PASS; no `nomadcode.tar.gz`, only active task files before review finalization

## 잔여 Nit

- 없음

## 후속 작업

- 없음
