-
Notifications
You must be signed in to change notification settings - Fork 4
WMSDK-445 #114
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
WMSDK-445 #114
Conversation
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.
Pull Request Overview
This PR implements an automatic initialization system for the Mindbox SDK in React Native Android applications. The implementation uses a ContentProvider to automatically register lifecycle listeners when the app starts, eliminating the need for manual SDK initialization.
- Automatic SDK initialization through a ContentProvider that registers on app startup
- Lifecycle monitoring system that tracks React Native context availability and activity events
- Event-driven architecture for handling push notifications and activity lifecycle changes
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| MindboxSdkLifecycleListener.kt | Main lifecycle listener that monitors React Native context and activity events |
| MindboxSdkLifecycleEvent.kt | Event classes for different lifecycle events |
| MindboxSdkInitProvider.kt | ContentProvider for automatic SDK initialization |
| MindboxEventSubscriber.kt | Interface for event subscription |
| MindboxEventEmitter.kt | Implementation that handles events and communicates with native SDK |
| AndroidManifest.xml | Registers the ContentProvider for automatic initialization |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
android/src/main/java/com/mindboxsdk/MindboxSdkLifecycleEvent.kt
Outdated
Show resolved
Hide resolved
android/src/main/java/com/mindboxsdk/MindboxSdkLifecycleListener.kt
Outdated
Show resolved
Hide resolved
3afe676 to
a3489ee
Compare
a3489ee to
40ebabd
Compare
https://tracker.yandex.ru/WMSDK-445