xbmc / Official-Kodi-Remote-iOS

Full-featured remote control for XBMC Media Center. It features library browsing, now playing informations and a direct remote control.
Other
224 stars 104 forks source link

Maintenance: Rework AppDelegate to use appropriate types #1145

Closed wutschel closed 2 months ago

wutschel commented 2 months ago

Description

Closes https://github.com/xbmc/Official-Kodi-Remote-iOS/issues/1102.

This PR addresses a long-standing issue around AppDelegate in which the menu structure uses NSArray instead of NSDictionary in manifold places. Now this is reworked to use the desired type from the beginning, which requires some work in other controllers to adapt the processing of mainMethod and mainParameters to the new type.

Summary for release notes

Maintenance: Rework AppDelegate to use appropriate types

wutschel commented 2 months ago

Programmatically compared mainMethod and mainParameters using the old way (NSArray + conversion) with new way (NSDictionary) and confirmed they are same.