Skip to content

Общий файл состояния приложения (AppState / AppFeaturesManager) #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AnShok opened this issue Apr 8, 2025 · 0 comments

Comments

@AnShok
Copy link
Owner

AnShok commented Apr 8, 2025

Создать singleton или инъекционный класс, который будет отвечать за доступ к платным и бесплатным функциям.

Функционал:

  1. Хранение:
  • isProUser: Boolean

  • proExpiresAt: Long

  • uuid: String

  1. Методы:
  • hasActivePro(): Boolean

  • shouldShowFeature(feature: AppFeature): Boolean

  • getUuid(): String

  1. Использование:

Для включения/выключения функций, проверки подписки, логирования событий

@AnShok AnShok changed the title Создание общего класса состояния приложения (AppState / AppFeaturesManager) Общий файл состояния приложения (AppState / AppFeaturesManager) Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant