Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@ docs/
# Fastlane
fastlane/report.xml
fastlane/test_output

# macOS
.DS_Store

# SwiftPM
.build
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2016 Arcam. See LICENSE file.

#import <Ono/Ono.h>
@import Ono;

@interface ONOXMLElement (StringValueOrNil)
- (NSString *)stringValueOrNil;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2016 Arcam. See LICENSE file.

#import "ONOXMLDocument+StringValueOrNil.h"
@import Ono;

@implementation ONOXMLElement (StringValueOrNil)
- (NSString *)stringValueOrNil {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// Copyright 2015 Arcam. See LICENSE file.

#import <Foundation/Foundation.h>
#import <CocoaAsyncSocket/GCDAsyncUdpSocket.h>
@import CocoaAsyncSocket;

@class SSDPServiceBrowser;
@class SSDPService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@

#import "SSDPServiceBrowser.h"

#import "GCDAsyncUdpSocket.h"
@import GCDWebServers;
#import "SSDPService.h"

#import <ifaddrs.h>
#import <sys/socket.h>
#import <net/if.h>
#import <arpa/inet.h>
#import <UIKit/UIKit.h>

NSString * const SSDPMulticastGroupAddress = @"239.255.255.250";
const UInt16 SSDPMulticastUDPPort = 1900;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions CocoaUPnP/Models/UPPConstants.h → CocoaUPnP/UPPConstants.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.

#import <Foundation/Foundation.h>

extern NSString * const UPPSOAPActionKey;
extern NSString * const UPPNameSpaceKey;
extern NSString * const UPPParametersKey;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

#import "UPPDeviceParser.h"
#import "UPPBasicDevice.h"
#import "Ono.h"
@import Ono;
#import "UPPDeviceIcon.h"
#import "UPPServiceDescription.h"
#import "UPPError.h"
#import "AFHTTPSessionManager.h"
@import AFNetworking;
#import "UPPRequestSerializer.h"
#import "UPPMediaRendererDevice.h"
#import "UPPMediaServerDevice.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#import "UPPErrorParser.h"
#import "UPPError.h"
#import "Ono.h"
@import Ono;

@implementation UPPErrorParser

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright 2015 Arcam. See LICENSE file.

#import <Foundation/Foundation.h>
#import <GCDWebServer/GCDWebServer.h>
@import GCDWebServers;

/**
A delegate protocol for recieving parsed UPnP events.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright 2015 Arcam. See LICENSE file.

#import "UPPEventServer.h"
#import "GCDWebServerDataRequest.h"
@import GCDWebServers;
#import "UPPLastChangeParser.h"

const NSUInteger UPPEventServerPort = 54123;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.

#import <UIKit/UIKit.h>
#import "UPPEventSubscriptionManager.h"
#import "UPPBasicService.h"
#import "UPPEventSubscription.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright 2015 Arcam. See LICENSE file.

#import "UPPLastChangeParser.h"
#import "Ono.h"
@import Ono;
#import "UPPError.h"
#import "UPPMediaItemParser.h"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright 2015 Arcam. See LICENSE file.

#import "UPPMediaItemParser.h"
#import "Ono.h"
@import Ono;
#import "UPPMediaItem.h"
#import "UPPMediaItemResource.h"
#import "UPPError.h"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.

#import <AFNetworking/AFURLRequestSerialization.h>
@import AFNetworking;

/**
This class serves as a base class for serialising SOAP requests
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright 2015 Arcam. See LICENSE file.

#import "UPPResponseParser.h"
#import "Ono.h"
@import Ono;
#import "UPPError.h"
#import "UPPMediaItemParser.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.

#import <AFNetworking/AFURLResponseSerialization.h>
@import AFNetworking;

@class UPPResponseParser;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.

#import <AFNetworking/AFHTTPSessionManager.h>
@import AFNetworking;

@interface UPPSessionManager : AFHTTPSessionManager

Expand Down
File renamed without changes.
4 changes: 1 addition & 3 deletions CocoaUPnPTests/Events/UPPEventServerSpec.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

#import <OCMock/OCMock.h>
#import <CocoaUPnP/CocoaUPnP.h>
#import <GCDWebServer/GCDWebServerDataRequest.h>
#import <GCDWebServer/GCDWebServerFunctions.h>
#import <GCDWebServer/GCDWebServer.h>
@import GCDWebServers;
#import "TestHelpers.h"

SpecBegin(UPPEventServer)
Expand Down
2 changes: 1 addition & 1 deletion CocoaUPnPTests/Parsers/UPPMediaItemParserSpec.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#import "Specta.h"
#import <CocoaUPnP/CocoaUPnP.h>
#import <Ono/Ono.h>
@import Ono;

SpecBegin(UPPMediaItemParser)

Expand Down
43 changes: 43 additions & 0 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// swift-tools-version:5.4
import PackageDescription

let package = Package(
name: "CocoaUPnP",
platforms: [.tvOS(.v12), .iOS(.v12)],
products: [.library(name: "CocoaUPnP", targets: ["CocoaUPnP"])],
dependencies: [
// A delightful networking framework for iOS, macOS, watchOS, and tvOS.
.package(name: "AFNetworking", url: "https://github.com/AFNetworking/AFNetworking.git", .upToNextMajor(from: "4.0.1")),

// Asynchronous socket networking library for Mac and iOS
.package(name: "CocoaAsyncSocket", url: "https://github.com/robbiehanson/CocoaAsyncSocket.git", .upToNextMajor(from: "7.6.5")),

// The #1 HTTP server for iOS, macOS & tvOS (also includes web based uploader & WebDAV server)
.package(name: "GCDWebServers", url: "https://github.com/nostradani/GCDWebServer.git", .branch("master")),

// A sensible way to deal with XML & HTML for iOS & macOS
.package(name: "Ono", url: "https://github.com/jay18001/Ono.git", .branch("master")),
],
targets: [
.target(
name: "CocoaUPnP",
dependencies: [
"AFNetworking",
"CocoaAsyncSocket",
"GCDWebServers",
"Ono",
],
path: "CocoaUPnP",
publicHeadersPath: ""
),
]
)