From 9328244ed619e5e2f5e23e5b00bd70b925cbd8ef Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Thu, 8 Sep 2022 01:13:33 +0800 Subject: [PATCH] Versioning: 51.0 --- app/lib/k.dart | 4 ++-- app/lib/widget/changelog.dart | 37 +++++++++++++++++++++++++++++++---- app/pubspec.yaml | 2 +- 3 files changed, 36 insertions(+), 7 deletions(-) diff --git a/app/lib/k.dart b/app/lib/k.dart index 27955496..922405ad 100644 --- a/app/lib/k.dart +++ b/app/lib/k.dart @@ -1,6 +1,6 @@ /// Version string shown in settings page -const versionStr = "50.3"; -const version = 503; +const versionStr = "51.0"; +const version = 510; /// Show a snack bar for a short amount of time const snackBarDurationShort = Duration(seconds: 4); diff --git a/app/lib/widget/changelog.dart b/app/lib/widget/changelog.dart index 9e19b9fc..94b383e3 100644 --- a/app/lib/widget/changelog.dart +++ b/app/lib/widget/changelog.dart @@ -41,10 +41,18 @@ class Changelog extends StatelessWidget { title: const Text("Changelog"), ); - Widget _buildContent(BuildContext context) => ListView.builder( - itemCount: _changelogs.length, - itemBuilder: _buildItem, - ); + Widget _buildContent(BuildContext context) { + return Column( + children: [ + Expanded( + child: ListView.builder( + itemCount: _changelogs.length, + itemBuilder: _buildItem, + ), + ), + ], + ); + } Widget _buildItem(BuildContext context, int i) { try { @@ -162,6 +170,26 @@ List _buildChangelog500(BuildContext context) { ]; } +List _buildChangelog510(BuildContext context) { + return [ + _subSection("Changes"), + _bulletGroup( + const Text("New image editing tools"), + [ + const Text("Crop"), + const Text("Change the orientation (90°, 180°, 270°) of an image"), + ], + ), + _bulletGroup(const Text("Search now returns more relavant results")), + _bulletGroup( + const Text("Tweak how many days should be included in Memories"), + [ + const Text("Settings > Photos > Memories range"), + ], + ), + ]; +} + List _buildChangelogCompat(BuildContext context, int majorVersion) { var change = _oldChangelogs[majorVersion - 1]; if (change != null) { @@ -218,6 +246,7 @@ Widget _subBulletPoint(Widget child) => Row( ); final _changelogs = Function(BuildContext)>{ + 510: _buildChangelog510, 500: _buildChangelog500, 480: _buildChangelog480, 470: _buildChangelog470, diff --git a/app/pubspec.yaml b/app/pubspec.yaml index a35ae4ef..46837993 100644 --- a/app/pubspec.yaml +++ b/app/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # 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.50.3+5030 +version: 1.51.0+5100 environment: sdk: ">=2.17.0 <3.0.0"