omnivore/cursor-rules/mobile-development-cursorrules.md

41 lines
1.1 KiB
Markdown

# Mobile Development - Cursor Rules
## iOS Development
- Use Swift with SwiftUI
- Share GraphQL schemas between platforms
- Implement proper offline capabilities
- Use platform-specific UI patterns
- Handle deep linking appropriately
## Android Development
- Use Kotlin with Jetpack Compose
- Share GraphQL schemas between platforms
- Implement proper offline capabilities
- Use platform-specific UI patterns
- Handle deep linking appropriately
## Cross-Platform Considerations
- Share GraphQL schemas between platforms
- Maintain consistent data models
- Implement proper error handling across platforms
- Use platform-specific UI/UX patterns
- Handle offline scenarios consistently
## Browser Extension Development
- Support Chrome, Firefox, Safari, and Edge
- Use Manifest V3 where applicable
- Implement proper content security policies
- Handle permissions appropriately
- Use background scripts efficiently
- Implement proper error handling
## Performance Optimization
- Optimize bundle sizes for mobile
- Implement proper caching strategies
- Use lazy loading where beneficial
- Monitor performance metrics on mobile devices