mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-06 01:15:44 -06:00
feat: Bump version number, add changelogs
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
- New feature: Notes
|
||||
- Several bugfixes
|
||||
- Neues Feature: Notizen
|
||||
- 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:
|
||||
$default:
|
||||
include:
|
||||
- pubspec.yaml
|
||||
sources:
|
||||
- assets/**
|
||||
- lib/$lib$
|
||||
- lib/**.dart
|
||||
- test/**.dart
|
||||
- integration_test/**.dart
|
||||
|
||||
builders:
|
||||
mockito|mockBuilder:
|
||||
generate_for:
|
||||
- lib/**.dart
|
||||
- test/**.dart
|
||||
- integration_test/**.dart
|
||||
@@ -5,3 +5,5 @@ import 'package:package_info_plus/package_info_plus.dart';
|
||||
late final PackageInfo packageInfo;
|
||||
late final AndroidDeviceInfo? androidInfo;
|
||||
late final IosDeviceInfo? iosInfo;
|
||||
|
||||
const latestSupportedApiVersion = 3;
|
||||
|
||||
@@ -63,6 +63,7 @@ class ChangelogDialog extends StatelessWidget {
|
||||
}
|
||||
|
||||
const _versionNumbers = {
|
||||
"4043": "3.2.0",
|
||||
"4033": "3.1.8",
|
||||
"4023": "3.1.7",
|
||||
"4013": "3.1.6",
|
||||
|
||||
@@ -4,6 +4,7 @@ import 'package:flutter/widgets.dart';
|
||||
import 'package:hive_flutter/adapters.dart';
|
||||
import 'package:hydrated_bloc/hydrated_bloc.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/database/hive/hive_config.dart';
|
||||
import 'package:paperless_mobile/core/database/hive/hive_extensions.dart';
|
||||
@@ -619,12 +620,19 @@ class AuthenticationCubit extends Cubit<AuthenticationState> {
|
||||
try {
|
||||
final response = await dio.get(
|
||||
"/api/",
|
||||
options: Options(
|
||||
sendTimeout: timeout,
|
||||
),
|
||||
options: Options(sendTimeout: timeout),
|
||||
);
|
||||
final apiVersion =
|
||||
int apiVersion =
|
||||
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(
|
||||
"Successfully retrieved API version ($apiVersion).",
|
||||
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.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 3.1.8+403
|
||||
version: 3.2.0+404
|
||||
|
||||
environment:
|
||||
sdk: ">=3.1.0 <4.0.0"
|
||||
|
||||
Reference in New Issue
Block a user