Skip to content

Commit

Permalink
version: update version (1.17)
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Oct 23, 2021
1 parent 7537edd commit b634303
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
11 changes: 10 additions & 1 deletion lib/pages/main/patchnote/patchnote_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,18 @@ class PatchModel {
}

final patches = [
PatchModel(
dateTime: DateTime(2021, 10, 23),
version: '1.17 Minor Update <== Latest',
contents: [
'optimize critial widgets',
'add search index jumper',
'add memory optimization options (default on)',
],
),
PatchModel(
dateTime: DateTime(2021, 10, 11),
version: '1.16.4 Patch Update <== Latest',
version: '1.16.4 Patch Update',
contents: [
'optimize global comments',
'optimize critical widgets',
Expand Down
3 changes: 2 additions & 1 deletion lib/pages/settings/version_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import 'package:flutter/material.dart';
import 'package:violet/locale/locale.dart';
import 'package:violet/settings/settings.dart';
import 'package:violet/version/update_sync.dart';

class VersionViewPage extends StatelessWidget {
@override
Expand All @@ -29,7 +30,7 @@ class VersionViewPage extends StatelessWidget {
style: TextStyle(fontSize: 30),
),
Text(
'1.16.4',
'${UpdateSyncManager.majorVersion}.${UpdateSyncManager.minorVersion}.${UpdateSyncManager.patchVersion}',
style: TextStyle(fontSize: 20),
),
Text(''),
Expand Down
4 changes: 2 additions & 2 deletions lib/version/update_sync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class UpdateSyncManager {

// Current version
static const int majorVersion = 1;
static const int minorVersion = 16;
static const int patchVersion = 4;
static const int minorVersion = 17;
static const int patchVersion = 0;

static String get currentVersion =>
'$majorVersion.$minorVersion.$patchVersion';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: Open Source Hentai Viewer App
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.16.4+0
version: 1.17.0+0

publish_to: none

Expand Down

0 comments on commit b634303

Please sign in to comment.