mirror of
git://f0xx.org/ac/ac-docs
synced 2026-07-29 06:59:18 +03:00
1.7 KiB
1.7 KiB
Commercial features (developer-gated)
| Field | Value |
|---|---|
| Author | Anton Afanasyeu |
| Revision | R1 |
| Creation date | 2026-05-22 |
| Last modification date | 2026-05-22 |
| Co-authored | |
| Severity | medium |
| State | postponed |
| Document type | draft |
\newpage \newpage
Ads, in-app purchases, and Play Store helpers are disabled for normal users. Turn them on only in Developer settings while testing monetization.
Table of contents
Documentation index: README.md
Developer toggles
| Setting | Effect |
|---|---|
| Enable in-app ads | Initializes InAppAdCoordinator (placeholder UI; AdMob not linked yet) |
| Enable in-app purchases | Connects Google Play Billing; placeholder SKU androidcast_premium |
| Enable Play Store integration | Allows listing intent + in-app review API |
Changing a toggle calls CommercialFeatures.refreshFromPreferences().
Before production
- Create app in Google Play Console and add in-app products matching
InAppPurchaseCoordinator.SKU_PREMIUM. - Add AdMob App ID to
AndroidManifest.xmland replaceInAppAdCoordinatorplaceholder with real ad units. - Privacy policy + ads declaration if using ads.
- Remove or hide developer toggles in release builds (optional
BuildConfig.DEBUGguard).
Code map
com.foxx.androidcast.commercial.CommercialFeaturesInAppPurchaseCoordinator— Billing Client 7.xInAppAdCoordinator— stubPlayStoreIntegration—market://+ Play In-App Review