Refactor StoreKit 2 subscription system and add interactive vote widget
## StoreKit 2 Refactor - Rewrote IAPManager with clean enum-based state model (SubscriptionState) - Added native SubscriptionStoreView for iOS 17+ purchase UI - Subscription status now checked on every app launch - Synced subscription status to UserDefaults for widget access - Simplified PurchaseButtonView and IAPWarningView - Removed unused StatusInfoView ## Interactive Vote Widget - New FeelsVoteWidget with App Intents for mood voting - Subscribers can vote directly from widget, shows stats after voting - Non-subscribers see "Tap to subscribe" which opens subscription store - Added feels:// URL scheme for deep linking ## Firebase Removal - Commented out Firebase imports and initialization - EventLogger now prints to console in DEBUG mode only ## Other Changes - Added fallback for Core Data when App Group unavailable - Added new localization strings for subscription UI - Updated entitlements and Info.plist 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -120,8 +120,19 @@
|
||||
"purchase_view_loading" = "Loading subscription options";
|
||||
"purchase_view_restore" = "Restore";
|
||||
|
||||
"iap_warning_view_title" = "This view will no longer scroll in ";
|
||||
"iap_warning_view_buy_button" = "Subscribe Now";
|
||||
"iap_warning_view_title" = "La prueba expira en ";
|
||||
"iap_warning_view_buy_button" = "Suscribirse Ahora";
|
||||
|
||||
"subscription_store_title" = "Desbloquear Acceso Completo";
|
||||
"subscription_store_subtitle" = "Obtén acceso ilimitado a las vistas de Mes y Año, además de todos tus datos de estado de ánimo históricos.";
|
||||
"subscription_required_button" = "Suscribirse para Desbloquear";
|
||||
"subscription_status_active" = "Activa";
|
||||
"subscription_status_expires" = "Expira Pronto";
|
||||
"purchase_view_trial_expired" = "Tu prueba gratuita ha terminado.";
|
||||
"purchase_view_subscribe_button" = "Suscribirse Ahora";
|
||||
"purchase_view_trial_expires_in" = "La prueba expira en";
|
||||
"purchase_view_manage_subscription" = "Administrar Suscripción";
|
||||
"purchase_view_change_plan" = "Cambiar Plan";
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user