본문으로 건너뛰기
Skillpedia
모바일 앱10k · #11928

engage-sdk-integration

하는 일

이 스킬은 Android 앱에 Google Play Engage SDK를 추가하는 방법을 안내합니다. 알맞은 버티컬과 엔티티를 고르고, 게시 코드를 작성하며, SDK 오류를 고치도록 돕습니다. 콘텐츠를 Google Play 추천 영역에 보이게 하려는 Android 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Engage SDK로 앱 콘텐츠를 Google Play에 게시하고 싶을 때.
  • ✓앱의 데이터 클래스를 해당 버티컬의 Engage 엔티티에 연결해야 할 때.
  • ✓Engage SDK에서 오류가 나서 고쳐야 할 때.

스킬 링크

https://github.com/android/skills/blob/main/play/engage-sdk-integration/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/android/skills/blob/main/play/engage-sdk-integration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내 음식 앱에 Play Engage SDK를 연동해서 레시피를 Google Play에 게시할 수 있게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 앱이 쓰는 버티컬과 클러스터를 먼저 묻고, 그에 맞는 스키마를 읽어 엔티티와 클라이언트 클래스를 확인합니다. 필요한 요청 구조를 갖춘 게시 코드를 작성하고 오류 디버깅을 돕습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

This skill guides you through integrating the Play Engage SDK into an Android app. It ensures that the code follows the mandatory structure and uses the required Engage entities for each vertical.

Workflow

Follow these steps to assist the developer:

  1. Identify vertical and cluster:

    • Ask the developer which vertical their app belongs to based on references/schemas/.
    • Check if the integration is for TV or mobile. If the integration is for TV, read the TV-specific sections in patterns.md as well.
    • Use {VERTICAL}.md in the references/schemas/ directory to identify the corresponding Engage entities and the client class name. The client field in the JSON provides the full class name. For example, com.google.android.engage.food.service.AppEngageFoodClient.
    • Note: Initializing the client class requires a Context parameter. For example, AppEngageFoodClient(context).
    • Always refer to common.md for common entities.
    • Ask which cluster type they want to publish from the supported cluster types for that vertical.
    • Find the method to call from {VERTICAL}.md in the references/schemas/ directory for the specified cluster. Each method will specify the request it expects.
    • Get the request structure from requests.md and clusters from clusters.md. Then suggest and use sources to fill the fields in the request structure correctly, along with the required entities and clusters.
  2. Generate structured boilerplate code:

    • Create a new directory for all Engage-related code. Name the directory to match the naming convention of the existing codebase.
    • Generate the following classes using templates in patterns.md:
      • Constants: holds constant values such as attempt counts and publish types.
      • ItemToEntityConverter: converts the app's local models to Engage's Entity models.
      • ClusterRequestFactory: constructs the publish requests.
      • EngageWorker: handles the actual publishing and publish errors using WorkManager.
      • EngagePublisher: orchestrates periodic and one-time jobs.
      • EngageBroadcastReceiver: listens for AppEngageService intents and starts a one-time publish job from EngagePublisher. Important : Implement both static registration and dynamic registration patterns, including the companion object register method inside the EngageBroadcastReceiver class.
  3. Suggest entity mapping:

    • Ask the developer to provide their local model schema (for example, a data class or a JSON snippet).
    • If they haven't provided one, share entities from {VERTICAL}.md in the references/schemas/ directory as a guide.
    • Once the local model is identified, suggest a mapping to the corresponding Engage entity.
    • Generate the conversion logic using the ItemToEntityConverter pattern in patterns.md and add it to the generated {ENGAGE_CODE_DIR}/ItemToEntityConverter.
  4. Suggest data source:

    • Ask the developer to provide the source of actual data you'll publish.
    • Once you identify the data source, use it to fetch the data in the app's local model schema.
    • Use {ENGAGE_CODE_DIR}/ItemToEntityConverter to convert this data to an Engage entity.
    • Use obtained Engage entity model data with {ENGAGE_CODE_DIR}/ ClusterRequestFactory to get cluster requests.
    • Call corresponding cluster publishing method obtained from {VERTICAL}.md in the references/schemas/ directory with the obtained request in previous step in {ENGAGE_CODE_DIR}/EngageWorker.
  5. Gradle and manifest updates:

    • Suggest updates to build.gradle and AndroidManifest.xml.
    • For mobile apps, use patterns.md.
    • For TV apps, use the TV-specific sections in patterns.md.
    • Provide the necessary implementation dependencies for build.gradle or build.gradle.kts from patterns.md.
    • Provide the <receiver> and <service> declarations for AndroidManifest.xml.
    • Note: Except for TV, there aren't any vertical-specific imports. For all other verticals, com.google.android.engage:engage-core:1.6.0 is sufficient.
  6. Debugging and verification:

    • **S
자주 묻는 질문

TV 앱도 다루나요?

네. 연동 대상이 TV라면 스킬이 TV 전용 안내도 함께 사용합니다.

먼저 질문을 하나요?

네. 앱이 어느 버티컬에 속하는지와 게시하려는 클러스터 유형을 묻습니다.

제 Google Play 계정이 필요한가요?

스킬은 코드에 집중합니다. 계정과 콘솔 설정은 스킬이 다루는 범위 밖입니다.

상세 정보

작성자의 원본 설명

Helps developers integrate, debug, and resolve Play Engage SDK implementation issues. Use when adding Engage SDK support, generating publishing code, mapping data classes to entities, or fixing SDK-related errors.

repo: android/skills

인기도

GitHub 스타
10k
순위
#11928
라이선스
Apache-2.0
업데이트
2026. 10. 29.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬