feat: IAP_AVAILABLE#2086
feat: IAP_AVAILABLE#2086RohitKushvaha01 merged 2 commits intoAcode-Foundation:ajit/fix-fetch-auth-configfrom
Conversation
Greptile SummaryThis PR introduces an
Confidence Score: 3/5Merging is risky for F-Droid users — the The
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[onDeviceReady] --> B{F-Droid build?}
B -- Yes --> C[iap is undefined\ncordova-plugin-iap removed]
B -- No --> D[iap plugin present\nIAP_AVAILABLE = true]
C --> E[iap.startConnection throws TypeError]
E --> F[Outer catch: logs Purchase error\nIAP block entirely skipped]
F --> G[HAS_PRO never updated\nfrom purchases]
D --> H[iap.startConnection]
H --> I{navigator.onLine?}
I -- Yes --> J[iap.getPurchases\nwith new .catch returns empty array]
J --> K{isPro found?}
K -- Yes --> L[HAS_PRO = true]
K -- No --> M[HAS_PRO = !isFreePackage]
I -- No --> N[HAS_PRO unchanged]
style C fill:#f99,stroke:#c00
style E fill:#f99,stroke:#c00
style F fill:#f99,stroke:#c00
|
771af92
into
Acode-Foundation:ajit/fix-fetch-auth-config
No description provided.