Skip to main content

cranpose_storekit/
lib.rs

1#![deny(missing_docs)]
2#![doc = include_str!("../README.md")]
3
4#[cfg(any(target_os = "ios", target_os = "macos"))]
5mod apple;
6
7#[cfg(any(target_os = "ios", target_os = "macos"))]
8pub use apple::{StoreKitPurchases, register};
9
10/// Installs the StoreKit backend — a no-op on targets without an App Store.
11///
12/// Call it before
13/// [`configure`](cranpose_services::purchases::configure); apps that also run
14/// on Android or desktop can call it unconditionally.
15#[cfg(not(any(target_os = "ios", target_os = "macos")))]
16pub fn register() {}