From 1ccabf572111232801d47983d4125519bfbb1f30 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 13 Nov 2016 23:01:03 -0500 Subject: [PATCH] update mac project --- .../Emby.Server.Mac.csproj | 165 +----------------- MediaBrowser.Server.Mac/MacAppHost.cs | 10 ++ MediaBrowser.Server.Mac/Native/NativeApp.cs | 46 ----- .../Native/NetworkManager.cs | 50 ------ 4 files changed, 12 insertions(+), 259 deletions(-) create mode 100644 MediaBrowser.Server.Mac/MacAppHost.cs delete mode 100644 MediaBrowser.Server.Mac/Native/NativeApp.cs delete mode 100644 MediaBrowser.Server.Mac/Native/NetworkManager.cs diff --git a/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj b/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj index 6995a5bece..56c7caad4d 100644 --- a/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj +++ b/MediaBrowser.Server.Mac/Emby.Server.Mac.csproj @@ -104,7 +104,6 @@ - @@ -115,69 +114,17 @@ AppController.cs - - SharedVersion.cs - - Native\CertificateGenerator.cs - - + Native\SqliteExtensions.cs - - Security\ASN1.cs - - - Security\ASN1Convert.cs - - - Security\BitConverterLE.cs - - - Security\CryptoConvert.cs - - - Security\PKCS1.cs - - - Security\PKCS12.cs - - - Security\PKCS7.cs - - - Security\PKCS8.cs - - - Security\X501Name.cs - - - Security\X509Builder.cs - - - Security\X509Certificate.cs - - - Security\X509CertificateBuilder.cs - - - Security\X509CertificateCollection.cs - - - Security\X509Extension.cs - - - Security\X509Extensions.cs - - - Security\X520Attributes.cs - + @@ -264,114 +211,6 @@ - - Resources\swagger-ui\index.html - - - Resources\swagger-ui\o2c.html - - - Resources\swagger-ui\patch.js - - - Resources\swagger-ui\swagger-ui.js - - - Resources\swagger-ui\swagger-ui.min.js - - - Resources\swagger-ui\css\reset.css - - - Resources\swagger-ui\css\screen.css - - - Resources\swagger-ui\css\typography.css - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-700.eot - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-700.svg - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-700.ttf - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-700.woff - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-700.woff2 - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-regular.eot - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-regular.svg - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-regular.ttf - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-regular.woff - - - Resources\swagger-ui\fonts\droid-sans-v6-latin-regular.woff2 - - - Resources\swagger-ui\images\explorer_icons.png - - - Resources\swagger-ui\images\logo_small.png - - - Resources\swagger-ui\images\pet_store_api.png - - - Resources\swagger-ui\images\throbber.gif - - - Resources\swagger-ui\images\wordnik_api.png - - - Resources\swagger-ui\lib\backbone-min.js - - - Resources\swagger-ui\lib\handlebars-2.0.0.js - - - Resources\swagger-ui\lib\highlight.7.3.pack.js - - - Resources\swagger-ui\lib\jquery-1.8.0.min.js - - - Resources\swagger-ui\lib\jquery.ba-bbq.min.js - - - Resources\swagger-ui\lib\jquery.slideto.min.js - - - Resources\swagger-ui\lib\jquery.wiggle.min.js - - - Resources\swagger-ui\lib\marked.js - - - Resources\swagger-ui\lib\shred.bundle.js - - - Resources\swagger-ui\lib\swagger-client.js - - - Resources\swagger-ui\lib\swagger-oauth.js - - - Resources\swagger-ui\lib\underscore-min.js - - - Resources\swagger-ui\lib\shred\content.js - Resources\dashboard-ui\about.html diff --git a/MediaBrowser.Server.Mac/MacAppHost.cs b/MediaBrowser.Server.Mac/MacAppHost.cs new file mode 100644 index 0000000000..352cd34bbe --- /dev/null +++ b/MediaBrowser.Server.Mac/MacAppHost.cs @@ -0,0 +1,10 @@ +using System; +namespace MediaBrowser.Server.Mac +{ + public class MacAppHost + { + public MacAppHost() + { + } + } +} diff --git a/MediaBrowser.Server.Mac/Native/NativeApp.cs b/MediaBrowser.Server.Mac/Native/NativeApp.cs deleted file mode 100644 index 59fa92dd18..0000000000 --- a/MediaBrowser.Server.Mac/Native/NativeApp.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using MediaBrowser.Server.Startup.Common; -using MediaBrowser.Model.Logging; - -namespace MediaBrowser.Server.Mac -{ - /// - /// Class NativeApp - /// - public class NativeApp : BaseMonoApp - { - public NativeApp(ILogger logger) - : base(logger) - { - } - - /// - /// Shutdowns this instance. - /// - public override void Shutdown() - { - MainClass.Shutdown(); - } - - /// - /// Determines whether this instance [can self restart]. - /// - /// true if this instance can self restart; otherwise, false. - public override bool CanSelfRestart - { - get - { - return true; - } - } - - /// - /// Restarts this instance. - /// - public override void Restart(StartupOptions options) - { - MainClass.Restart(); - } - } -} - diff --git a/MediaBrowser.Server.Mac/Native/NetworkManager.cs b/MediaBrowser.Server.Mac/Native/NetworkManager.cs deleted file mode 100644 index 959ac6774a..0000000000 --- a/MediaBrowser.Server.Mac/Native/NetworkManager.cs +++ /dev/null @@ -1,50 +0,0 @@ -using MediaBrowser.Common.Implementations.Networking; -using MediaBrowser.Common.Net; -using MediaBrowser.Model.IO; -using MediaBrowser.Model.Logging; -using MediaBrowser.Model.Net; -using System.Collections.Generic; -using MediaBrowser.Server.Mono.Networking; - -namespace MediaBrowser.Server.Mac -{ - /// - /// Class NetUtils - /// - public class NetworkManager : BaseNetworkManager, INetworkManager - { - public NetworkManager(ILogger logger) - : base(logger) - { - } - - /// - /// Gets the network shares. - /// - /// The path. - /// IEnumerable{NetworkShare}. - public IEnumerable GetNetworkShares(string path) - { - return new List (); - } - - /// - /// Gets available devices within the domain - /// - /// PC's in the Domain - public IEnumerable GetNetworkDevices() - { - return new List (); - } - - /// - /// Generates a self signed certificate at the locatation specified by . - /// - /// The path to generate the certificate. - /// The common name for the certificate. - public void GenerateSelfSignedSslCertificate(string certificatePath, string hostname) - { - CertificateGenerator.CreateSelfSignCertificatePfx(certificatePath, hostname, Logger); - } - } -}