diff --git a/app/lib/k.dart b/app/lib/k.dart index c428758e..d66538f5 100644 --- a/app/lib/k.dart +++ b/app/lib/k.dart @@ -1,8 +1,8 @@ import 'package:flutter/material.dart'; /// Version string shown in settings page -const versionStr = "71.0"; -const version = 710; +const versionStr = "72.0"; +const version = 720; /// 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 e2570525..eb02337f 100644 --- a/app/lib/widget/changelog.dart +++ b/app/lib/widget/changelog.dart @@ -1,6 +1,8 @@ import 'package:flutter/material.dart'; import 'package:logging/logging.dart'; import 'package:nc_photos/app_localizations.dart'; +import 'package:nc_photos/help_utils.dart' as help_util; +import 'package:nc_photos/url_launcher_util.dart'; import 'package:np_codegen/np_codegen.dart'; import 'package:np_ui/np_ui.dart'; @@ -23,6 +25,7 @@ part 'changelog/changelog_680.dart'; part 'changelog/changelog_690.dart'; part 'changelog/changelog_700.dart'; part 'changelog/changelog_710.dart'; +part 'changelog/changelog_720.dart'; // Compatibility with flutter 3.22 typedef WidgetStateProperty = MaterialStateProperty; @@ -364,6 +367,7 @@ Widget _subBulletPoint(Widget child) => Row( ); final _changelogs = Function(BuildContext)>{ + 720: (_) => const [_Changelog720()], 710: (_) => const [_Changelog710()], 700: (_) => const [_Changelog700()], 690: (_) => const [_Changelog690()], diff --git a/app/lib/widget/changelog/changelog_720.dart b/app/lib/widget/changelog/changelog_720.dart new file mode 100644 index 00000000..93d85146 --- /dev/null +++ b/app/lib/widget/changelog/changelog_720.dart @@ -0,0 +1,59 @@ +part of '../changelog.dart'; + +class _Changelog720 extends StatelessWidget { + const _Changelog720(); + + @override + Widget build(BuildContext context) { + return Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + _subSection("Changes"), + _bulletGroup( + const Text( + "\"Album\" and \"Nextcloud album\" are renamed to \"Client side album\" and \"Server side album\""), + [ + Align( + alignment: AlignmentDirectional.centerStart, + child: InkWell( + onTap: () { + launch(help_util.collectionTypesUrl); + }, + child: Text( + "Learn more about their differences", + style: TextStyle( + color: Theme.of(context).colorScheme.primary, + ), + ), + ), + ), + ], + ), + _bulletGroup( + const Text("Client side album now supports adding an inline map")), + _bulletGroup( + const Text( + "On Nextcloud 28+, app will now read metadata from the server instead of extracting it ourselves"), + [ + const Text( + "Image formats not yet supported by Nextcloud will continue to use the client side method"), + const Text( + "Geolocation is done on client side so the background service will continue to run"), + ], + ), + _bulletGroup(const Text("Updated French, Turkish")), + _sectionPadding(), + _subSection("Contributors"), + _bulletGroup( + const Text("Special thanks to the following contributors \u{1f44f}"), + [ + const Text("Ali Yasin Yeşilyaprak"), + const Text("Choukajohn"), + const Text("Corentin Noël"), + ], + ), + ], + ); + } +} diff --git a/app/pubspec.yaml b/app/pubspec.yaml index 892aec11..2ba6be60 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.71.0+7100 +version: 1.72.0+7200 environment: sdk: ">=3.3.0 <4.0.0"