Skip to content

Commit

Permalink
💚 fix update build
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreemanarjun committed Sep 5, 2023
1 parent c2e04ac commit c797bb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_sharez/bootstrap.dart';
import 'package:flutter_sharez/data/model/update_model.dart';
import 'package:flutter_sharez/features/settings/controller/current_version_pod.dart';
import 'package:flutter_sharez/features/update_app_version/controller/check_update_version.dart';
Expand All @@ -13,10 +14,11 @@ final checkUpdateAvailablePod = FutureProvider.autoDispose<UpdateModel?>(
Version currentVersion = Version.parse(currentAppVersion);

Version latestVersion = Version.parse(tagname);
talker.debug("$currentVersion $latestVersion");

/// updatemodel when update available
if (latestVersion > currentVersion) {
if (currentVersion < latestVersion) {
return updateModel;
} else {
return null;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_sharez
description: ""
version: 1.0.2+5
version: 1.0.3+1
publish_to: none

environment:
Expand Down

0 comments on commit c797bb4

Please sign in to comment.