-
Notifications
You must be signed in to change notification settings - Fork 4
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
proposal: monitor IMA ad events for the user #42
Conversation
c07e8f8
to
0d571df
Compare
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.
Pre-approving (😎) but some nits that should probably get cleaned up pre-merge: semicolons; added whitespace
I just remembered that I need to update the Example in the SPM project. |
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.
SPM example needs a small fix for build break. LGTM otherwise
...PluginSPMExampleIOS/MuxStatsGoogleIMAPluginSPMExampleIOS/PlayerContainerViewController.swift
Show resolved
Hide resolved
…MExampleIOS/PlayerContainerViewController.swift Co-authored-by: AJ Lauer Barinov <[email protected]>
ok, build fixed! |
## Breaking * Reworked the `MuxImaListener` API to improve data accuracy (see below) (#42) ## Improvements: * update Mux Data dependencies * add Swift Package Manager example ### Steps to migrate existing integration 1. Replace calls to `MuxImaLister` with `MUXSDKIMAAdListener`. `MuxImaListener` supports the same new API so this step is optional, the remaining steps are applicable to `MuxImaListener`. As of `v0.14.0`, `MuxImaLister` is deprecated and will be removed in a future release. 2. Supply an `IMAAdsLoader` when calling the `MUXSDKIMAAdListener` initializer. Make sure your IMAAdsLoader delegate **is configured before this step**. 3. MUXSDKIMAAdListener will forward `IMAAdsLoaderDelegate` calls to your delegate. 4. When you've created a new `IMAAdsManager`, like you've done with `IMAAdsLoader`, configure your own `IMAAdsManagerDelegate` first and then call `monitorAdsManager`. 5. MUXSDKIMAAdListener will forward `IMAAdsManagerDelegate` calls to your delegate. 6. Remove calls to `dispatchEvent`, `dispatchError`, and `onContentPauseOrResume` from your integration.
Here are the proposed changes.
We need to update the unit tests before we un-draft this