Commit 3de2f2bb6a7e74bc2bda801005fc76d62d08b555

Authored by wdn127929
1 parent a79ccf16

自动更新bug

... ... @@ -11,14 +11,14 @@ if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = "111"
def flutterVersionCode = "221"
if (flutterVersionCode == null) {
flutterVersionCode = '111'
flutterVersionCode = '221'
}
def flutterVersionName = "1.1.1"
def flutterVersionName = "2.2.1"
if (flutterVersionName == null) {
flutterVersionName = '1.1.1'
flutterVersionName = '2.2.1'
}
apply plugin: 'com.android.application'
... ...
... ... @@ -88,7 +88,7 @@ class HomePageState extends State<HomePage> with WidgetsBindingObserver {
_getIntent();
Future.delayed(Duration(milliseconds: 30000), () {
ContactModel.getInstance().uploadLocalContact(context);
UpdateModel updateModel = new UpdateModel();
UpdateModel updateModel = new UpdateModel();
updateModel.checkUpdate(context, showToast: false);
});
timer = Timer.periodic(Duration(minutes: 3), (_) {
... ...