-
Notifications
You must be signed in to change notification settings - Fork 22
RefactorUI: Clean API Architecture #682
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
Conversation
Co-authored-by: Cesar de la Vega <664544+vegaro@users.noreply.github.com>
…es-unity into feat/add-revenuecatui
…es-unity into feat/add-revenuecatui
295413b to
b4b74b2
Compare
b4b74b2 to
f2ce43a
Compare
RevenueCatUI/Scripts/Platforms/Android/AndroidPaywallPresenter.cs
Outdated
Show resolved
Hide resolved
| using RevenueCatUI.Internal; | ||
|
|
||
| namespace RevenueCat.UI.Platforms | ||
| namespace RevenueCatUI.Internal.Platforms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'l remove Internal
RevenueCatUI/Scripts/UI.cs
Outdated
| try | ||
| { | ||
| Debug.Log("[RevenueCatUI] Presenting paywall..."); | ||
| Debug.Log("[RevenueCat.UI] Presenting paywall..."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be RevenueCatUI
| using System; | ||
| using System.Threading.Tasks; | ||
| using UnityEngine; | ||
| using RevenueCatUI.Internal; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yes for PaywallsPresenter
Summary
🎯 New API Structure
The refactored API provides a clean, consistent interface that's easy to discover and use:
Static Presentation API
Configuration & Results
MonoBehaviour API
🔧 What Changed
✅ Added
RevenueCatUI.PaywallsPresenter- Main static API class with clean method namesRevenueCatUI.PaywallsBehaviour- MonoBehaviour component for scene integrationPaywalls*conventionThe new API delivers exactly what developers expect: clean, discoverable methods that do exactly what their names suggest, with no confusion about namespaces or redundant parameters. 🚀