Versioning: 52.0

This commit is contained in:
Ming Ming 2022-09-12 00:12:22 +08:00
parent f4aeeb2c3f
commit 2a39fe6cf7
3 changed files with 27 additions and 3 deletions

View file

@ -1,6 +1,6 @@
/// Version string shown in settings page
const versionStr = "51.1";
const version = 511;
const versionStr = "52.0";
const version = 520;
/// Show a snack bar for a short amount of time
const snackBarDurationShort = Duration(seconds: 4);

View file

@ -190,6 +190,29 @@ List<Widget> _buildChangelog510(BuildContext context) {
];
}
List<Widget> _buildChangelog520(BuildContext context) {
return [
_subSection("Changes"),
_bulletGroup(const Text(
"New option to share a reduced quality preview instead of the original file")),
_bulletGroup(const Text(
"Support saving enhanced/edited photos directly on the server")),
_bulletGroup(
const Text("Image enhancements"),
[
const Text("Added color pop"),
const Text("Improved portrait blur in scenes with multiple objects"),
],
),
_bulletGroup(
const Text("Image editor"),
[
const Text("Fixed changing image orientation may flip the image"),
],
),
];
}
List<Widget> _buildChangelogCompat(BuildContext context, int majorVersion) {
var change = _oldChangelogs[majorVersion - 1];
if (change != null) {
@ -246,6 +269,7 @@ Widget _subBulletPoint(Widget child) => Row(
);
final _changelogs = <int, List<Widget> Function(BuildContext)>{
520: _buildChangelog520,
510: _buildChangelog510,
500: _buildChangelog500,
480: _buildChangelog480,

View file

@ -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.51.1+5110
version: 1.52.0+5200
environment:
sdk: ">=2.17.0 <3.0.0"