|
|
|
@ -21,6 +21,7 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; |
|
|
|
import 'package:fluwx/fluwx.dart'; |
|
|
|
import 'package:get/get.dart'; |
|
|
|
import 'package:get_storage/get_storage.dart'; |
|
|
|
import 'package:ota_update/ota_update.dart'; |
|
|
|
|
|
|
|
import 'extension/my_cupertino_localizations.dart'; |
|
|
|
|
|
|
|
@ -188,15 +189,16 @@ class _MyAppState extends State<MyApp> { |
|
|
|
// try { |
|
|
|
// OtaUpdate() |
|
|
|
// .execute( |
|
|
|
// 'http://oss.famitech.cn/ai_girlfriend/app/yuanyujiaowu_doubao.apk', |
|
|
|
// // OPTIONAL |
|
|
|
// destinationFilename: 'yuanyujiaowu_doubao.apk', |
|
|
|
// // 地址如果非https需要去 android\app\src\main\res\xml\network_security_config.xml 配置信任地址 |
|
|
|
// 'https://pgyerapp.tracup.com/8bab5d3e8551e464d7d059160241ccc9.apk?sign=f2a40c8b607de18a7ab177c3b94f0bab&sign2=fd5574f9bf6d1c9328f1d95c40e87017&t=1767750116&response-content-disposition=attachment%3Bfilename%3D%22%E8%B6%A3%E6%81%8B%E6%81%8B_1.0.0.apk', |
|
|
|
// |
|
|
|
// destinationFilename: '趣恋恋_1.0.0.apk', |
|
|
|
// |
|
|
|
// ).listen( |
|
|
|
// (OtaEvent event) { |
|
|
|
// print(event.value); |
|
|
|
// print(event.value); // 下载进度百分比 |
|
|
|
// print("event.value"); |
|
|
|
// print(event.status); |
|
|
|
// print(event.status); // 下载状态 |
|
|
|
// }, |
|
|
|
// ); |
|
|
|
// } catch (e) { |
|
|
|
|