Skip to content

Commit

Permalink
reduced version check period to 10 seconds for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariemeth committed Apr 29, 2024
1 parent cea1819 commit 588e612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/widgets/version_checker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class _VersionCheckerState extends State<VersionChecker> {
void initState() {
super.initState();
_checkForUpdatedVersion();
Timer.periodic(Duration(seconds: 300), (timer) async {
Timer.periodic(Duration(seconds: 10), (timer) async {
_checkForUpdatedVersion();
});
}
Expand Down Expand Up @@ -59,7 +59,8 @@ class _VersionCheckerState extends State<VersionChecker> {
// TODO remove when everything seems to be working
print('Checking for updated version');
final latestVersionStr = await ApiService.getLatestVersion(Uri.base);

print("latestVersionStr: $latestVersionStr");
print("currentVersion: ${widget.currentVersion}");
if (latestVersionStr == null || latestVersionStr.isEmpty) {
if (this.latestVersion != null) {
setState(() {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 1.7.10
version: 1.7.11
environment:
sdk: ">=3.0.0"

Expand Down

0 comments on commit 588e612

Please sign in to comment.