Merge branch 'develop'
This commit is contained in:
commit
095b3a13a7
|
|
@ -86,7 +86,7 @@ jobs:
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
title: "Latest Release"
|
title: "Latest Release"
|
||||||
automatic_release_tag: "v5.0.153"
|
automatic_release_tag: "v5.0.154"
|
||||||
files: |
|
files: |
|
||||||
${{ github.workspace }}/artifacts/Invoice-Ninja-Archive
|
${{ github.workspace }}/artifacts/Invoice-Ninja-Archive
|
||||||
${{ github.workspace }}/artifacts/Invoice-Ninja-Hash
|
${{ github.workspace }}/artifacts/Invoice-Ninja-Hash
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@
|
||||||
</screenshots>
|
</screenshots>
|
||||||
<content_rating type="oars-1.1"/>
|
<content_rating type="oars-1.1"/>
|
||||||
<releases>
|
<releases>
|
||||||
|
<release version="5.0.154" date="2024-02-04"/>
|
||||||
<release version="5.0.153" date="2024-01-29"/>
|
<release version="5.0.153" date="2024-01-29"/>
|
||||||
<release version="5.0.152" date="2024-01-24"/>
|
<release version="5.0.152" date="2024-01-24"/>
|
||||||
<release version="5.0.151" date="2024-01-23"/>
|
<release version="5.0.151" date="2024-01-23"/>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ class Constants {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO remove version once #46609 is fixed
|
// 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 kMinServerVersion = '5.0.4';
|
||||||
|
|
||||||
const String kAppName = 'Invoice Ninja';
|
const String kAppName = 'Invoice Ninja';
|
||||||
|
|
|
||||||
|
|
@ -1425,7 +1425,12 @@ void _showAbout(BuildContext context) async {
|
||||||
.replaceFirst(':value', state.appVersion));
|
.replaceFirst(':value', state.appVersion));
|
||||||
},
|
},
|
||||||
onLongPress: () async {
|
onLongPress: () async {
|
||||||
if (kReleaseMode) {
|
if (!kReleaseMode && supportsInAppPurchase()) {
|
||||||
|
showDialog<void>(
|
||||||
|
context: context,
|
||||||
|
builder: (context) => UpgradeDialog(),
|
||||||
|
);
|
||||||
|
} else {
|
||||||
showMessageDialog(
|
showMessageDialog(
|
||||||
message: FLUTTER_VERSION['channel']!.toUpperCase() +
|
message: FLUTTER_VERSION['channel']!.toUpperCase() +
|
||||||
' • ' +
|
' • ' +
|
||||||
|
|
@ -1436,11 +1441,6 @@ void _showAbout(BuildContext context) async {
|
||||||
onPressed: () => store.dispatch(UserLogout()),
|
onPressed: () => store.dispatch(UserLogout()),
|
||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
} else {
|
|
||||||
showDialog<void>(
|
|
||||||
context: context,
|
|
||||||
builder: (context) => UpgradeDialog(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
||||||
|
|
||||||
// Package imports:
|
// Package imports:
|
||||||
import 'package:flutter_redux/flutter_redux.dart';
|
import 'package:flutter_redux/flutter_redux.dart';
|
||||||
|
import 'package:invoiceninja_flutter/utils/localization.dart';
|
||||||
import 'package:redux/redux.dart';
|
import 'package:redux/redux.dart';
|
||||||
|
|
||||||
// Project imports:
|
// Project imports:
|
||||||
|
|
@ -12,6 +13,8 @@ import 'package:invoiceninja_flutter/redux/auth/auth_actions.dart';
|
||||||
class InitScreen extends StatelessWidget {
|
class InitScreen extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final localization = AppLocalization.of(context)!;
|
||||||
|
|
||||||
return StoreBuilder(
|
return StoreBuilder(
|
||||||
onInit: (Store<AppState> store) =>
|
onInit: (Store<AppState> store) =>
|
||||||
store.dispatch(LoadStateRequest(context)),
|
store.dispatch(LoadStateRequest(context)),
|
||||||
|
|
@ -21,9 +24,32 @@ class InitScreen extends StatelessWidget {
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
|
Expanded(child: SizedBox()),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: Center(child: Image.asset('assets/images/icon.png')),
|
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(
|
SizedBox(
|
||||||
height: 4.0,
|
height: 4.0,
|
||||||
child: LinearProgressIndicator(),
|
child: LinearProgressIndicator(),
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ class TransactionPresenter extends EntityPresenter {
|
||||||
currencyId: transaction.currencyId)!),
|
currencyId: transaction.currencyId)!),
|
||||||
);
|
);
|
||||||
case TransactionFields.description:
|
case TransactionFields.description:
|
||||||
return Text(transaction.description);
|
return Text(transaction.formattedDescription);
|
||||||
case TransactionFields.participantName:
|
case TransactionFields.participantName:
|
||||||
return Text(transaction.participantName);
|
return Text(transaction.participantName);
|
||||||
case TransactionFields.participant:
|
case TransactionFields.participant:
|
||||||
|
|
|
||||||
1422
lib/utils/i18n.dart
1422
lib/utils/i18n.dart
File diff suppressed because it is too large
Load Diff
|
|
@ -1,6 +1,6 @@
|
||||||
name: invoiceninja_flutter
|
name: invoiceninja_flutter
|
||||||
description: Client for Invoice Ninja
|
description: Client for Invoice Ninja
|
||||||
version: 5.0.153+153
|
version: 5.0.154+154
|
||||||
homepage: https://invoiceninja.com
|
homepage: https://invoiceninja.com
|
||||||
documentation: https://invoiceninja.github.io
|
documentation: https://invoiceninja.github.io
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
name: invoiceninja_flutter
|
name: invoiceninja_flutter
|
||||||
description: Client for Invoice Ninja
|
description: Client for Invoice Ninja
|
||||||
version: 5.0.153+153
|
version: 5.0.154+154
|
||||||
homepage: https://invoiceninja.com
|
homepage: https://invoiceninja.com
|
||||||
documentation: https://invoiceninja.github.io
|
documentation: https://invoiceninja.github.io
|
||||||
publish_to: none
|
publish_to: none
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
name: invoiceninja
|
name: invoiceninja
|
||||||
version: '5.0.153'
|
version: '5.0.154'
|
||||||
summary: Create invoices, accept payments, track expenses & time tasks
|
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
|
description: "### Note: if the app fails to run using `snap run invoiceninja` it may help to run `/snap/invoiceninja/current/bin/invoiceninja` instead
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue