cranpose-storekit 0.1.113

StoreKit 2 in-app purchases for Cranpose (iOS/macOS)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    cranpose_storekit::register();
    #[cfg(any(target_os = "ios", target_os = "macos"))]
    {
        use cranpose_services::purchases::{self, Purchases};
        purchases::configure(&["com.example.link.check"]);
        let backend = cranpose_storekit::StoreKitPurchases;
        backend.purchase("com.example.link.check");
        backend.restore();
        println!("{:?}", purchases::store_state());
    }
}