fix: fix wrong version mapping, add f-droid build script

This commit is contained in:
Anton Stubenbord
2023-10-24 17:17:11 +02:00
parent 03d8cb55c7
commit cf5b81d2d7
14 changed files with 30 additions and 38 deletions

View File

@@ -0,0 +1 @@
* Hinzufügen von Build-Skript für F-Droid

View File

@@ -0,0 +1 @@
* Add build script for F-Droid

View File

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 8.0 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

View File

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 7.3 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 MiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 MiB

View File

@@ -63,7 +63,8 @@ class ChangelogDialog extends StatelessWidget {
}
const _versionNumbers = {
"54": "3.0.7",
"55": "3.1.1",
"54": "3.1.0",
"53": "3.0.6",
"52": "3.0.5",
"51": "3.0.4",

View File

@@ -2,18 +2,14 @@ import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:hive_flutter/adapters.dart';
import 'package:paperless_api/paperless_api.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/tables/global_settings.dart';
import 'package:paperless_mobile/core/model/info_message_exception.dart';
import 'package:paperless_mobile/features/app_intro/application_intro_slideshow.dart';
import 'package:paperless_mobile/features/login/cubit/authentication_cubit.dart';
import 'package:paperless_mobile/features/login/model/client_certificate.dart';
import 'package:paperless_mobile/features/login/model/login_form_credentials.dart';
import 'package:paperless_mobile/features/login/view/add_account_page.dart';
import 'package:paperless_mobile/generated/l10n/app_localizations.dart';
import 'package:paperless_mobile/helpers/message_helpers.dart';
import 'package:paperless_mobile/routes/typed/shells/authenticated_route.dart';
import 'package:paperless_mobile/routes/typed/top_level/login_route.dart';
class LoginPage extends StatelessWidget {
@@ -68,21 +64,7 @@ class LoginPage extends StatelessWidget {
serverUrl: serverUrl,
clientCertificate: clientCertificate,
);
// Show onboarding after first login!
final globalSettings =
Hive.box<GlobalSettings>(HiveBoxes.globalSettings).getValue()!;
if (globalSettings.showOnboarding) {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => const ApplicationIntroSlideshow(),
fullscreenDialog: true,
),
).then((value) {
globalSettings.showOnboarding = false;
globalSettings.save();
});
}
// DocumentsRoute().go(context);
} on PaperlessApiException catch (error, stackTrace) {
showErrorMessage(context, error, stackTrace);

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: 3.1.0+54
version: 3.1.1+55
environment:
sdk: ">=3.0.0 <4.0.0"

View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -Eeuo pipefail
__script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
readonly __script_dir
pushd "$__script_dir/../"
pushd packages/paperless_api
$$flutter$$/bin/flutter packages pub get
$$flutter$$/bin/dart run build_runner build --delete-conflicting-outputs
popd
pushd packages/mock_server
$$flutter$$/bin/flutter packages pub get
popd
$$flutter$$/bin/flutter packages pub get
$$flutter$$/bin/flutter gen-l10n
$$flutter$$/bin/dart run build_runner build --delete-conflicting-outputs
popd