Skip to content

Commit

Permalink
chore(ios): ensure we show in app purchases
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jan 13, 2025
1 parent d8c2e90 commit 6630621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions app.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions app/components/settings/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
[
{
type: 'header',
title: __IOS__ && !inAppAvailable ? lc('show_love') : lc('donate')
title: lc('donate')
},
{
type: 'sectionheader',
Expand Down Expand Up @@ -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% ...
Expand Down

0 comments on commit 6630621

Please sign in to comment.