Skip to content

[Feature] Android 강제 업데이트 정책 적용#22

Open
leejh08 wants to merge 7 commits into
mainfrom
feature/android-force-update-wip-team
Open

[Feature] Android 강제 업데이트 정책 적용#22
leejh08 wants to merge 7 commits into
mainfrom
feature/android-force-update-wip-team

Conversation

@leejh08
Copy link
Copy Markdown
Member

@leejh08 leejh08 commented May 19, 2026

Summary

  • AppVersionPolicyClient: Firebase Remote Config에서 최소/최신 버전 코드 및 업데이트 메시지를 원격으로 관리
  • AppUpdateCoordinator: Google Play In-App Updates API를 통해 강제/선택 업데이트 흐름 조율
  • Main.kt: 앱 진입 시 업데이트 정책 체크 연결

주요 동작

조건 동작
현재 버전 < 최소 지원 버전 강제 업데이트 (앱 진입 차단)
현재 버전 < 최신 버전 선택 업데이트 팝업
최신 버전 정상 진입

Test plan

  • Firebase Remote Config에서 android_min_supported_version_code 설정 후 강제 업데이트 다이얼로그 표시 확인
  • android_latest_version_code 설정 후 선택 업데이트 팝업 표시 확인
  • 최신 버전일 때 팝업 없이 정상 진입 확인
  • Play Store 연결 불가 환경에서 fallback 동작 확인

🤖 Generated with Claude Code

leejh08 added 7 commits April 23, 2026 20:18
Android installs do not receive Play updates immediately or universally, so the app needs an entry-time policy gate that can be changed after release. Add a Remote Config backed version policy, wire Play Core immediate updates for forced releases, and fall back to a non-cancelable Play Store prompt when Play Core cannot start the flow.\n\nConstraint: Skip Android UI starts from MainActivity, so update gating must live in the Android entrypoint rather than only Swift routing.\nConstraint: No backend policy endpoint exists yet, so Firebase Remote Config defaults fail open unless min/latest values are configured.\nRejected: Store-link-only dialog | loses native Play in-app update UX when available.\nRejected: Swift-only startup modal | cannot reliably block before Android activity lifecycle update resume handling.\nConfidence: medium\nScope-risk: moderate\nDirective: Do not raise android_min_supported_version_code until the target version is available to all intended Play users.\nTested: skip android build --plain\nNot-tested: Real Play Core update availability on an Internal Testing track.
A team auto-checkpoint replaced the Remote Config policy client with a different manifest/HTTP contract after the coordinator was already wired to fetchPolicy/currentVersionCode. Restore the policy client shape that the Android update coordinator builds against so the feature remains internally consistent.\n\nConstraint: AppUpdateCoordinator depends on AppVersionPolicy, AppUpdateRequirement, fetchPolicy, and currentVersionCode.\nRejected: Rewrite the coordinator around manifest metadata in this pass | it would diverge from the planned Remote Config operating model and duplicate already verified code.\nConfidence: high\nScope-risk: narrow\nDirective: Keep policy source and coordinator API changes in the same commit when changing update-gate architecture.\nTested: skip android build --plain\nNot-tested: Remote Config values fetched from production Firebase.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 19, 2026

Warning

Rate limit exceeded

@leejh08 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 27 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 34a52c69-e88e-4f54-b51b-6fe098a50cfe

📥 Commits

Reviewing files that changed from the base of the PR and between af7b9c8 and 06b6c0e.

📒 Files selected for processing (5)
  • Android/app/build.gradle.kts
  • Android/app/src/main/kotlin/AppUpdateCoordinator.kt
  • Android/app/src/main/kotlin/AppVersionPolicyClient.kt
  • Android/app/src/main/kotlin/Main.kt
  • Sources/PiCKAdmin/Features/SelfStudyCheck/Components/SelfStudyCheckComponents.swift
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/android-force-update-wip-team

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant