Skip to content

Commit 45029fb

Browse files
committed
Add audioService to AppDelegate
Signed-off-by: Fethi El Hassasna <e.fethi.c@gmail.com>
1 parent 890dd32 commit 45029fb

2 files changed

Lines changed: 7 additions & 194 deletions

File tree

SwiftRadio/AppDelegate.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ import UIKit
1111
@main
1212
class AppDelegate: UIResponder, UIApplicationDelegate {
1313

14+
private let audioService = AudioSetupService.shared
15+
1416
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1517
// Override point for customization after application launch.
18+
// Setup all audio-related configurations at app launch
19+
audioService.setupFRadioPlayer()
20+
audioService.setupAudioSession()
21+
audioService.setupRemoteCommandCenter()
22+
1623
return true
1724
}
1825

SwiftRadio/Views/BottomSheetViewController.swift

Lines changed: 0 additions & 194 deletions
This file was deleted.

0 commit comments

Comments
 (0)