App review

This commit is contained in:
Hillel Coren 2022-07-06 11:50:34 +03:00
parent 66ad0c3e14
commit 518e960741
4 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,5 @@
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
android.enableJetifier=false
android.enableR8=true
android.enableDexingArtifactTransform=false
android.jetifier.blacklist=bcprov

View File

@ -56,7 +56,10 @@ class _ReviewAppState extends State<ReviewApp> {
});
} else {
if (_likesTheApp == true) {
if (await AppReview.isAvailable()) {
// TODO remove this code: https://github.com/britannio/in_app_review/issues/56
if (isAndroid()) {
AppReview.openStoreListing();
} else if (await AppReview.isAvailable()) {
AppReview.requestReview();
} else if (kIsWeb || isLinux()) {
launch(getRateAppURL(context));

View File

@ -10,5 +10,6 @@ class AppReview {
static void requestReview() => inAppReview.requestReview();
static void openStoreListing() => inAppReview.openStoreListing(
appStoreId: isAndroid() ? kPlayStoreAppId : kAppStoreAppId, microsoftStoreId: kMicrosoftAppStoreId);
appStoreId: isAndroid() ? kPlayStoreAppId : kAppStoreAppId,
microsoftStoreId: kMicrosoftAppStoreId);
}

View File

@ -1,5 +1,5 @@
name: invoiceninja
version: '5.0.86'
version: '5.0.87'
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