Open YahiaRagae opened 4 months ago
The initial fix was searching for the top View Controller and attaching the AdView to it and it was running for an article with 1 Video
When there are 2 videos, first video will get added correctly, but for the second video it will try to be added to the top ViewController which is the first AdView , that’s why the app was crashing.
I have updated my fix to search for the first Non-AdView View Controller, and it’s working now.
Fix: App Crashing Due to Wrong View Controller Hierarchy
Changes
Enhancements:
UIApplication+ CurrentNonAdViewController
category for gettingcurrentNonAdViewController
.BrightcoveIMAPlayerView
to use the new category.TestHost
to host unit tests requiringUIApplication
.Cleanup and Reorganization:
adDisplayView
andadResumeButton
.fullScreenCloseBtn
and fullscreen logic.BrightcoveIMAPlayerView
for readability.Updates:
2.3.6
.react-native
from0.63.4
to0.68.0
.bob
to simplify building the React Native library.patch-package
to patch iOS codebase issues.Exclusions:
BrightcoveImaPlayerTest
.