// The updater without flutter: ask Garage for the newest release, download it // with resume, check the sha256, install it and restart. // // A headless dart program (an agent, a cli) imports this one. A flutter app // wants package:garage_updates/garage_updates.dart instead, which is this // plus the splash. // // final engine = UpdateEngine.detect(project: "", build: 12); // final info = await engine.check(); // if (info.hasUpdate) { // await engine.download(info.latest!); // await engine.install(info.latest!); // await engine.restart(args: args); // } // // android isnt in here, installing an apk needs a platform channel. library; export "src/core/models.dart"; export "src/core/io.dart" if (dart.library.js_interop) "src/core/web.dart";