revenuecat-patterns

Solid

RevenueCat SDK entegrasyon pattern'leri. iOS (Swift), Android (Kotlin), React Native ve Flutter icin setup, offerings, entitlement checking, webhook integration, StoreKit 2 migration ve sandbox testing.

AI & Automation 552 stars 45 forks Updated 6 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
91
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# RevenueCat Integration Patterns ## SDK Setup ### iOS (Swift + StoreKit 2) ```swift // AppDelegate.swift veya @main App import RevenueCat Purchases.logLevel = .debug // sandbox'ta acik tut Purchases.configure( with: .init(withAPIKey: "appl_XXXXXXXXXXXXX") .with(usesStoreKit2IfAvailable: true) ) // Kullanici kimlik eslestirme (auth sonrasi) Purchases.shared.logIn("user_id_from_your_backend") { customerInfo, created, error in // created: true ise yeni kullanici } // Logout Purchases.shared.logOut { customerInfo, error in } ``` ### Android (Kotlin) ```kotlin // Application.onCreate() Purchases.logLevel = LogLevel.DEBUG Purchases.configure( PurchasesConfiguration.Builder(this, "goog_XXXXXXXXXXXXX") .appUserID("user_id") // null ise anonim .build() ) ``` ### React Native ```typescript import Purchases from 'react-native-purchases'; // App.tsx useEffect icinde await Purchases.configure({ apiKey: Platform.OS === 'ios' ? 'appl_XXXXXXXXXXXXX' : 'goog_XXXXXXXXXXXXX', appUserID: userId ?? undefined, // null = anonim }); ``` ### Flutter ```dart // main.dart await Purchases.configure( PurchasesConfiguration('appl_XXXXXXXXXXXXX') ..appUserID = userId ); ``` --- ## Offerings ve Paywalls ### Offerings Getirme ```swift // iOS Purchases.shared.getOfferings { offerings, error in guard let current = offerings?.current else { return } let monthly = current.monthly // Package? let annual = current.annual // ...

Details

Author
vibeeval
Repository
vibeeval/vibecosystem
Created
8 months ago
Last Updated
6 days ago
Language
C#
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category