Merge branch 'develop'

This commit is contained in:
Hillel Coren 2024-02-04 18:27:21 +02:00
commit 095b3a13a7
10 changed files with 1039 additions and 434 deletions

View File

@ -86,7 +86,7 @@ jobs:
draft: false
prerelease: false
title: "Latest Release"
automatic_release_tag: "v5.0.153"
automatic_release_tag: "v5.0.154"
files: |
${{ github.workspace }}/artifacts/Invoice-Ninja-Archive
${{ github.workspace }}/artifacts/Invoice-Ninja-Hash

View File

@ -50,6 +50,7 @@
</screenshots>
<content_rating type="oars-1.1"/>
<releases>
<release version="5.0.154" date="2024-02-04"/>
<release version="5.0.153" date="2024-01-29"/>
<release version="5.0.152" date="2024-01-24"/>
<release version="5.0.151" date="2024-01-23"/>

View File

@ -6,7 +6,7 @@ class Constants {
}
// TODO remove version once #46609 is fixed
const String kClientVersion = '5.0.153';
const String kClientVersion = '5.0.154';
const String kMinServerVersion = '5.0.4';
const String kAppName = 'Invoice Ninja';

View File

@ -1425,7 +1425,12 @@ void _showAbout(BuildContext context) async {
.replaceFirst(':value', state.appVersion));
},
onLongPress: () async {
if (kReleaseMode) {
if (!kReleaseMode && supportsInAppPurchase()) {
showDialog<void>(
context: context,
builder: (context) => UpgradeDialog(),
);
} else {
showMessageDialog(
message: FLUTTER_VERSION['channel']!.toUpperCase() +
'' +
@ -1436,11 +1441,6 @@ void _showAbout(BuildContext context) async {
onPressed: () => store.dispatch(UserLogout()),
),
]);
} else {
showDialog<void>(
context: context,
builder: (context) => UpgradeDialog(),
);
}
},
),

View File

@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_redux/flutter_redux.dart';
import 'package:invoiceninja_flutter/utils/localization.dart';
import 'package:redux/redux.dart';
// Project imports:
@ -12,6 +13,8 @@ import 'package:invoiceninja_flutter/redux/auth/auth_actions.dart';
class InitScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final localization = AppLocalization.of(context)!;
return StoreBuilder(
onInit: (Store<AppState> store) =>
store.dispatch(LoadStateRequest(context)),
@ -21,9 +24,32 @@ class InitScreen extends StatelessWidget {
child: Column(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Expanded(child: SizedBox()),
Expanded(
child: Center(child: Image.asset('assets/images/icon.png')),
),
Expanded(
child: Stack(
alignment: Alignment.center,
children: [
SizedBox(
height: 50,
width: 100,
child: Material(
child: ElevatedButton(
child: Text(
localization.logout.toUpperCase(),
style: TextStyle(color: Colors.white),
),
onPressed: () {
store.dispatch(UserLogout());
},
),
),
),
],
),
),
SizedBox(
height: 4.0,
child: LinearProgressIndicator(),

View File

@ -77,7 +77,7 @@ class TransactionPresenter extends EntityPresenter {
currencyId: transaction.currencyId)!),
);
case TransactionFields.description:
return Text(transaction.description);
return Text(transaction.formattedDescription);
case TransactionFields.participantName:
return Text(transaction.participantName);
case TransactionFields.participant:

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
name: invoiceninja_flutter
description: Client for Invoice Ninja
version: 5.0.153+153
version: 5.0.154+154
homepage: https://invoiceninja.com
documentation: https://invoiceninja.github.io
publish_to: none

View File

@ -1,6 +1,6 @@
name: invoiceninja_flutter
description: Client for Invoice Ninja
version: 5.0.153+153
version: 5.0.154+154
homepage: https://invoiceninja.com
documentation: https://invoiceninja.github.io
publish_to: none

View File

@ -1,5 +1,5 @@
name: invoiceninja
version: '5.0.153'
version: '5.0.154'
summary: Create invoices, accept payments, track expenses & time tasks
description: "### Note: if the app fails to run using `snap run invoiceninja` it may help to run `/snap/invoiceninja/current/bin/invoiceninja` instead