From d3c316134a52bd1810419ad5a30595c2983f359c Mon Sep 17 00:00:00 2001 From: cock <2842553747@qq.com> Date: Thu, 2 Mar 2023 15:25:11 +0800 Subject: [PATCH] change yaml --- example/{.gitignore => .pubignore} | 0 example/lib/main.dart | 2 +- ...er_app_upgrade.dart => flutter_app_upgrade2.dart} | 0 lib/src/app_upgrade.dart | 4 +--- lib/src/flutter_upgrade.dart | 2 +- lib/src/liquid_progress_indicator.dart | 2 +- lib/src/simple_app_upgrade.dart | 3 +-- pubspec.yaml | 12 +++++++----- 8 files changed, 12 insertions(+), 13 deletions(-) rename example/{.gitignore => .pubignore} (100%) rename lib/{flutter_app_upgrade.dart => flutter_app_upgrade2.dart} (100%) diff --git a/example/.gitignore b/example/.pubignore similarity index 100% rename from example/.gitignore rename to example/.pubignore diff --git a/example/lib/main.dart b/example/lib/main.dart index 4f19a10..724e184 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'dart:async'; -import 'package:flutter_app_upgrade/flutter_app_upgrade.dart'; +import 'package:flutter_app_upgrade/flutter_app_upgrade2.dart'; void main() => runApp(MyApp()); diff --git a/lib/flutter_app_upgrade.dart b/lib/flutter_app_upgrade2.dart similarity index 100% rename from lib/flutter_app_upgrade.dart rename to lib/flutter_app_upgrade2.dart diff --git a/lib/src/app_upgrade.dart b/lib/src/app_upgrade.dart index b7855ed..bbc599b 100644 --- a/lib/src/app_upgrade.dart +++ b/lib/src/app_upgrade.dart @@ -1,8 +1,6 @@ import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; -import 'package:flutter_app_upgrade/flutter_app_upgrade.dart'; +import 'package:flutter_app_upgrade2/flutter_app_upgrade2.dart'; -import 'download_status.dart'; import 'simple_app_upgrade.dart'; /// diff --git a/lib/src/flutter_upgrade.dart b/lib/src/flutter_upgrade.dart index 512876e..842dda9 100644 --- a/lib/src/flutter_upgrade.dart +++ b/lib/src/flutter_upgrade.dart @@ -1,7 +1,7 @@ import 'dart:async'; import 'package:flutter/services.dart'; -import 'package:flutter_app_upgrade/flutter_app_upgrade.dart'; +import 'package:flutter_app_upgrade2/flutter_app_upgrade2.dart'; class FlutterUpgrade { static const MethodChannel _channel = const MethodChannel('flutter_app_upgrade'); diff --git a/lib/src/liquid_progress_indicator.dart b/lib/src/liquid_progress_indicator.dart index a74139d..953c309 100644 --- a/lib/src/liquid_progress_indicator.dart +++ b/lib/src/liquid_progress_indicator.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:flutter_app_upgrade/src/wave.dart'; +import 'package:flutter_app_upgrade2/src/wave.dart'; class LiquidLinearProgressIndicator extends ProgressIndicator { ///The width of the border, if this is set [borderColor] must also be set. diff --git a/lib/src/simple_app_upgrade.dart b/lib/src/simple_app_upgrade.dart index d02ab25..64de7cd 100644 --- a/lib/src/simple_app_upgrade.dart +++ b/lib/src/simple_app_upgrade.dart @@ -2,8 +2,7 @@ import 'dart:io'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; -import 'package:flutter_app_upgrade/flutter_app_upgrade.dart'; -import 'package:flutter_app_upgrade/src/download_status.dart'; +import 'package:flutter_app_upgrade2/flutter_app_upgrade2.dart'; import 'liquid_progress_indicator.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index a165ce9..40ffd4f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,12 +5,13 @@ homepage: http://laomengit.com/plugin/upgrade.html environment: sdk: ">=2.1.0 <3.0.0" + flutter: ">=1.10.0" dependencies: flutter: sdk: flutter - dio: any + dio: ^5.0.1 dev_dependencies: flutter_test: @@ -27,10 +28,11 @@ flutter: # adding or updating assets for this project. plugin: platforms: - android: - package: com.flutter.flutter_app_upgrade - ios: - pluginClass: FlutterAppUpgradePlugin + android: + package: com.flutter.flutter_app_upgrade + pluginClass: FlutterAppUpgradePlugin + ios: + pluginClass: FlutterAppUpgradePlugin # To add assets to your plugin package, add an assets section, like this: # assets: # - images/a_dot_burr.jpeg