Files
HKSingleParty/99_references/voyager-main/disable_in_app_purchases.sh
2025-05-28 09:55:51 +08:00

16 lines
513 B
Bash

#!/bin/sh
# Check the folder doesn't exist before performing actions
if [ -d "src/features/tips/inAppPurchase__stub" ]; then
pnpm uninstall capacitor-tips
# Removes the proprietary google play app purchase libs
npx cap update
# Remove and rename files
rm -rf src/features/tips/inAppPurchase
mv src/features/tips/inAppPurchase__stub src/features/tips/inAppPurchase
else
echo "In-app purchases already disabled and references removed. Skipping uninstallation and file operations."
fi