Showing
5 changed files
with
9 additions
and
38 deletions
| @@ -11,14 +11,14 @@ if (flutterRoot == null) { | @@ -11,14 +11,14 @@ if (flutterRoot == null) { | ||
| 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") | 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | -def flutterVersionCode = "266" | 14 | +def flutterVersionCode = "293" |
| 15 | if (flutterVersionCode == null) { | 15 | if (flutterVersionCode == null) { |
| 16 | - flutterVersionCode = '266' | 16 | + flutterVersionCode = '293' |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | -def flutterVersionName = "2.6.6" | 19 | +def flutterVersionName = "2.9.3" |
| 20 | if (flutterVersionName == null) { | 20 | if (flutterVersionName == null) { |
| 21 | - flutterVersionName = '2.6.6' | 21 | + flutterVersionName = '2.9.3' |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | apply plugin: 'com.android.application' | 24 | apply plugin: 'com.android.application' |
| @@ -41,8 +41,8 @@ class _ReceiveOrdersTimeSetPageState extends State<ReceiveOrdersTimeSetPage> { | @@ -41,8 +41,8 @@ class _ReceiveOrdersTimeSetPageState extends State<ReceiveOrdersTimeSetPage> { | ||
| 41 | _getReceiveOrdersTime() async { | 41 | _getReceiveOrdersTime() async { |
| 42 | GetSellerInfoSunModel model = await bookSetTimeModel.getSellerById(context); | 42 | GetSellerInfoSunModel model = await bookSetTimeModel.getSellerById(context); |
| 43 | setState(() { | 43 | setState(() { |
| 44 | - receiveOrdersTime.start = model.data.recStime; | ||
| 45 | - receiveOrdersTime.end = model.data.recEtime; | 44 | + receiveOrdersTime.start = model.data.recStime.padLeft(5, '0'); |
| 45 | + receiveOrdersTime.end = model.data.recEtime.padLeft(5, '0'); | ||
| 46 | }); | 46 | }); |
| 47 | } | 47 | } |
| 48 | 48 |
| @@ -17,7 +17,6 @@ import 'package:one_key/res/colors.dart'; | @@ -17,7 +17,6 @@ import 'package:one_key/res/colors.dart'; | ||
| 17 | import 'package:one_key/utils/utils.dart'; | 17 | import 'package:one_key/utils/utils.dart'; |
| 18 | import 'package:one_key/widgets/MyDivider.dart'; | 18 | import 'package:one_key/widgets/MyDivider.dart'; |
| 19 | import 'package:one_key/widgets/v_empty_view.dart'; | 19 | import 'package:one_key/widgets/v_empty_view.dart'; |
| 20 | -import 'package:ota_update/ota_update.dart'; | ||
| 21 | import 'package:path_provider/path_provider.dart'; | 20 | import 'package:path_provider/path_provider.dart'; |
| 22 | import 'package:permission_handler/permission_handler.dart'; | 21 | import 'package:permission_handler/permission_handler.dart'; |
| 23 | import 'package:provider/provider.dart'; | 22 | import 'package:provider/provider.dart'; |
| @@ -30,28 +29,15 @@ class UpdateModelMy { | @@ -30,28 +29,15 @@ class UpdateModelMy { | ||
| 30 | int _progress = 1; //下载进度 | 29 | int _progress = 1; //下载进度 |
| 31 | Function _setState; | 30 | Function _setState; |
| 32 | 31 | ||
| 33 | - Future<void> tryOtaUpdate(String url) async { | ||
| 34 | - try { | ||
| 35 | - OtaUpdate().execute(url, destinationFilename: '周到安排.apk').listen( | ||
| 36 | - (OtaEvent event) { | ||
| 37 | - // setState(() => currentEvent = event); | ||
| 38 | - // if(event) | ||
| 39 | - print('${event.status} : ${event.value}'); | ||
| 40 | - }, | ||
| 41 | - ); | ||
| 42 | - } catch (e) { | ||
| 43 | - print('Failed to make OTA update. Details: $e'); | ||
| 44 | - } | ||
| 45 | - } | ||
| 46 | - | ||
| 47 | - ///简单使用 | 32 | + ///简单使用版本更新 |
| 48 | simpleUse(bool showiOSDialog, String url) { | 33 | simpleUse(bool showiOSDialog, String url) { |
| 49 | UpdateModel model = UpdateModel( | 34 | UpdateModel model = UpdateModel( |
| 50 | url, | 35 | url, |
| 51 | "yjd.apk", | 36 | "yjd.apk", |
| 52 | "ic_launcher", | 37 | "ic_launcher", |
| 53 | "1.支持Android M N O P Q\n2.支持自定义下载过程\n3.支持 设备>=Android M 动态权限的申请\n4.支持通知栏进度条展示\n5.支持文字国际化", | 38 | "1.支持Android M N O P Q\n2.支持自定义下载过程\n3.支持 设备>=Android M 动态权限的申请\n4.支持通知栏进度条展示\n5.支持文字国际化", |
| 54 | - iOSUrl: 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1510697490', | 39 | + iOSUrl: |
| 40 | + 'itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1510697490', | ||
| 55 | showiOSDialog: showiOSDialog, | 41 | showiOSDialog: showiOSDialog, |
| 56 | ); | 42 | ); |
| 57 | AzhonAppUpdate.update(model).then((value) => print(value)); | 43 | AzhonAppUpdate.update(model).then((value) => print(value)); |
| @@ -513,13 +513,6 @@ packages: | @@ -513,13 +513,6 @@ packages: | ||
| 513 | url: "https://pub.flutter-io.cn" | 513 | url: "https://pub.flutter-io.cn" |
| 514 | source: hosted | 514 | source: hosted |
| 515 | version: "1.1.6" | 515 | version: "1.1.6" |
| 516 | - in_app_update: | ||
| 517 | - dependency: "direct main" | ||
| 518 | - description: | ||
| 519 | - name: in_app_update | ||
| 520 | - url: "https://pub.flutter-io.cn" | ||
| 521 | - source: hosted | ||
| 522 | - version: "2.0.0" | ||
| 523 | install_plugin: | 516 | install_plugin: |
| 524 | dependency: "direct main" | 517 | dependency: "direct main" |
| 525 | description: | 518 | description: |
| @@ -625,13 +618,6 @@ packages: | @@ -625,13 +618,6 @@ packages: | ||
| 625 | url: "https://pub.flutter-io.cn" | 618 | url: "https://pub.flutter-io.cn" |
| 626 | source: hosted | 619 | source: hosted |
| 627 | version: "0.3.0" | 620 | version: "0.3.0" |
| 628 | - ota_update: | ||
| 629 | - dependency: "direct main" | ||
| 630 | - description: | ||
| 631 | - name: ota_update | ||
| 632 | - url: "https://pub.flutter-io.cn" | ||
| 633 | - source: hosted | ||
| 634 | - version: "3.1.1" | ||
| 635 | package_config: | 621 | package_config: |
| 636 | dependency: transitive | 622 | dependency: transitive |
| 637 | description: | 623 | description: |
| @@ -121,7 +121,6 @@ dependencies: | @@ -121,7 +121,6 @@ dependencies: | ||
| 121 | #图片压缩 | 121 | #图片压缩 |
| 122 | flutter_native_image: ^0.0.6+1 | 122 | flutter_native_image: ^0.0.6+1 |
| 123 | #更新apk | 123 | #更新apk |
| 124 | - ota_update: ^3.1.1 | ||
| 125 | flutter_app_update: ^1.0.2 | 124 | flutter_app_update: ^1.0.2 |
| 126 | sendsms: | 125 | sendsms: |
| 127 | path: library/sendsms-1.0.3 | 126 | path: library/sendsms-1.0.3 |
-
Please register or login to post a comment