Closed dpogue closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.56%. Comparing base (
98a3bcd
) to head (1ca5bcb
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Platforms affected
iOS
Motivation and Context
Some plugins expect to be able to access the applications's CDVViewController via the AppDelegate. While previously we guaranteed that the
viewController
property was set to a non-nil CDVViewController, there was never any guarantee that it was set to the CDVViewController that is actually displaying the app (particularly in cases such as apps using CordovaLib only for a few pages as part of a larger app).We've attempted to deprecate the property here, but some plugins still rely on the assumption that it will be non-nil, so we are trying to maintain compatibility in the common case here by assigning to it when a CDVViewController is loaded. This means there are still times in the app lifecycle where the
viewController
property is nil, but the deprecation warning will hopefully spur plugin developers to move away from that pattern.Testing
Existing unit tests pass.
Checklist