Skip to main content

Crate tauri_plugin_revenuecat

Crate tauri_plugin_revenuecat 

Source
Expand description

§tauri-plugin-revenuecat

Bridges the platform store (StoreKit 2 on iOS, Play Billing on Android) into the revenuecat crate’s StoreBilling seam through a Tauri 2 mobile plugin. Desktop targets have no store — configure the SDK with a test_ Test Store key there, or sell via web billing.

ⓘ
tauri::Builder::default()
    .plugin(tauri_plugin_revenuecat::init())
    .setup(|app| {
        let billing = tauri_plugin_revenuecat::store_billing(app.handle())?;
        let purchases = revenuecat::Purchases::configure(
            revenuecat::Configuration::builder("goog_or_appl_KEY")
                .store_billing(billing)
                .build()?,
        )?;
        // manage(purchases) ...
        Ok(())
    })

Status: the Rust side and native shims are code-complete; end-to-end purchases still need store accounts + devices to verify (see README).

Structs§

ConfigureOptions
Options for [configure], mirroring the essentials of ConfigurationBuilder. platform_flavor is set to Tauri automatically.
LoginResult
PluginProduct
PluginTransaction
SessionInfo

Functions§

init
Initializes the plugin; registers the native shim on mobile targets and is a no-op on desktop.
store_billing
Returns a StoreBilling backed by the platform store, for ConfigurationBuilder::store_billing. Errors on desktop targets, where no store exists.