engage-sdk-integration
Installation
SKILL.md
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:
-
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. Read the TV-specific sections in patterns.md as well if the integration is for TV.
- Use
{VERTICAL}.mdin the references/schemas/ directory to identify the corresponding Engage entities and theclientclass name. Theclientfield in the JSON provides the full class name. (e.g.,com.google.android.engage.food.service.AppEngageFoodClient). - Note: Initializing the client class requires a
Contextparameter (e.g.,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}.mdin 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.
-
Generate Structured Boilerplate Code: