For AI agents: the complete documentation index is available at ../../../llms.txt, the full documentation bundle is available at ../../../llms-full.txt, and this page is available as Markdown at ../../../quality/scripts/subflows/dismiss-offers.md.

subflows/dismiss-offers.yaml

Source

appId: ${APP_ID}
---
# Closes what may open over the song list on its own: the subscription offers (the launch / home-return
# paywall, the 50% sale) and "Learn Mode unlocked!" (it opens once 3 songs are finished — a seeded
# `e2eSongEnds` count passes that at launch). Leaves the No Ads popup and the fake ads alone: the flows
# that care assert those.
- runFlow:
    when:
      visible:
        id: "learn-unlocked-close"
    commands:
      - tapOn:
          id: "learn-unlocked-close"
- runFlow:
    when:
      visible:
        id: "paywall-close"
    commands:
      - tapOn:
          id: "paywall-close"
- runFlow:
    when:
      visible:
        id: "sale-off-50-close"
    commands:
      - tapOn:
          id: "sale-off-50-close"