A Flutter package for in-app updates during the development phase, leveraging your app's global network.
- In-App Updates: Easily prompt users to update your app directly from within the application.
- Development Focused: Designed specifically for the development and testing phases, making it easier to distribute new builds to your team.
- Network-Based: Utilizes your app's existing network capabilities to fetch update information and download new versions.
Add dev_updater to your pubspec.yaml file:
dependencies:
dev_updater: ^0.0.1Then, run flutter pub get to fetch the package.
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />A basic example of how to use dev_updater:
import 'package:dev_updater/dev_updater.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
// Initialize DevUpdater
DevUpdater().checkAndUpdate(context); // Add this on your main.dart files
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Dev Updater Example'),
),
body: Center(
child:Text("Your Usual widget")
),
),
);
}
}Get the store.py file form GitHub repository
Then run python store.py and fill the required fields
Contributions are welcome! Please feel free to open issues or pull requests on the GitHub repository.
This package is released under the MIT License. See the LICENSE file for more details.