eas.json's production build profile hardcodes its own env block — local apps/mobile/.env is never read by EAS cloud builds. The RevenueCat public key was missing from that list, so every production/TestFlight build compiled EXPO_PUBLIC_REVENUECAT_API_KEY as undefined, making configurePurchases() silently no-op and every later Purchases call throw "no singleton instance".
38 lines
871 B
JSON
38 lines
871 B
JSON
{
|
|
"cli": {
|
|
"version": ">= 14.0.0",
|
|
"appVersionSource": "remote"
|
|
},
|
|
"build": {
|
|
"development": {
|
|
"developmentClient": true,
|
|
"distribution": "internal",
|
|
"ios": {
|
|
"image": "latest"
|
|
}
|
|
},
|
|
"preview": {
|
|
"distribution": "internal",
|
|
"ios": {
|
|
"image": "latest"
|
|
}
|
|
},
|
|
"production": {
|
|
"autoIncrement": true,
|
|
"ios": {
|
|
"image": "latest"
|
|
},
|
|
"env": {
|
|
"EXPO_PUBLIC_SUPABASE_URL": "https://fwahdopsyvryvjaqande.supabase.co",
|
|
"EXPO_PUBLIC_SUPABASE_ANON_KEY": "sb_publishable_9YsK7YU7xfzxJQsz3x5iMA_LHCqUN3b",
|
|
"EXPO_PUBLIC_API_URL": "https://api.menul.io",
|
|
"EXPO_PUBLIC_WEB_URL": "https://menul.io",
|
|
"EXPO_PUBLIC_REVENUECAT_API_KEY": "appl_uQIvGUuvEthCNheZtcRfVixVhFy"
|
|
}
|
|
}
|
|
},
|
|
"submit": {
|
|
"production": {}
|
|
}
|
|
}
|