This commit is contained in:
Ming Ming 2024-11-30 16:28:31 +08:00
parent 9d20e2cf74
commit 0fd40bd2d3
4 changed files with 66 additions and 3 deletions

View file

@ -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);

View file

@ -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 = <int, List<Widget> Function(BuildContext)>{
720: (_) => const [_Changelog720()],
710: (_) => const [_Changelog710()],
700: (_) => const [_Changelog700()],
690: (_) => const [_Changelog690()],

View file

@ -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"),
],
),
],
);
}
}

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.71.0+7100
version: 1.72.0+7200
environment:
sdk: ">=3.3.0 <4.0.0"