Commit 04680eb
committed
fix(billing): guard billing client connection behind requiresIapForRegistration flag
The billing client was eagerly connecting on every app foreground and
auth state change, even though the purchase feature is unused. This
triggered a known Play Billing Library crash in ProxyBillingActivity
on certain devices during cold launch.
Only connect the billing client when the server flag is enabled.
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent 95d6c81 commit 04680eb
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | | - | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
0 commit comments