mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 10:19:43 +00:00
Add question types, nudge feature, and share modal
- Add new question card components (photo, audio, text, who-likely) - Add share preview modal for matches - Add nudge notification system with rate limiting - Add session-based notification improvements - Add match confetti celebration animation - Update onboarding flow with paywall tracking - Remove deprecated swipe card and tutorial components - Update GlassCard/GlassInput to use solid backgrounds - Fix routing issues after packs screen removal
This commit is contained in:
1 parent
8612b16b93
commit
1daf386765
114 files changed
+14877
-7911
No files matched your search
@@ -145,7 +145,7 @@ class RevenueCatService {
|
||||
return result.current;
|
||||
}
|
||||
|
||||
async getOfferingsDebug(): Promise<{
|
||||
async getOfferingsDebug(offeringIdentifier?: string): Promise<{
|
||||
current: PurchasesOffering | null;
|
||||
availableOfferings: string[] | null;
|
||||
error: string | null;
|
||||
@@ -162,8 +162,17 @@ class RevenueCatService {
|
||||
const offerings = await this.Purchases.getOfferings();
|
||||
const availableOfferings = Object.keys(offerings.all || {});
|
||||
|
||||
// If a specific offering is requested, try to get it
|
||||
let targetOffering = offerings.current;
|
||||
if (offeringIdentifier && offerings.all?.[offeringIdentifier]) {
|
||||
console.log(`RevenueCat: Using offering "${offeringIdentifier}"`);
|
||||
targetOffering = offerings.all[offeringIdentifier];
|
||||
} else if (offeringIdentifier) {
|
||||
console.log(`RevenueCat: Offering "${offeringIdentifier}" not found, falling back to current`);
|
||||
}
|
||||
|
||||
return {
|
||||
current: offerings.current,
|
||||
current: targetOffering,
|
||||
availableOfferings,
|
||||
error: null
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user