Skip to content

Commit

Permalink
App review
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jul 6, 2022
1 parent 66ad0c3 commit 518e960
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 2 additions & 3 deletions android/gradle.properties
Original file line number Diff line number Diff line change
@@ -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
android.enableDexingArtifactTransform=false
5 changes: 4 additions & 1 deletion lib/ui/app/review_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
3 changes: 2 additions & 1 deletion lib/utils/review.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 518e960

Please sign in to comment.