auto_updater icon indicating copy to clipboard operation
auto_updater copied to clipboard

Documentation clarification

Open milesegan opened this issue 1 year ago • 0 comments

The usage example in the README calls the API this way:

void main() async {
  // Must add this line.
  WidgetsFlutterBinding.ensureInitialized();

  String feedURL = 'http://localhost:5002/appcast.xml';
  await autoUpdater.setFeedURL(feedURL);
  await autoUpdater.checkForUpdates();
  await autoUpdater.setScheduledCheckInterval(3600);

  runApp(MyApp());
}

But reading through the docs and the code it looks like the only thing actually necessary to enable the autoUpdater is this:

String feedURL = 'http://localhost:5002/appcast.xml';
await autoUpdater.setFeedURL(feedURL);

Calling checkForUpdates or setScheduledCheckInterval is not necessary for a basic working setup. Is that correct? If so maybe the docs could be expanded to make this more clear?

I'm happy to make a PR if this is correct.

milesegan avatar Dec 01 '24 02:12 milesegan