refactor: Add support for tvos

This commit is contained in:
sarendsen
2025-01-05 10:39:46 +01:00
parent 46ac4a2cc7
commit a602c35a8f
6 changed files with 52 additions and 13 deletions

View File

@@ -10,7 +10,8 @@ Pod::Spec.new do |s|
s.static_framework = true
s.dependency 'ExpoModulesCore'
s.dependency 'MobileVLCKit', '~> 3.6.1b1'
s.ios.dependency 'MobileVLCKit', '~> 3.6.1b1'
s.tvos.dependency 'TVVLCKit', '~> 3.6.1b1'
# Swift/Objective-C compatibility
s.pod_target_xcconfig = {

View File

@@ -1,5 +1,9 @@
import ExpoModulesCore
#if os(tvOS)
import TVVLCKit
#else
import MobileVLCKit
#endif
import UIKit
class VlcPlayerView: ExpoView {