RevenueCat / purchases-android

Android in-app purchases and subscriptions made easy.
https://www.revenuecat.com/
MIT License
245 stars 48 forks source link

Add Emerge snapshot testing #1785

Closed rbro112 closed 22 hours ago

rbro112 commented 1 month ago

Checklist

Motivation

Adds Emerge snapshots to purchases UI, as RevenueCat has expressed interest and we figured we'd make the process easier 😄 .

Description

Adds the basic integration necessary for getting up and running with Emerge snapshots:

For the best usage, we recommend running snapshots on every commit - all PR commits and main commits. Emerge will run & snapshot all @Preview annotated functions, storing the generated snapshots based on the sha of that upload.

If the commit has a valid baseSha set and we have snapshots for that baseSha, we'll automatically compare the snapshots and let you know if there's any visual changes directly on the PR. See our snapshot docs for all functionality!

Remaining tasks for RevenueCat to implement to complete this: