mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-20 22:41:38 +02:00
MainActivity.kt mixed the Activity lifecycle and the backend dispatcher with several self-contained helpers. Give each its own file as MainActivity extension functions, following the W2-N split: - MainActivityInstallState.kt: ensureInstallMarker, prepareRuntimeState - MainActivityExtensionIntents.kt: verification and OAuth intent handling, processPendingExtensionCallbacks, session-grant events - MainActivitySafLeases.kt: SAF playback descriptor leases - MainActivitySmallChannels.kt: the concert_calendar and audio_output MethodChannels, still registered at the same point and in the same order in configureFlutterEngine The state these helpers touch stays in MainActivity and is widened from private to internal. Bodies move verbatim except that companion members are qualified with MainActivity. outside the class.