Skip to content

Add expo wiring for consume Android function#93

Open
filbabic wants to merge 1 commit intosuperwall:mainfrom
filbabic:filbabic/consume-expo
Open

Add expo wiring for consume Android function#93
filbabic wants to merge 1 commit intosuperwall:mainfrom
filbabic:filbabic/consume-expo

Conversation

@filbabic
Copy link

@filbabic filbabic commented Nov 5, 2025

Summary

After @ianrumac exposed consume functions in the base repo to allow users to directly consume an In App purchase using a token, the functionality was missing in Expo.

This PR aims to wire it appropriately, using the latest superwall-android SDK version (2.6.2) and defining an AsyncFunction that matches its signature/usage.

Changes

  • Update superwall-android SDK to 2.6.2
  • Add AsyncFunction("consume") to SuperwallExpoModule for Android wiring
  • Expose consume in SuperwallExpoModule for TS
  • Wire consume in index.ts (compat) and useSuperwall.ts (core)

Test Plan

N/A for now, as this is a PoC/WIP -> looking for a way to test this thoroughly

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 5, 2025

Open in StackBlitz

npm i https://pkg.pr.new/superwall/expo-superwall@93

commit: 02a6e9d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant