Commit 3de2f2bb6a7e74bc2bda801005fc76d62d08b555

Authored by wdn127929
1 parent a79ccf16

自动更新bug

@@ -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 = "111" 14 +def flutterVersionCode = "221"
15 if (flutterVersionCode == null) { 15 if (flutterVersionCode == null) {
16 - flutterVersionCode = '111' 16 + flutterVersionCode = '221'
17 } 17 }
18 18
19 -def flutterVersionName = "1.1.1" 19 +def flutterVersionName = "2.2.1"
20 if (flutterVersionName == null) { 20 if (flutterVersionName == null) {
21 - flutterVersionName = '1.1.1' 21 + flutterVersionName = '2.2.1'
22 } 22 }
23 23
24 apply plugin: 'com.android.application' 24 apply plugin: 'com.android.application'
@@ -88,7 +88,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver { @@ -88,7 +88,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
88 _getIntent(); 88 _getIntent();
89 Future.delayed(Duration(milliseconds: 30000), () { 89 Future.delayed(Duration(milliseconds: 30000), () {
90 ContactModel.getInstance().uploadLocalContact(context); 90 ContactModel.getInstance().uploadLocalContact(context);
91 - UpdateModel updateModel = new UpdateModel(); 91 + UpdateModel updateModel = new UpdateModel();
92 updateModel.checkUpdate(context, showToast: false); 92 updateModel.checkUpdate(context, showToast: false);
93 }); 93 });
94 timer = Timer.periodic(Duration(minutes: 3), (_) { 94 timer = Timer.periodic(Duration(minutes: 3), (_) {