feat: add iOS shoppable ads interface for Rokt#69
Conversation
Expose selectShoppableAds in the Flutter API with iOS native implementation, Android no-op parity, and platform tests while keeping pod dependencies minimal via transitive resolution. Made-with: Cursor
Remove the web selectShoppableAds bridge call and document platform behavior so the API remains explicitly iOS-only for now. Made-with: Cursor
PR SummaryMedium Risk Overview On Android the same method is now exposed but implemented as a no-op that logs a warning for cross-platform API compatibility, and the Dart test suite is extended to assert the new method-channel contract. The iOS podspec is simplified to depend only on the Reviewed by Cursor Bugbot for commit 80e43bc. Bugbot is set up for automated code reviews on this repo. Configure here. |
- Android: log a warning in roktSelectShoppableAds to match RN bridge behavior - iOS: pass nil for onEvent since events are propagated via subscribeToEvents
Background
This change introduces the Flutter API surface needed for shoppable ads while keeping behavior aligned with currently supported platforms.
The implementation is scoped to iOS support, with Android exposed as a compatibility no-op.
What Has Changed
selectShoppableAdsto the Flutter Rokt API and method channel flowroktSelectShoppableAdsScreenshots/Video
N/A
Checklist
Additional Notes
selectShoppableAdsis currently iOS-only. Android is intentionally a no-op and web is not implemented.Made with Cursor