Skip to content

Add expo wiring for consume Android function - #93

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

filbabic wants to merge 1 commit into
superwall:mainfrom
filbabic:filbabic/consume-expo

Conversation

@filbabic

@filbabic filbabic commented Nov 5, 2025

Copy link
Copy Markdown

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

pkg-pr-new Bot commented Nov 5, 2025

Copy link
Copy Markdown

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