fix(android): ota_update → url_launcher (résout lStar/compileSdk) → APK signée OK
Build APK / build (push) Successful in 2m33s
Build APK / build (push) Successful in 2m33s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
fac757d9a0
commit
3471c82c61
@@ -78,18 +78,14 @@ class _ServersScreenState extends State<ServersScreen> {
|
||||
],
|
||||
),
|
||||
);
|
||||
if (go == true) _applyUpdate(info);
|
||||
}
|
||||
|
||||
void _applyUpdate(UpdateInfo info) {
|
||||
UpdateService(widget.api.baseUrl).apply(info).listen((_) {}, onError: (e) {
|
||||
if (mounted) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('MAJ échouée : $e')));
|
||||
if (go == true) {
|
||||
final ok = await UpdateService(widget.api.baseUrl).apply(info);
|
||||
if (mounted && !ok) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('Impossible d\'ouvrir le téléchargement.')),
|
||||
);
|
||||
}
|
||||
});
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(content: Text('Téléchargement de la mise à jour…')),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> _openSettings() async {
|
||||
|
||||
Reference in New Issue
Block a user