mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-08 10:07:51 -06:00
feat: Bump version number, add changelogs
This commit is contained in:
@@ -1,2 +1,3 @@
|
|||||||
- New feature: Notes
|
- Neues Feature: Notizen
|
||||||
- Several bugfixes
|
- Neue Sprache: Italienisch
|
||||||
|
- Mehere Fehlerbehebungen
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
- New feature: Notes
|
||||||
|
- New language: Italian
|
||||||
|
- Multiple bugfixes
|
||||||
10
build.yaml
10
build.yaml
@@ -1,16 +1,8 @@
|
|||||||
targets:
|
targets:
|
||||||
$default:
|
$default:
|
||||||
include:
|
|
||||||
- pubspec.yaml
|
|
||||||
sources:
|
|
||||||
- assets/**
|
|
||||||
- lib/$lib$
|
|
||||||
- lib/**.dart
|
|
||||||
- test/**.dart
|
|
||||||
- integration_test/**.dart
|
|
||||||
|
|
||||||
builders:
|
builders:
|
||||||
mockito|mockBuilder:
|
mockito|mockBuilder:
|
||||||
generate_for:
|
generate_for:
|
||||||
|
- lib/**.dart
|
||||||
- test/**.dart
|
- test/**.dart
|
||||||
- integration_test/**.dart
|
- integration_test/**.dart
|
||||||
@@ -5,3 +5,5 @@ import 'package:package_info_plus/package_info_plus.dart';
|
|||||||
late final PackageInfo packageInfo;
|
late final PackageInfo packageInfo;
|
||||||
late final AndroidDeviceInfo? androidInfo;
|
late final AndroidDeviceInfo? androidInfo;
|
||||||
late final IosDeviceInfo? iosInfo;
|
late final IosDeviceInfo? iosInfo;
|
||||||
|
|
||||||
|
const latestSupportedApiVersion = 3;
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ class ChangelogDialog extends StatelessWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const _versionNumbers = {
|
const _versionNumbers = {
|
||||||
|
"4043": "3.2.0",
|
||||||
"4033": "3.1.8",
|
"4033": "3.1.8",
|
||||||
"4023": "3.1.7",
|
"4023": "3.1.7",
|
||||||
"4013": "3.1.6",
|
"4013": "3.1.6",
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import 'package:flutter/widgets.dart';
|
|||||||
import 'package:hive_flutter/adapters.dart';
|
import 'package:hive_flutter/adapters.dart';
|
||||||
import 'package:hydrated_bloc/hydrated_bloc.dart';
|
import 'package:hydrated_bloc/hydrated_bloc.dart';
|
||||||
import 'package:paperless_api/paperless_api.dart';
|
import 'package:paperless_api/paperless_api.dart';
|
||||||
|
import 'package:paperless_mobile/constants.dart';
|
||||||
import 'package:paperless_mobile/core/bloc/transient_error.dart';
|
import 'package:paperless_mobile/core/bloc/transient_error.dart';
|
||||||
import 'package:paperless_mobile/core/database/hive/hive_config.dart';
|
import 'package:paperless_mobile/core/database/hive/hive_config.dart';
|
||||||
import 'package:paperless_mobile/core/database/hive/hive_extensions.dart';
|
import 'package:paperless_mobile/core/database/hive/hive_extensions.dart';
|
||||||
@@ -619,12 +620,19 @@ class AuthenticationCubit extends Cubit<AuthenticationState> {
|
|||||||
try {
|
try {
|
||||||
final response = await dio.get(
|
final response = await dio.get(
|
||||||
"/api/",
|
"/api/",
|
||||||
options: Options(
|
options: Options(sendTimeout: timeout),
|
||||||
sendTimeout: timeout,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
final apiVersion =
|
int apiVersion =
|
||||||
int.parse(response.headers.value('x-api-version') ?? "3");
|
int.parse(response.headers.value('x-api-version') ?? "3");
|
||||||
|
if (apiVersion > latestSupportedApiVersion) {
|
||||||
|
logger.fw(
|
||||||
|
"The server is running a newer API version ($apiVersion) than the app supports (v$latestSupportedApiVersion), falling back to latest supported version (v$latestSupportedApiVersion). "
|
||||||
|
"Warning: This might lead to unexpected behavior!",
|
||||||
|
className: runtimeType.toString(),
|
||||||
|
methodName: '_getApiVersion',
|
||||||
|
);
|
||||||
|
apiVersion = latestSupportedApiVersion;
|
||||||
|
}
|
||||||
logger.fd(
|
logger.fd(
|
||||||
"Successfully retrieved API version ($apiVersion).",
|
"Successfully retrieved API version ($apiVersion).",
|
||||||
className: runtimeType.toString(),
|
className: runtimeType.toString(),
|
||||||
|
|||||||
@@ -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.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 3.1.8+403
|
version: 3.2.0+404
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.1.0 <4.0.0"
|
sdk: ">=3.1.0 <4.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user