Deployment¶
Learn how to build and deploy ShopSync to various platforms.
Overview¶
ShopSync supports deployment to:
- 📱 Android - Google Play Store
- 🌐 Web - Firebase Hosting
- ⌚ WearOS - Galaxy Store & Google Play
- 🍎 iOS - Coming soon
Quick Start¶
Prerequisites¶
- Flutter SDK 3.6.0+
- Firebase project configured
- Platform-specific SDKs installed
Build Commands¶
bash flutter build apk --release flutter build appbundle --release
bash flutter build web --release firebase deploy --only hosting
bash flutter build apk --release --target-platform android-arm64
Platform Guides¶
Android Deployment¶
Complete guide for deploying to Google Play Store:
- Signing configuration
- Build variants
- Release preparation
- Play Store submission
Web Deployment¶
Deploy to Firebase Hosting:
- Build optimization
- Firebase setup
- Custom domains
- Performance tuning
CI/CD Pipeline¶
Automate builds with GitHub Actions:
- Continuous integration
- Automated testing
- Release management
- Multi-platform builds
Environment Configuration¶
Development¶
Staging¶
Production¶
Build Variants¶
Debug Build¶
For development and testing:
Features:
- Hot reload enabled
- Debug symbols included
- Larger binary size
- Development Firebase config
Release Build¶
For production deployment:
Features:
- Code obfuscation
- Optimized performance
- Smaller binary size
- Production Firebase config
Version Management¶
Versioning Strategy¶
ShopSync follows semantic versioning:
Increment:
MAJOR: Breaking changesMINOR: New featuresPATCH: Bug fixes
Update pubspec.yaml¶
Format: version+build_number
Pre-Deployment Checklist¶
- All tests passing
- Code review complete
- Version numbers updated
- Changelog updated
- Firebase config production-ready
- Secrets properly configured
- App icons updated
- Screenshots prepared
- Store listing complete
- Beta testing complete
Monitoring & Analytics¶
Firebase Crashlytics¶
Monitor app stability:
Sentry Integration¶
Additional error tracking:
Analytics Events¶
Track key metrics:
Rollback Strategy¶
If issues arise post-deployment:
- Immediate: Halt rollout in Play Console
- Quick Fix: Deploy hotfix if simple
- Rollback: Revert to previous version
- Communicate: Post status update and remediation ETA