From 9eb0362cbda9ab21925b5bccf3e9c611cd7e7a99 Mon Sep 17 00:00:00 2001 From: Sam Mejl Date: Sun, 19 Jul 2026 13:03:52 +0100 Subject: [PATCH] chore(example): remove legacy Offerings from sample app Offerings are being sunset in favor of Remote Configs. The sample app now sources the product list from Qonversion.getSharedInstance().products() only. Removed the Offerings screen, its navigation entries, and the offerings state/actions from the store. See: https://documentation.qonversion.io/docs/migrate-offerings-to-remote-configs Co-Authored-By: Claude Fable 5 --- example/src/app/main.ts | 15 +- example/src/app/screens/MainScreen.ts | 4 - example/src/app/screens/OfferingsScreen.ts | 207 --------------------- example/src/app/store.ts | 10 +- 4 files changed, 3 insertions(+), 233 deletions(-) delete mode 100644 example/src/app/screens/OfferingsScreen.ts diff --git a/example/src/app/main.ts b/example/src/app/main.ts index a6be591..86f9305 100644 --- a/example/src/app/main.ts +++ b/example/src/app/main.ts @@ -10,7 +10,6 @@ import { showToast, setLoading } from './utils'; import { renderMainScreen } from './screens/MainScreen'; import { renderProductsScreen } from './screens/ProductsScreen'; import { renderEntitlementsScreen } from './screens/EntitlementsScreen'; -import { renderOfferingsScreen } from './screens/OfferingsScreen'; import { renderRemoteConfigsScreen } from './screens/RemoteConfigsScreen'; import { renderUserScreen } from './screens/UserScreen'; import { renderNoCodesScreen } from './screens/NoCodesScreen'; @@ -23,7 +22,6 @@ const screenRenderers: Record string> = { main: renderMainScreen, products: renderProductsScreen, entitlements: renderEntitlementsScreen, - offerings: renderOfferingsScreen, remoteConfigs: renderRemoteConfigsScreen, user: renderUserScreen, noCodes: renderNoCodesScreen, @@ -36,7 +34,6 @@ const screenTitles: Record = { main: 'Qonversion SDK Demo', products: 'Products', entitlements: 'Entitlements', - offerings: 'Offerings', remoteConfigs: 'Remote Configs', user: 'User', noCodes: 'No-Codes', @@ -49,13 +46,6 @@ function renderMoreScreen(): string {

Additional Features

-
-
-
📋 Offerings
-
View available offerings and products
-
- -
⚙️ Remote Configs
@@ -196,7 +186,7 @@ function updateNavigation(): void { navItems.forEach(item => { const screen = item.getAttribute('data-screen'); item.classList.toggle('active', screen === currentScreen || - (screen === 'more' && ['offerings', 'remoteConfigs', 'noCodes', 'other'].includes(currentScreen))); + (screen === 'more' && ['remoteConfigs', 'noCodes', 'other'].includes(currentScreen))); }); // Update header @@ -241,9 +231,6 @@ function setupScreenEventListeners(screen: string): void { case 'entitlements': import('./screens/EntitlementsScreen').then(m => m.setupEntitlementsScreenEvents?.()); break; - case 'offerings': - import('./screens/OfferingsScreen').then(m => m.setupOfferingsScreenEvents?.()); - break; case 'remoteConfigs': import('./screens/RemoteConfigsScreen').then(m => m.setupRemoteConfigsScreenEvents?.()); break; diff --git a/example/src/app/screens/MainScreen.ts b/example/src/app/screens/MainScreen.ts index dc50ed6..86efe3b 100644 --- a/example/src/app/screens/MainScreen.ts +++ b/example/src/app/screens/MainScreen.ts @@ -51,10 +51,6 @@ export function renderMainScreen(): string { 🎫 Entitlements
-