Trey t
7b0a0e5d85
Implement Android subscription system with freemium limitations
Major subscription system implementation for Android:
BillingManager (Android):
- Full Google Play Billing Library integration
- Product loading, purchase flow, and acknowledgment
- Backend verification via APILayer.verifyAndroidPurchase()
- Purchase restoration for returning users
- Error handling and connection state management
SubscriptionHelper (Shared):
- New limit checking methods: isResidencesBlocked(), isTasksBlocked(),
isContractorsBlocked(), isDocumentsBlocked()
- Add permission checks: canAddProperty(), canAddTask(),
canAddContractor(), canAddDocument()
- Enforces freemium rules based on backend limitationsEnabled flag
Screen Updates:
- ContractorsScreen: Show upgrade prompt when contractors limit=0
- DocumentsScreen: Show upgrade prompt when documents limit=0
- ResidencesScreen: Show upgrade prompt when properties limit reached
- ResidenceDetailScreen: Show upgrade prompt when tasks limit reached
UpgradeFeatureScreen:
- Enhanced with feature benefits comparison
- Dynamic content from backend upgrade triggers
- Platform-specific purchase buttons
Additional changes:
- DataCache: Added O(1) lookup maps for ID resolution
- New minimal models (TaskMinimal, ContractorMinimal, ResidenceMinimal)
- TaskApi: Added archive/unarchive endpoints
- Added Google Billing Library dependency
- iOS SubscriptionCache and UpgradePromptView updates
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-25 11:23:53 -06:00
..
2025-11-04 09:15:49 -06:00
2025-11-25 11:23:53 -06:00
2025-11-20 23:07:37 -06:00
2025-11-21 22:56:43 -06:00
2025-11-20 23:07:29 -06:00
2025-11-24 13:09:55 -06:00
2025-11-20 23:07:14 -06:00
2025-11-10 11:45:45 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-13 22:22:52 -06:00
2025-11-24 21:15:11 -06:00
2025-11-15 11:18:14 -06:00
2025-11-12 20:29:42 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00
2025-11-20 23:07:14 -06:00