Smart Update
A Flutter package for checking and prompting app upgrades from app stores with multi-platform support.
Features
- ✅ Multi-platform support (iOS App Store, Google Play Store, Custom Appcast)
- ✅ Semantic version comparison
- ✅ Configurable upgrade policies
- ✅ Localization support
- ✅ Customizable UI dialogs
- ✅ Debug modes for testing
- ✅ User preference persistence
- ✅ Critical update enforcement
Getting Started
Add this to your package's pubspec.yaml
file:
dependencies:
smart_update: ^1.0.0
Usage
Basic Usage
import 'package:smart_update/smart_update.dart';
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: UpgradeAlert(
child: Scaffold(
appBar: AppBar(title: Text('My App')),
body: Center(child: Text('Hello World')),
),
),
);
}
}
Advanced Configuration
UpgradeAlert(
config: UpgradeConfig(
debugMode: true,
countryCode: 'US',
minDays: 3,
dialogStyle: UpgradeDialogStyle.material,
),
child: MyHomePage(),
)
License
MIT License