mobile: fix pricing on gh release

This commit is contained in:
Ammar Ahmed
2025-09-12 14:52:39 +05:00
committed by Abdullah Atta
parent 383b914c52
commit a21111368e
2 changed files with 9 additions and 31 deletions

View File

@@ -38,7 +38,7 @@ export async function setupDatabase(password?: string) {
const key = await getDatabaseKey(password);
if (!key) throw new Error(strings.databaseSetupFailed());
const base = `http://192.168.100.79`;
const base = `http://192.168.100.83`;
database.host({
API_HOST: `${base}:5264`,

View File

@@ -64,8 +64,6 @@ export const BuyPlan = (props: {
: (pricingPlans.selectedProduct as RNIap.Product)?.productId
)?.includes("5");
console.log(checkoutUrl);
return checkoutUrl ? (
<View
style={{
@@ -74,28 +72,7 @@ export const BuyPlan = (props: {
>
<WebView
source={{
html: `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Basic HTML Page with Button</title>
</head>
<body>
<h1>Welcome to My Page</h1>
<p>This is a simple example of an HTML page with a button.</p>
<button
type="button"
onclick="window.ReactNativeWebView.postMessage(JSON.stringify({
success:true
}));"
>
Click Me!
</button>
</body>
</html>
`
uri: checkoutUrl
}}
onMessage={(message) => {
try {
@@ -107,6 +84,8 @@ export const BuyPlan = (props: {
}}
domStorageEnabled
javaScriptEnabled
cacheEnabled
enabled
style={{
flex: 1
}}
@@ -182,7 +161,8 @@ export const BuyPlan = (props: {
{pricingPlans.hasTrialOffer(
props.planId,
(pricingPlans.selectedProduct as RNIap.Product).productId
(pricingPlans?.selectedProduct as RNIap.Product)?.productId ||
(pricingPlans?.selectedProduct as Plan)?.period
) ? (
<View
style={{
@@ -211,11 +191,9 @@ export const BuyPlan = (props: {
{pricingPlans.hasTrialOffer(
props.planId,
(pricingPlans.selectedProduct as RNIap.Product).productId
) ||
(pricingPlans.selectedProduct as RNIap.Product).productId.includes(
"5"
) ? (
(pricingPlans.selectedProduct as RNIap.Product)?.productId ||
(pricingPlans.selectedProduct as Plan)?.period
) || is5YearPlanSelected ? (
<View
style={{
gap: DefaultAppStyles.GAP_VERTICAL,