fix: Put In-App Purchases feature behind the IAP_ENABLED feature flag
Fixes:
@@ -152,12 +152,14 @@ class MyCoursesListFragment : OfflineSupportBaseFragment(), RefreshListener {
})
courseViewModel.enrolledCoursesResponse.observe(viewLifecycleOwner, NonNullObserver {
- initInAppPurchaseSetup()
populateCourseData(data = it)
+ if (environment.config.isIAPEnabled) {
+ initInAppPurchaseSetup()
resetPurchase()
if (incompletePurchases.isEmpty()) {
detectUnfulfilledPurchase(getVerifiedCoursesSku(it))
}
+ }
})
courseViewModel.handleError.observe(viewLifecycleOwner, NonNullObserver {
