Bỏ qua để đến nội dung

Checklist & sự cố

Checklist trước khi phát hành

  • ☐ App trên Play Console, package com.tst.game.drone_strike, Play App Signing bật.
  • ☐ Play Games Services: Cloud project, credential Android (SHA-1 app signing) + Game server (web client), tester/publish.
  • ☐ Portal: Android package, khiên Play Games "Đã cấu hình", API key mới cho bản phát hành.
  • ☐ Game: app_id, PLAY_GAMES_WEB_CLIENT_ID trùng Portal, PORTAL_BASE_URL, PORTAL_API_KEY; App ID AdMob thật (không phải ID test).
  • ☐ Đăng nhập thử bằng tài khoản tester → người chơi xuất hiện trong Portal.
  • ☐ (IAP) Sản phẩm active ở Play Console = SKU trong Shop; service account được mời với đủ quyền; file JSON trong credentials/; .env có đường dẫn file; mua thử bằng license tester thành công; rồi mới bật cờ iap cho người chơi thật.
  • ☐ (IAP) Hoàn tiền thử → cron 02:25 thu hồi.
  • ☐ check_backups.sh báo config credential coverage OK (file credential được sao lưu).

Bảo mật

  • Web client secret, file JSON service account, IAP_TOKEN_ENCRYPTION_KEY không bao giờ vào git, chat công khai hay bản build game.
  • Lộ file service account: Cloud → Service account → Keys → xóa khóa cũ, tạo khóa mới, thay file trên VPS, up -d backend.
  • Lộ web client secret: Cloud → OAuth client → Reset secret, nhập lại ở khiên trong Portal.

Tài liệu liên quan

  • DEPLOY.md / DEPLOY.html: §3.5 file credential, §8.1 bước 4 (khiên Play Games), §8.5 "Bật IAP", §13 build game.
  • tasks/phase_k/guide_test_k.7.md, decisions_phase_k.md (K-D13: vì sao dùng server auth code).
  • tasks/phase_o/guide_test_o.7.md, guide_test_o.10.md, task_o.7_iap_fulfillment.md (luồng IAP, hoàn tiền).
  • Repo SDK tinysoft_game_kit: ONBOARDING_GAME.md, packages/portal_identity/README.md.

Áp dụng cho Portal v1.2.2