From 66306213baccfae6f3ce2954ece94cb7c78903fe Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Mon, 13 Jan 2025 11:26:41 +0100 Subject: [PATCH] chore(ios): ensure we show in app purchases --- app.webpack.config.js | 6 +----- app/components/settings/Settings.svelte | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/app.webpack.config.js b/app.webpack.config.js index 781a15e0..5d4b603e 100644 --- a/app.webpack.config.js +++ b/app.webpack.config.js @@ -436,11 +436,7 @@ module.exports = (env, params = {}) => { PLAY_STORE_BUILD: playStoreBuild, CUSTOM_URL_SCHEME: `"${CUSTOM_URL_SCHEME}"`, STORE_LINK: `"${isAndroid ? `https://play.google.com/store/apps/details?id=${appId}` : `https://itunes.apple.com/app/id${APP_STORE_ID}`}"`, - STORE_REVIEW_LINK: `"${ - isIOS - ? ` itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=${APP_STORE_ID}&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software` - : `market://details?id=${appId}` - }"`, + STORE_REVIEW_LINK: `"${isIOS ? `https://itunes.apple.com/app/id${APP_STORE_ID}?action=write-review` : `market://details?id=${appId}`}"`, SPONSOR_URL: '"https://github.com/sponsors/farfromrefug"', DEV_LOG: !!devlog, TEST_LOG: !!devlog || !!testlog diff --git a/app/components/settings/Settings.svelte b/app/components/settings/Settings.svelte index fe0b3b21..f0f79264 100644 --- a/app/components/settings/Settings.svelte +++ b/app/components/settings/Settings.svelte @@ -254,7 +254,7 @@ [ { type: 'header', - title: __IOS__ && !inAppAvailable ? lc('show_love') : lc('donate') + title: lc('donate') }, { type: 'sectionheader', @@ -605,7 +605,7 @@ break; default: - if (inAppAvailable) { + if (__IOS__ && PLAY_STORE_BUILD) { presentInAppSponsorBottomsheet(); } else { // Apple wants us to use in-app purchase for donations => taking 30% ...