Skip to content

Commit

Permalink
remove ionic:build:before from build script (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar authored Nov 12, 2024
2 parents 6c6094c + cdc6732 commit 904dd2a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 186 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"dev": "vite",
"ionic:build:before": "./scripts/prebuild.sh",
"build": "pnpm ionic:build:before && vite build",
"build": "vite build",
"postinstall": "cap telemetry off && ionic config set -g telemetry false",
"preview": "vite preview",
"test": "vitest",
Expand Down Expand Up @@ -76,7 +76,6 @@
"capacitor-launch-native": "^1.0.0",
"capacitor-plugin-safe-area": "^3.0.3",
"capacitor-stash-media": "^2.0.1",
"capacitor-tips": "^1.0.0",
"colorjs.io": "^0.5.2",
"compare-versions": "^6.1.1",
"date-fns": "^4.1.0",
Expand Down
12 changes: 0 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 4 additions & 19 deletions src/features/tips/inAppPurchase/InAppProducts.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
import { IonSpinner } from "@ionic/react";

import Tip from "./Tip";
import useInAppPurchase from "./useInAppPurchase";
// This is a stub that replaces the non-stub InAppPurchases.tsx
// for F-droid and Github builds
// (because Google Play In-App Payments is nonfree)

export default function InAppProducts() {
const { products, initializing } = useInAppPurchase();

if (initializing) return <IonSpinner />;

if (!products.length)
return (
<div className="ion-text-center">
<p>No options found.</p>
<p>Please try again later!</p>
</div>
);

return products.map((product) => (
<Tip product={product} key={product.identifier} />
));
return <></>;
}
104 changes: 0 additions & 104 deletions src/features/tips/inAppPurchase/Tip.tsx

This file was deleted.

42 changes: 0 additions & 42 deletions src/features/tips/inAppPurchase/useInAppPurchase.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/features/tips/inAppPurchase__stub/InAppProducts.tsx

This file was deleted.

0 comments on commit 904dd2a

Please sign in to comment.