From b0b9a614f3c4735b84f2a186275993f3ead519c1 Mon Sep 17 00:00:00 2001 From: Diego Waxemberg Date: Sat, 25 Aug 2018 20:33:03 -0700 Subject: [PATCH] Adding tvOS target --- Moonlight TV/AppDelegate.h | 22 ++ Moonlight TV/AppDelegate.m | 98 ++++++ .../Content.imageset/Contents.json | 11 + .../Back.imagestacklayer/Contents.json | 6 + .../Contents.json | 17 + .../Content.imageset/Contents.json | 11 + .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 11 + .../Middle.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 16 + .../Back.imagestacklayer/Contents.json | 6 + .../App Icon.imagestack/Contents.json | 17 + .../Content.imageset/Contents.json | 16 + .../Front.imagestacklayer/Contents.json | 6 + .../Content.imageset/Contents.json | 16 + .../Middle.imagestacklayer/Contents.json | 6 + .../Contents.json | 32 ++ .../Contents.json | 24 ++ .../Top Shelf Image.imageset/Contents.json | 24 ++ Moonlight TV/Assets.xcassets/Contents.json | 6 + .../Launch Image.launchimage/Contents.json | 22 ++ Moonlight TV/Base.lproj/Main.storyboard | 28 ++ Moonlight TV/Info.plist | 34 ++ .../.xccurrentversion | 8 + .../Moonlight_TV.xcdatamodel/contents | 4 + Moonlight TV/ViewController.h | 15 + Moonlight TV/ViewController.m | 29 ++ Moonlight TV/main.m | 16 + Moonlight.xcodeproj/project.pbxproj | 307 ++++++++++++++++++ .../moonlight-common-tv/moonlight_common_tv.h | 13 + .../moonlight-common-tv/moonlight_common_tv.m | 13 + .../project.pbxproj | 190 +++++++++++ 32 files changed, 1036 insertions(+) create mode 100644 Moonlight TV/AppDelegate.h create mode 100644 Moonlight TV/AppDelegate.m create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/Contents.json create mode 100644 Moonlight TV/Assets.xcassets/Launch Image.launchimage/Contents.json create mode 100644 Moonlight TV/Base.lproj/Main.storyboard create mode 100644 Moonlight TV/Info.plist create mode 100644 Moonlight TV/Moonlight_TV.xcdatamodeld/.xccurrentversion create mode 100644 Moonlight TV/Moonlight_TV.xcdatamodeld/Moonlight_TV.xcdatamodel/contents create mode 100644 Moonlight TV/ViewController.h create mode 100644 Moonlight TV/ViewController.m create mode 100644 Moonlight TV/main.m create mode 100644 moonlight-common/moonlight-common-tv/moonlight_common_tv.h create mode 100644 moonlight-common/moonlight-common-tv/moonlight_common_tv.m diff --git a/Moonlight TV/AppDelegate.h b/Moonlight TV/AppDelegate.h new file mode 100644 index 0000000..49df930 --- /dev/null +++ b/Moonlight TV/AppDelegate.h @@ -0,0 +1,22 @@ +// +// AppDelegate.h +// Moonlight TV +// +// Created by Diego Waxemberg on 8/25/18. +// Copyright © 2018 Moonlight Game Streaming Project. All rights reserved. +// + +#import +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@property (readonly, strong) NSPersistentContainer *persistentContainer; + +- (void)saveContext; + + +@end + diff --git a/Moonlight TV/AppDelegate.m b/Moonlight TV/AppDelegate.m new file mode 100644 index 0000000..c30dccc --- /dev/null +++ b/Moonlight TV/AppDelegate.m @@ -0,0 +1,98 @@ +// +// AppDelegate.m +// Moonlight TV +// +// Created by Diego Waxemberg on 8/25/18. +// Copyright © 2018 Moonlight Game Streaming Project. All rights reserved. +// + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + return YES; +} + + +- (void)applicationWillResignActive:(UIApplication *)application { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. +} + + +- (void)applicationDidEnterBackground:(UIApplication *)application { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. +} + + +- (void)applicationWillEnterForeground:(UIApplication *)application { + // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. +} + + +- (void)applicationDidBecomeActive:(UIApplication *)application { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. +} + + +- (void)applicationWillTerminate:(UIApplication *)application { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + // Saves changes in the application's managed object context before the application terminates. + [self saveContext]; +} + + +#pragma mark - Core Data stack + +@synthesize persistentContainer = _persistentContainer; + +- (NSPersistentContainer *)persistentContainer { + // The persistent container for the application. This implementation creates and returns a container, having loaded the store for the application to it. + @synchronized (self) { + if (_persistentContainer == nil) { + _persistentContainer = [[NSPersistentContainer alloc] initWithName:@"Moonlight_TV"]; + [_persistentContainer loadPersistentStoresWithCompletionHandler:^(NSPersistentStoreDescription *storeDescription, NSError *error) { + if (error != nil) { + // Replace this implementation with code to handle the error appropriately. + // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + + /* + Typical reasons for an error here include: + * The parent directory does not exist, cannot be created, or disallows writing. + * The persistent store is not accessible, due to permissions or data protection when the device is locked. + * The device is out of space. + * The store could not be migrated to the current model version. + Check the error message to determine what the actual problem was. + */ + NSLog(@"Unresolved error %@, %@", error, error.userInfo); + abort(); + } + }]; + } + } + + return _persistentContainer; +} + +#pragma mark - Core Data Saving support + +- (void)saveContext { + NSManagedObjectContext *context = self.persistentContainer.viewContext; + NSError *error = nil; + if (context.hasChanges && ![context save:&error]) { + // Replace this implementation with code to handle the error appropriately. + // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. + NSLog(@"Unresolved error %@, %@", error, error.userInfo); + abort(); + } +} + +@end diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..48ecb4f --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json new file mode 100644 index 0000000..d29f024 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..48ecb4f --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..48ecb4f --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,11 @@ +{ + "images" : [ + { + "idiom" : "tv" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon - App Store.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..16a370d --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Back.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json new file mode 100644 index 0000000..d29f024 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Contents.json @@ -0,0 +1,17 @@ +{ + "layers" : [ + { + "filename" : "Front.imagestacklayer" + }, + { + "filename" : "Middle.imagestacklayer" + }, + { + "filename" : "Back.imagestacklayer" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..16a370d --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Front.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json new file mode 100644 index 0000000..16a370d --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/App Icon.imagestack/Middle.imagestacklayer/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json new file mode 100644 index 0000000..db288f3 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Contents.json @@ -0,0 +1,32 @@ +{ + "assets" : [ + { + "size" : "1280x768", + "idiom" : "tv", + "filename" : "App Icon - App Store.imagestack", + "role" : "primary-app-icon" + }, + { + "size" : "400x240", + "idiom" : "tv", + "filename" : "App Icon.imagestack", + "role" : "primary-app-icon" + }, + { + "size" : "2320x720", + "idiom" : "tv", + "filename" : "Top Shelf Image Wide.imageset", + "role" : "top-shelf-image-wide" + }, + { + "size" : "1920x720", + "idiom" : "tv", + "filename" : "Top Shelf Image.imageset", + "role" : "top-shelf-image" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json new file mode 100644 index 0000000..7dc9502 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image Wide.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json new file mode 100644 index 0000000..7dc9502 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/App Icon & Top Shelf Image.brandassets/Top Shelf Image.imageset/Contents.json @@ -0,0 +1,24 @@ +{ + "images" : [ + { + "idiom" : "tv", + "scale" : "1x" + }, + { + "idiom" : "tv", + "scale" : "2x" + }, + { + "idiom" : "tv-marketing", + "scale" : "1x" + }, + { + "idiom" : "tv-marketing", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/Contents.json b/Moonlight TV/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Assets.xcassets/Launch Image.launchimage/Contents.json b/Moonlight TV/Assets.xcassets/Launch Image.launchimage/Contents.json new file mode 100644 index 0000000..d746a60 --- /dev/null +++ b/Moonlight TV/Assets.xcassets/Launch Image.launchimage/Contents.json @@ -0,0 +1,22 @@ +{ + "images" : [ + { + "orientation" : "landscape", + "idiom" : "tv", + "extent" : "full-screen", + "minimum-system-version" : "11.0", + "scale" : "2x" + }, + { + "orientation" : "landscape", + "idiom" : "tv", + "extent" : "full-screen", + "minimum-system-version" : "9.0", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Moonlight TV/Base.lproj/Main.storyboard b/Moonlight TV/Base.lproj/Main.storyboard new file mode 100644 index 0000000..72d5e22 --- /dev/null +++ b/Moonlight TV/Base.lproj/Main.storyboard @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Moonlight TV/Info.plist b/Moonlight TV/Info.plist new file mode 100644 index 0000000..39be5c6 --- /dev/null +++ b/Moonlight TV/Info.plist @@ -0,0 +1,34 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Moonlight + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + arm64 + + UIUserInterfaceStyle + Automatic + + diff --git a/Moonlight TV/Moonlight_TV.xcdatamodeld/.xccurrentversion b/Moonlight TV/Moonlight_TV.xcdatamodeld/.xccurrentversion new file mode 100644 index 0000000..5ab0690 --- /dev/null +++ b/Moonlight TV/Moonlight_TV.xcdatamodeld/.xccurrentversion @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + Moonlight_TV.xcdatamodel + + diff --git a/Moonlight TV/Moonlight_TV.xcdatamodeld/Moonlight_TV.xcdatamodel/contents b/Moonlight TV/Moonlight_TV.xcdatamodeld/Moonlight_TV.xcdatamodel/contents new file mode 100644 index 0000000..ad82c3b --- /dev/null +++ b/Moonlight TV/Moonlight_TV.xcdatamodeld/Moonlight_TV.xcdatamodel/contents @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Moonlight TV/ViewController.h b/Moonlight TV/ViewController.h new file mode 100644 index 0000000..a401861 --- /dev/null +++ b/Moonlight TV/ViewController.h @@ -0,0 +1,15 @@ +// +// ViewController.h +// Moonlight TV +// +// Created by Diego Waxemberg on 8/25/18. +// Copyright © 2018 Moonlight Game Streaming Project. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/Moonlight TV/ViewController.m b/Moonlight TV/ViewController.m new file mode 100644 index 0000000..d9b3a1b --- /dev/null +++ b/Moonlight TV/ViewController.m @@ -0,0 +1,29 @@ +// +// ViewController.m +// Moonlight TV +// +// Created by Diego Waxemberg on 8/25/18. +// Copyright © 2018 Moonlight Game Streaming Project. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + + +@end diff --git a/Moonlight TV/main.m b/Moonlight TV/main.m new file mode 100644 index 0000000..c725094 --- /dev/null +++ b/Moonlight TV/main.m @@ -0,0 +1,16 @@ +// +// main.m +// Moonlight TV +// +// Created by Diego Waxemberg on 8/25/18. +// Copyright © 2018 Moonlight Game Streaming Project. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/Moonlight.xcodeproj/project.pbxproj b/Moonlight.xcodeproj/project.pbxproj index 80497ff..0d7c0cf 100644 --- a/Moonlight.xcodeproj/project.pbxproj +++ b/Moonlight.xcodeproj/project.pbxproj @@ -23,6 +23,48 @@ D4746EEC1CBC740C006FB401 /* Controller.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4746EEB1CBC740C006FB401 /* Controller.swift */; }; DC1F5A07206436B20037755F /* ConnectionHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = DC1F5A06206436B20037755F /* ConnectionHelper.m */; }; FB1A674D2131E65900507771 /* KeyboardSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = FB1A674C2131E65900507771 /* KeyboardSupport.m */; }; + FB1A67602132419700507771 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FB1A675E2132419700507771 /* Main.storyboard */; }; + FB1A67622132419A00507771 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FB1A67612132419A00507771 /* Assets.xcassets */; }; + FB1A679E2132457D00507771 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FB1A67562132419700507771 /* AppDelegate.m */; }; + FB1A67A02132457D00507771 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = FB1A67592132419700507771 /* ViewController.m */; }; + FB1A67A12132458C00507771 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = FB1A67642132419A00507771 /* main.m */; }; + FB1A67A3213245BD00507771 /* Connection.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89461719F646E200339C8A /* Connection.m */; }; + FB1A67A5213245BD00507771 /* StreamConfiguration.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89461919F646E200339C8A /* StreamConfiguration.m */; }; + FB1A67A7213245BD00507771 /* StreamManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89461B19F646E200339C8A /* StreamManager.m */; }; + FB1A67A9213245BD00507771 /* VideoDecoderRenderer.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89461D19F646E200339C8A /* VideoDecoderRenderer.m */; }; + FB1A67AB213245C500507771 /* CryptoManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89460619F646E200339C8A /* CryptoManager.m */; }; + FB1A67AF213245C500507771 /* IdManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FB53E1421BE5DC4400CD6ECE /* IdManager.m */; }; + FB1A67B1213245D500507771 /* HttpManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89461019F646E200339C8A /* HttpManager.m */; }; + FB1A67B3213245D500507771 /* HttpRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = FB9AFD361A7E02DB00872C98 /* HttpRequest.m */; }; + FB1A67B5213245D500507771 /* HttpResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = FB9AFD271A7C84ED00872C98 /* HttpResponse.m */; }; + FB1A67B7213245D500507771 /* ServerInfoResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = FB9AFD391A7E05CE00872C98 /* ServerInfoResponse.m */; }; + FB1A67B9213245D500507771 /* AppAssetResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = FB9AFD3C1A7E111600872C98 /* AppAssetResponse.m */; }; + FB1A67BB213245D500507771 /* AppListResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = FB9AFD3F1A7E127D00872C98 /* AppListResponse.m */; }; + FB1A67BD213245E000507771 /* DiscoveryManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FB4678F91A55FFAD00377732 /* DiscoveryManager.m */; }; + FB1A67BF213245E000507771 /* DiscoveryWorker.m in Sources */ = {isa = PBXBuildFile; fileRef = FB6549551A57907E001C8F39 /* DiscoveryWorker.m */; }; + FB1A67C1213245E000507771 /* MDNSManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89461219F646E200339C8A /* MDNSManager.m */; }; + FB1A67C3213245EA00507771 /* AppAssetManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FBD3494219FC9C04002D2A60 /* AppAssetManager.m */; }; + FB1A67C5213245EA00507771 /* AppAssetRetriever.m in Sources */ = {isa = PBXBuildFile; fileRef = FB9AFD311A7D867C00872C98 /* AppAssetRetriever.m */; }; + FB1A67C7213245EA00507771 /* PairManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89461419F646E200339C8A /* PairManager.m */; }; + FB1A67C9213245EA00507771 /* WakeOnLanManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FB4678FE1A565DAC00377732 /* WakeOnLanManager.m */; }; + FB1A67CB213245EA00507771 /* ConnectionHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = DC1F5A06206436B20037755F /* ConnectionHelper.m */; }; + FB1A67CD213245F800507771 /* DataManager.m in Sources */ = {isa = PBXBuildFile; fileRef = FBD349611A0089F6002D2A60 /* DataManager.m */; }; + FB1A67CF213245F800507771 /* TemporaryApp.m in Sources */ = {isa = PBXBuildFile; fileRef = 9832D1351BBCD5C50036EF48 /* TemporaryApp.m */; }; + FB1A67D1213245F800507771 /* TemporaryHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 98D5856C1C0EA79600F6CC00 /* TemporaryHost.m */; }; + FB1A67D3213245F800507771 /* TemporarySettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 98D5856F1C0ED0E800F6CC00 /* TemporarySettings.m */; }; + FB1A67D52132460400507771 /* ControllerSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89460B19F646E200339C8A /* ControllerSupport.m */; }; + FB1A67D62132460400507771 /* Controller.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4746EEB1CBC740C006FB401 /* Controller.swift */; }; + FB1A67D82132460400507771 /* StreamView.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89460D19F646E200339C8A /* StreamView.m */; }; + FB1A67DA2132460400507771 /* OnScreenControls.m in Sources */ = {isa = PBXBuildFile; fileRef = FB4678EC1A50C40900377732 /* OnScreenControls.m */; }; + FB1A67DC2132460400507771 /* KeyboardSupport.m in Sources */ = {isa = PBXBuildFile; fileRef = FB1A674C2131E65900507771 /* KeyboardSupport.m */; }; + FB1A67DE2132460A00507771 /* Utils.m in Sources */ = {isa = PBXBuildFile; fileRef = FB89462219F646E200339C8A /* Utils.m */; }; + FB1A67E02132460A00507771 /* Logger.m in Sources */ = {isa = PBXBuildFile; fileRef = FBD1C8E11A8AD71400C6703C /* Logger.m */; }; + FB1A67E32132498A00507771 /* Limelight.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = FB290D0519B2C406004C83CF /* Limelight.xcdatamodeld */; }; + FB1A67E521324A1F00507771 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FB1A67E421324A1F00507771 /* CoreData.framework */; }; + FB1A67E621324DD600507771 /* libcrypto.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FB8946E019F6AFB800339C8A /* libcrypto.a */; }; + FB1A67E721324DD600507771 /* libssl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FB8946E119F6AFB800339C8A /* libssl.a */; }; + FB1A67E821324DE300507771 /* libopus.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FB8946EA19F6AFB800339C8A /* libopus.a */; }; + FB1A67EA21324DF300507771 /* libxml2.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = FB1A67E921324DF300507771 /* libxml2.tbd */; }; FB1D59971BBCCB6400F482CA /* ComputerScrollView.m in Sources */ = {isa = PBXBuildFile; fileRef = FB1D59961BBCCB6400F482CA /* ComputerScrollView.m */; }; FB1D599A1BBCCD7E00F482CA /* AppCollectionView.m in Sources */ = {isa = PBXBuildFile; fileRef = FB1D59991BBCCD7E00F482CA /* AppCollectionView.m */; }; FB290CF219B2C406004C83CF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FB290CF119B2C406004C83CF /* Foundation.framework */; }; @@ -98,6 +140,20 @@ remoteGlobalIDString = FB290CED19B2C406004C83CF; remoteInfo = Moonlight; }; + FB1A68142132509400507771 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 98AB2E7F1CAD46830089BB98 /* moonlight-common.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = FB1A67EF21324EE300507771; + remoteInfo = "moonlight-common-tv"; + }; + FB1A68162132509800507771 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 98AB2E7F1CAD46830089BB98 /* moonlight-common.xcodeproj */; + proxyType = 1; + remoteGlobalIDString = FB1A67EE21324EE300507771; + remoteInfo = "moonlight-common-tv"; + }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ @@ -128,6 +184,18 @@ DC1F5A06206436B20037755F /* ConnectionHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ConnectionHelper.m; sourceTree = ""; }; FB1A674B2131E65900507771 /* KeyboardSupport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KeyboardSupport.h; sourceTree = ""; }; FB1A674C2131E65900507771 /* KeyboardSupport.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KeyboardSupport.m; sourceTree = ""; }; + FB1A67532132419700507771 /* Moonlight TV.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Moonlight TV.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + FB1A67552132419700507771 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + FB1A67562132419700507771 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + FB1A67582132419700507771 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + FB1A67592132419700507771 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + FB1A675C2132419700507771 /* Moonlight_TV.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Moonlight_TV.xcdatamodel; sourceTree = ""; }; + FB1A675F2132419700507771 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + FB1A67612132419A00507771 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + FB1A67632132419A00507771 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + FB1A67642132419A00507771 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + FB1A67E421324A1F00507771 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS11.4.sdk/System/Library/Frameworks/CoreData.framework; sourceTree = DEVELOPER_DIR; }; + FB1A67E921324DF300507771 /* libxml2.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libxml2.tbd; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS11.4.sdk/usr/lib/libxml2.tbd; sourceTree = DEVELOPER_DIR; }; FB1D59951BBCCB6400F482CA /* ComputerScrollView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ComputerScrollView.h; sourceTree = ""; }; FB1D59961BBCCB6400F482CA /* ComputerScrollView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ComputerScrollView.m; sourceTree = ""; }; FB1D59981BBCCD7E00F482CA /* AppCollectionView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppCollectionView.h; sourceTree = ""; }; @@ -311,6 +379,18 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + FB1A67502132419700507771 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + FB1A67EA21324DF300507771 /* libxml2.tbd in Frameworks */, + FB1A67E821324DE300507771 /* libopus.a in Frameworks */, + FB1A67E621324DD600507771 /* libcrypto.a in Frameworks */, + FB1A67E721324DD600507771 /* libssl.a in Frameworks */, + FB1A67E521324A1F00507771 /* CoreData.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; FB290CEB19B2C406004C83CF /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -335,6 +415,7 @@ isa = PBXGroup; children = ( 98AB2E841CAD46840089BB98 /* libmoonlight-common.a */, + FB1A68152132509400507771 /* libmoonlight-common-tv.a */, ); name = Products; sourceTree = ""; @@ -379,12 +460,29 @@ name = Input; sourceTree = ""; }; + FB1A67542132419700507771 /* Moonlight TV */ = { + isa = PBXGroup; + children = ( + FB1A67552132419700507771 /* AppDelegate.h */, + FB1A67562132419700507771 /* AppDelegate.m */, + FB1A67582132419700507771 /* ViewController.h */, + FB1A67592132419700507771 /* ViewController.m */, + FB1A675E2132419700507771 /* Main.storyboard */, + FB1A67612132419A00507771 /* Assets.xcassets */, + FB1A67632132419A00507771 /* Info.plist */, + FB1A67642132419A00507771 /* main.m */, + FB1A675B2132419700507771 /* Moonlight_TV.xcdatamodeld */, + ); + path = "Moonlight TV"; + sourceTree = ""; + }; FB290CE519B2C406004C83CF = { isa = PBXGroup; children = ( 98AB2E7F1CAD46830089BB98 /* moonlight-common.xcodeproj */, FB290CF919B2C406004C83CF /* Moonlight */, D46A73A11CBC7CB60039F1EE /* MoonlightUnitTests */, + FB1A67542132419700507771 /* Moonlight TV */, FB290CF019B2C406004C83CF /* Frameworks */, FB290CEF19B2C406004C83CF /* Products */, ); @@ -395,6 +493,7 @@ children = ( FB290CEE19B2C406004C83CF /* Moonlight.app */, D46A73A01CBC7CB60039F1EE /* MoonlightUnitTests.xctest */, + FB1A67532132419700507771 /* Moonlight TV.app */, ); name = Products; sourceTree = ""; @@ -402,6 +501,8 @@ FB290CF019B2C406004C83CF /* Frameworks */ = { isa = PBXGroup; children = ( + FB1A67E921324DF300507771 /* libxml2.tbd */, + FB1A67E421324A1F00507771 /* CoreData.framework */, 9890CF6A203B7EE1006C4B06 /* libxml2.tbd */, FB4679001A57048000377732 /* CoreFoundation.framework */, FB89468F19F6AFB800339C8A /* libs */, @@ -778,6 +879,24 @@ productReference = D46A73A01CBC7CB60039F1EE /* MoonlightUnitTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; + FB1A67522132419700507771 /* Moonlight TV */ = { + isa = PBXNativeTarget; + buildConfigurationList = FB1A67682132419A00507771 /* Build configuration list for PBXNativeTarget "Moonlight TV" */; + buildPhases = ( + FB1A674F2132419700507771 /* Sources */, + FB1A67502132419700507771 /* Frameworks */, + FB1A67512132419700507771 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + FB1A68172132509800507771 /* PBXTargetDependency */, + ); + name = "Moonlight TV"; + productName = "Moonlight TV"; + productReference = FB1A67532132419700507771 /* Moonlight TV.app */; + productType = "com.apple.product-type.application"; + }; FB290CED19B2C406004C83CF /* Moonlight */ = { isa = PBXNativeTarget; buildConfigurationList = FB290D2019B2C406004C83CF /* Build configuration list for PBXNativeTarget "Moonlight" */; @@ -811,6 +930,10 @@ LastSwiftMigration = 0920; TestTargetID = FB290CED19B2C406004C83CF; }; + FB1A67522132419700507771 = { + CreatedOnToolsVersion = 9.4.1; + ProvisioningStyle = Automatic; + }; FB290CED19B2C406004C83CF = { DevelopmentTeam = DM46QST4M7; LastSwiftMigration = 0920; @@ -823,6 +946,7 @@ hasScannedForEncodings = 0; knownRegions = ( en, + Base, ); mainGroup = FB290CE519B2C406004C83CF; productRefGroup = FB290CEF19B2C406004C83CF /* Products */; @@ -837,6 +961,7 @@ targets = ( FB290CED19B2C406004C83CF /* Moonlight */, D46A739F1CBC7CB60039F1EE /* MoonlightUnitTests */, + FB1A67522132419700507771 /* Moonlight TV */, ); }; /* End PBXProject section */ @@ -849,6 +974,13 @@ remoteRef = 98AB2E831CAD46840089BB98 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; + FB1A68152132509400507771 /* libmoonlight-common-tv.a */ = { + isa = PBXReferenceProxy; + fileType = archive.ar; + path = "libmoonlight-common-tv.a"; + remoteRef = FB1A68142132509400507771 /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; /* End PBXReferenceProxy section */ /* Begin PBXResourcesBuildPhase section */ @@ -859,6 +991,15 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + FB1A67512132419700507771 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + FB1A67622132419A00507771 /* Assets.xcassets in Resources */, + FB1A67602132419700507771 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; FB290CEC19B2C406004C83CF /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -889,6 +1030,48 @@ ); runOnlyForDeploymentPostprocessing = 0; }; + FB1A674F2132419700507771 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + FB1A67E32132498A00507771 /* Limelight.xcdatamodeld in Sources */, + FB1A67DE2132460A00507771 /* Utils.m in Sources */, + FB1A67E02132460A00507771 /* Logger.m in Sources */, + FB1A67D52132460400507771 /* ControllerSupport.m in Sources */, + FB1A67D62132460400507771 /* Controller.swift in Sources */, + FB1A67D82132460400507771 /* StreamView.m in Sources */, + FB1A67DA2132460400507771 /* OnScreenControls.m in Sources */, + FB1A67DC2132460400507771 /* KeyboardSupport.m in Sources */, + FB1A67CD213245F800507771 /* DataManager.m in Sources */, + FB1A67CF213245F800507771 /* TemporaryApp.m in Sources */, + FB1A67D1213245F800507771 /* TemporaryHost.m in Sources */, + FB1A67D3213245F800507771 /* TemporarySettings.m in Sources */, + FB1A67C3213245EA00507771 /* AppAssetManager.m in Sources */, + FB1A67C5213245EA00507771 /* AppAssetRetriever.m in Sources */, + FB1A67C7213245EA00507771 /* PairManager.m in Sources */, + FB1A67C9213245EA00507771 /* WakeOnLanManager.m in Sources */, + FB1A67CB213245EA00507771 /* ConnectionHelper.m in Sources */, + FB1A67BD213245E000507771 /* DiscoveryManager.m in Sources */, + FB1A67BF213245E000507771 /* DiscoveryWorker.m in Sources */, + FB1A67C1213245E000507771 /* MDNSManager.m in Sources */, + FB1A67B1213245D500507771 /* HttpManager.m in Sources */, + FB1A67B3213245D500507771 /* HttpRequest.m in Sources */, + FB1A67B5213245D500507771 /* HttpResponse.m in Sources */, + FB1A67B7213245D500507771 /* ServerInfoResponse.m in Sources */, + FB1A67B9213245D500507771 /* AppAssetResponse.m in Sources */, + FB1A67BB213245D500507771 /* AppListResponse.m in Sources */, + FB1A67AB213245C500507771 /* CryptoManager.m in Sources */, + FB1A67AF213245C500507771 /* IdManager.m in Sources */, + FB1A67A3213245BD00507771 /* Connection.m in Sources */, + FB1A67A5213245BD00507771 /* StreamConfiguration.m in Sources */, + FB1A67A7213245BD00507771 /* StreamManager.m in Sources */, + FB1A67A9213245BD00507771 /* VideoDecoderRenderer.m in Sources */, + FB1A67A12132458C00507771 /* main.m in Sources */, + FB1A679E2132457D00507771 /* AppDelegate.m in Sources */, + FB1A67A02132457D00507771 /* ViewController.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; FB290CEA19B2C406004C83CF /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -953,9 +1136,22 @@ target = FB290CED19B2C406004C83CF /* Moonlight */; targetProxy = D46A73A51CBC7CB60039F1EE /* PBXContainerItemProxy */; }; + FB1A68172132509800507771 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + name = "moonlight-common-tv"; + targetProxy = FB1A68162132509800507771 /* PBXContainerItemProxy */; + }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ + FB1A675E2132419700507771 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + FB1A675F2132419700507771 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; FB290CFC19B2C406004C83CF /* InfoPlist.strings */ = { isa = PBXVariantGroup; children = ( @@ -1017,6 +1213,94 @@ }; name = Release; }; + FB1A67662132419A00507771 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Launch Image"; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = DM46QST4M7; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Limelight/Limelight-Prefix.pch"; + HEADER_SEARCH_PATHS = ( + "$(PROJECT_DIR)/moonlight-common/moonlight-common-c/src", + "$(SDKROOT)/usr/include/libxml2/**", + "$(PROJECT_DIR)/libs/**", + ); + INFOPLIST_FILE = "Moonlight TV/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/libs/openssl/lib", + "$(PROJECT_DIR)/libs/opus/lib", + ); + MTL_ENABLE_DEBUG_INFO = YES; + PRODUCT_BUNDLE_IDENTIFIER = "com.moonlight-stream.Moonlight-TV"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OBJC_BRIDGING_HEADER = "Limelight/Input/Moonlight-Bridging-Header.h"; + SWIFT_OBJC_INTERFACE_HEADER_NAME = "Moonlight-Swift.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 11.4; + }; + name = Debug; + }; + FB1A67672132419A00507771 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = "Launch Image"; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = DM46QST4M7; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_INCREASE_PRECOMPILED_HEADER_SHARING = NO; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Limelight/Limelight-Prefix.pch"; + HEADER_SEARCH_PATHS = ( + "$(PROJECT_DIR)/moonlight-common/moonlight-common-c/src", + "$(SDKROOT)/usr/include/libxml2/**", + "$(PROJECT_DIR)/libs/**", + ); + INFOPLIST_FILE = "Moonlight TV/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + LIBRARY_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/libs/openssl/lib", + "$(PROJECT_DIR)/libs/opus/lib", + ); + MTL_ENABLE_DEBUG_INFO = NO; + PRODUCT_BUNDLE_IDENTIFIER = "com.moonlight-stream.Moonlight-TV"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OBJC_BRIDGING_HEADER = "Limelight/Input/Moonlight-Bridging-Header.h"; + SWIFT_OBJC_INTERFACE_HEADER_NAME = "Moonlight-Swift.h"; + SWIFT_VERSION = 4.0; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 11.4; + }; + name = Release; + }; FB290D1E19B2C406004C83CF /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -1067,6 +1351,8 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; + SWIFT_OBJC_INTERFACE_HEADER_NAME = ""; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -1114,6 +1400,8 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0; PROVISIONING_PROFILE = ""; SDKROOT = iphoneos; + SWIFT_OBJC_INTERFACE_HEADER_NAME = ""; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; }; @@ -1203,6 +1491,15 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; + FB1A67682132419A00507771 /* Build configuration list for PBXNativeTarget "Moonlight TV" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + FB1A67662132419A00507771 /* Debug */, + FB1A67672132419A00507771 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; FB290CE919B2C406004C83CF /* Build configuration list for PBXProject "Moonlight" */ = { isa = XCConfigurationList; buildConfigurations = ( @@ -1224,6 +1521,16 @@ /* End XCConfigurationList section */ /* Begin XCVersionGroup section */ + FB1A675B2132419700507771 /* Moonlight_TV.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + FB1A675C2132419700507771 /* Moonlight_TV.xcdatamodel */, + ); + currentVersion = FB1A675C2132419700507771 /* Moonlight_TV.xcdatamodel */; + path = Moonlight_TV.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; FB290D0519B2C406004C83CF /* Limelight.xcdatamodeld */ = { isa = XCVersionGroup; children = ( diff --git a/moonlight-common/moonlight-common-tv/moonlight_common_tv.h b/moonlight-common/moonlight-common-tv/moonlight_common_tv.h new file mode 100644 index 0000000..e960e28 --- /dev/null +++ b/moonlight-common/moonlight-common-tv/moonlight_common_tv.h @@ -0,0 +1,13 @@ +// +// moonlight_common_tv.h +// moonlight-common-tv +// +// Created by Diego Waxemberg on 8/25/18. +// Copyright © 2018 Moonlight Stream. All rights reserved. +// + +#import + +@interface moonlight_common_tv : NSObject + +@end diff --git a/moonlight-common/moonlight-common-tv/moonlight_common_tv.m b/moonlight-common/moonlight-common-tv/moonlight_common_tv.m new file mode 100644 index 0000000..1abad18 --- /dev/null +++ b/moonlight-common/moonlight-common-tv/moonlight_common_tv.m @@ -0,0 +1,13 @@ +// +// moonlight_common_tv.m +// moonlight-common-tv +// +// Created by Diego Waxemberg on 8/25/18. +// Copyright © 2018 Moonlight Stream. All rights reserved. +// + +#import "moonlight_common_tv.h" + +@implementation moonlight_common_tv + +@end diff --git a/moonlight-common/moonlight-common.xcodeproj/project.pbxproj b/moonlight-common/moonlight-common.xcodeproj/project.pbxproj index b6a6dfe..c1f7259 100644 --- a/moonlight-common/moonlight-common.xcodeproj/project.pbxproj +++ b/moonlight-common/moonlight-common.xcodeproj/project.pbxproj @@ -34,8 +34,47 @@ 98AB2E561CAD427A0089BB98 /* protocol.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E151CAD422B0089BB98 /* protocol.c */; }; 98AB2E571CAD427A0089BB98 /* unix.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E171CAD422B0089BB98 /* unix.c */; }; 98AB2E581CAD427A0089BB98 /* win32.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E181CAD422B0089BB98 /* win32.c */; }; + FB1A67F821324F4900507771 /* rs.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AEEE1EBE85E10084F99E /* rs.c */; }; + FB1A67F921324F4900507771 /* RtpFecQueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 9857AEE91EBE85A20084F99E /* RtpFecQueue.c */; }; + FB1A67FA21324F4900507771 /* AudioStream.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1A1CAD423B0089BB98 /* AudioStream.c */; }; + FB1A67FB21324F4900507771 /* ByteBuffer.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1B1CAD423B0089BB98 /* ByteBuffer.c */; }; + FB1A67FC21324F4900507771 /* Connection.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1D1CAD423B0089BB98 /* Connection.c */; }; + FB1A67FD21324F4900507771 /* ControlStream.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1E1CAD423B0089BB98 /* ControlStream.c */; }; + FB1A67FE21324F4900507771 /* FakeCallbacks.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E1F1CAD423B0089BB98 /* FakeCallbacks.c */; }; + FB1A67FF21324F4900507771 /* InputStream.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E211CAD423B0089BB98 /* InputStream.c */; }; + FB1A680021324F4900507771 /* LinkedBlockingQueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E241CAD423B0089BB98 /* LinkedBlockingQueue.c */; }; + FB1A680121324F4900507771 /* Misc.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E261CAD423B0089BB98 /* Misc.c */; }; + FB1A680221324F4900507771 /* Platform.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E311CAD423B0089BB98 /* Platform.c */; }; + FB1A680321324F4900507771 /* PlatformSockets.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E331CAD423B0089BB98 /* PlatformSockets.c */; }; + FB1A680421324F4900507771 /* RtpReorderQueue.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E361CAD423B0089BB98 /* RtpReorderQueue.c */; }; + FB1A680521324F4900507771 /* RtspConnection.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E391CAD423B0089BB98 /* RtspConnection.c */; }; + FB1A680621324F4900507771 /* RtspParser.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E3A1CAD423B0089BB98 /* RtspParser.c */; }; + FB1A680721324F4900507771 /* SdpGenerator.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E3B1CAD423B0089BB98 /* SdpGenerator.c */; }; + FB1A680821324F4900507771 /* VideoDepacketizer.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E3D1CAD423B0089BB98 /* VideoDepacketizer.c */; }; + FB1A680921324F4900507771 /* VideoStream.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E3E1CAD423B0089BB98 /* VideoStream.c */; }; + FB1A680A21324F4900507771 /* callbacks.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2DF01CAD422B0089BB98 /* callbacks.c */; }; + FB1A680B21324F4900507771 /* compress.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2DF31CAD422B0089BB98 /* compress.c */; }; + FB1A680C21324F4900507771 /* host.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E001CAD422B0089BB98 /* host.c */; }; + FB1A680D21324F4900507771 /* list.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E0E1CAD422B0089BB98 /* list.c */; }; + FB1A680E21324F4900507771 /* packet.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E121CAD422B0089BB98 /* packet.c */; }; + FB1A680F21324F4900507771 /* peer.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E131CAD422B0089BB98 /* peer.c */; }; + FB1A681021324F4900507771 /* protocol.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E151CAD422B0089BB98 /* protocol.c */; }; + FB1A681121324F4900507771 /* unix.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E171CAD422B0089BB98 /* unix.c */; }; + FB1A681221324F4900507771 /* win32.c in Sources */ = {isa = PBXBuildFile; fileRef = 98AB2E181CAD422B0089BB98 /* win32.c */; }; /* End PBXBuildFile section */ +/* Begin PBXCopyFilesBuildPhase section */ + FB1A67ED21324EE300507771 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + /* Begin PBXFileReference section */ 9857AEE91EBE85A20084F99E /* RtpFecQueue.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = RtpFecQueue.c; sourceTree = ""; }; 9857AEEB1EBE85AB0084F99E /* RtpFecQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RtpFecQueue.h; sourceTree = ""; }; @@ -105,10 +144,20 @@ 98AB2E3C1CAD423B0089BB98 /* Video.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Video.h; sourceTree = ""; }; 98AB2E3D1CAD423B0089BB98 /* VideoDepacketizer.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = VideoDepacketizer.c; sourceTree = ""; }; 98AB2E3E1CAD423B0089BB98 /* VideoStream.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = VideoStream.c; sourceTree = ""; }; + FB1A67EF21324EE300507771 /* libmoonlight-common-tv.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libmoonlight-common-tv.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + FB1A67F121324EE300507771 /* moonlight_common_tv.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = moonlight_common_tv.h; sourceTree = ""; }; + FB1A67F221324EE300507771 /* moonlight_common_tv.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = moonlight_common_tv.m; sourceTree = ""; }; FB290E2E19B37A4E004C83CF /* libmoonlight-common.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libmoonlight-common.a"; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + FB1A67EC21324EE300507771 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; FB290E2B19B37A4E004C83CF /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -242,12 +291,22 @@ path = "moonlight-common-c/src"; sourceTree = ""; }; + FB1A67F021324EE300507771 /* moonlight-common-tv */ = { + isa = PBXGroup; + children = ( + FB1A67F121324EE300507771 /* moonlight_common_tv.h */, + FB1A67F221324EE300507771 /* moonlight_common_tv.m */, + ); + path = "moonlight-common-tv"; + sourceTree = ""; + }; FB290E2519B37A4E004C83CF = { isa = PBXGroup; children = ( 9857AEED1EBE85D50084F99E /* reedsolomon */, 98AB2E191CAD423B0089BB98 /* src */, 98AB2DEF1CAD422B0089BB98 /* enet */, + FB1A67F021324EE300507771 /* moonlight-common-tv */, FB290E2F19B37A4E004C83CF /* Products */, ); sourceTree = ""; @@ -256,6 +315,7 @@ isa = PBXGroup; children = ( FB290E2E19B37A4E004C83CF /* libmoonlight-common.a */, + FB1A67EF21324EE300507771 /* libmoonlight-common-tv.a */, ); name = Products; sourceTree = ""; @@ -263,6 +323,23 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + FB1A67EE21324EE300507771 /* moonlight-common-tv */ = { + isa = PBXNativeTarget; + buildConfigurationList = FB1A67F721324EE300507771 /* Build configuration list for PBXNativeTarget "moonlight-common-tv" */; + buildPhases = ( + FB1A67EB21324EE300507771 /* Sources */, + FB1A67EC21324EE300507771 /* Frameworks */, + FB1A67ED21324EE300507771 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "moonlight-common-tv"; + productName = "moonlight-common-tv"; + productReference = FB1A67EF21324EE300507771 /* libmoonlight-common-tv.a */; + productType = "com.apple.product-type.library.static"; + }; FB290E2D19B37A4E004C83CF /* moonlight-common */ = { isa = PBXNativeTarget; buildConfigurationList = FB290E3219B37A4E004C83CF /* Build configuration list for PBXNativeTarget "moonlight-common" */; @@ -287,6 +364,12 @@ attributes = { LastUpgradeCheck = 0930; ORGANIZATIONNAME = "Moonlight Stream"; + TargetAttributes = { + FB1A67EE21324EE300507771 = { + CreatedOnToolsVersion = 9.4.1; + ProvisioningStyle = Automatic; + }; + }; }; buildConfigurationList = FB290E2919B37A4E004C83CF /* Build configuration list for PBXProject "moonlight-common" */; compatibilityVersion = "Xcode 8.0"; @@ -301,11 +384,46 @@ projectRoot = ""; targets = ( FB290E2D19B37A4E004C83CF /* moonlight-common */, + FB1A67EE21324EE300507771 /* moonlight-common-tv */, ); }; /* End PBXProject section */ /* Begin PBXSourcesBuildPhase section */ + FB1A67EB21324EE300507771 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + FB1A67F821324F4900507771 /* rs.c in Sources */, + FB1A67F921324F4900507771 /* RtpFecQueue.c in Sources */, + FB1A67FA21324F4900507771 /* AudioStream.c in Sources */, + FB1A67FB21324F4900507771 /* ByteBuffer.c in Sources */, + FB1A67FC21324F4900507771 /* Connection.c in Sources */, + FB1A67FD21324F4900507771 /* ControlStream.c in Sources */, + FB1A67FE21324F4900507771 /* FakeCallbacks.c in Sources */, + FB1A67FF21324F4900507771 /* InputStream.c in Sources */, + FB1A680021324F4900507771 /* LinkedBlockingQueue.c in Sources */, + FB1A680121324F4900507771 /* Misc.c in Sources */, + FB1A680221324F4900507771 /* Platform.c in Sources */, + FB1A680321324F4900507771 /* PlatformSockets.c in Sources */, + FB1A680421324F4900507771 /* RtpReorderQueue.c in Sources */, + FB1A680521324F4900507771 /* RtspConnection.c in Sources */, + FB1A680621324F4900507771 /* RtspParser.c in Sources */, + FB1A680721324F4900507771 /* SdpGenerator.c in Sources */, + FB1A680821324F4900507771 /* VideoDepacketizer.c in Sources */, + FB1A680921324F4900507771 /* VideoStream.c in Sources */, + FB1A680A21324F4900507771 /* callbacks.c in Sources */, + FB1A680B21324F4900507771 /* compress.c in Sources */, + FB1A680C21324F4900507771 /* host.c in Sources */, + FB1A680D21324F4900507771 /* list.c in Sources */, + FB1A680E21324F4900507771 /* packet.c in Sources */, + FB1A680F21324F4900507771 /* peer.c in Sources */, + FB1A681021324F4900507771 /* protocol.c in Sources */, + FB1A681121324F4900507771 /* unix.c in Sources */, + FB1A681221324F4900507771 /* win32.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; FB290E2A19B37A4E004C83CF /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -343,6 +461,69 @@ /* End PBXSourcesBuildPhase section */ /* Begin XCBuildConfiguration section */ + FB1A67F521324EE300507771 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = DM46QST4M7; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + HEADER_SEARCH_PATHS = ( + "moonlight-common-c/enet/include", + "../libs/**", + ); + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = NO; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 11.4; + VALIDATE_PRODUCT = NO; + }; + name = Debug; + }; + FB1A67F621324EE300507771 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CODE_SIGN_STYLE = Automatic; + COPY_PHASE_STRIP = YES; + DEVELOPMENT_TEAM = DM46QST4M7; + GCC_C_LANGUAGE_STANDARD = gnu11; + HEADER_SEARCH_PATHS = ( + "moonlight-common-c/enet/include", + "../libs/**", + ); + MTL_ENABLE_DEBUG_INFO = NO; + ONLY_ACTIVE_ARCH = NO; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = appletvos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = 3; + TVOS_DEPLOYMENT_TARGET = 11.4; + VALIDATE_PRODUCT = NO; + }; + name = Release; + }; FB290E3019B37A4E004C83CF /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -485,6 +666,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + FB1A67F721324EE300507771 /* Build configuration list for PBXNativeTarget "moonlight-common-tv" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + FB1A67F521324EE300507771 /* Debug */, + FB1A67F621324EE300507771 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; FB290E2919B37A4E004C83CF /* Build configuration list for PBXProject "moonlight-common" */ = { isa = XCConfigurationList; buildConfigurations = (