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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ docs/
# Fastlane
fastlane/report.xml
fastlane/test_output
Carthage
.DS_Store
6 changes: 6 additions & 0 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

github "drekka/Ono" "develop"

github "robbiehanson/CocoaAsyncSocket"
github "AFNetworking/AFNetworking"
github "swisspol/GCDWebServer"
4 changes: 4 additions & 0 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github "AFNetworking/AFNetworking" "3.1.0"
github "robbiehanson/CocoaAsyncSocket" "7.4.3"
github "swisspol/GCDWebServer" "3.3.2"
github "drekka/Ono" "67259eb5ed591564149156d88eee38a4669fb183"
659 changes: 659 additions & 0 deletions CocoaUPnP.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

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

80 changes: 80 additions & 0 deletions CocoaUPnP.xcodeproj/xcshareddata/xcschemes/CocoaUPnP.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0730"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6CA6C7711D06ED8700BA8CF1"
BuildableName = "CocoaUPnP.framework"
BlueprintName = "CocoaUPnP"
ReferencedContainer = "container:CocoaUPnP.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6CA6C7711D06ED8700BA8CF1"
BuildableName = "CocoaUPnP.framework"
BlueprintName = "CocoaUPnP"
ReferencedContainer = "container:CocoaUPnP.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6CA6C7711D06ED8700BA8CF1"
BuildableName = "CocoaUPnP.framework"
BlueprintName = "CocoaUPnP"
ReferencedContainer = "container:CocoaUPnP.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
8 changes: 7 additions & 1 deletion CocoaUPnP/CocoaUPnP.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

#import <Foundation/Foundation.h>

//! Project version number for CocoaUPnP.
FOUNDATION_EXPORT double CocoaUPnPVersionNumber;

//! Project version string for CocoaUPnP.
FOUNDATION_EXPORT const unsigned char CocoaUPnPVersionString[];

// Events
#import "UPPEventServer.h"
#import "UPPEventSubscription.h"
Expand Down Expand Up @@ -35,7 +41,7 @@
#import "UPPBaseParser.h"
#import "UPPDeviceParser.h"
#import "UPPErrorParser.h"
#import "UPPLastChangeParser.h"
//#import "UPPLastChangeParser.h"
#import "UPPMediaItemParser.h"
#import "UPPResponseParser.h"

Expand Down
2 changes: 1 addition & 1 deletion CocoaUPnP/Events/UPPEventServer.h
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/GCDWebServer.h>

/**
A delegate protocol for recieving parsed UPnP events.
Expand Down
2 changes: 1 addition & 1 deletion CocoaUPnP/Events/UPPEventServer.m
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/GCDWebServers.h>
#import "UPPLastChangeParser.h"

const NSUInteger UPPEventServerPort = 54123;
Expand Down
2 changes: 2 additions & 0 deletions CocoaUPnP/Events/UPPEventSubscriptionManager.m
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 UIKit;

#import "UPPEventSubscriptionManager.h"
#import "UPPBasicService.h"
#import "UPPEventSubscription.h"
Expand Down
2 changes: 2 additions & 0 deletions CocoaUPnP/Models/UPPConstants.m
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;

#import "UPPConstants.h"

NSString * const UPPSOAPActionKey = @"SoapAction";
Expand Down
8 changes: 5 additions & 3 deletions CocoaUPnP/Networking/SSDP/SSDPServiceBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
// Expanded for CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.

@import UIKit;

#import "SSDPServiceBrowser.h"

#import "GCDAsyncUdpSocket.h"
#import <CocoaAsyncSocket/CocoaAsyncSocket.h>
#import "SSDPService.h"

#import <ifaddrs.h>
Expand Down Expand Up @@ -139,8 +141,8 @@ - (GCDAsyncUdpSocket *)unicastSocket
{
if (!_unicastSocket) {
_unicastSocket = [[GCDAsyncUdpSocket alloc]
initWithDelegate:self
delegateQueue:dispatch_get_main_queue()];
initWithDelegate:self
delegateQueue:dispatch_get_main_queue()];
}
return _unicastSocket;
}
Expand Down
5 changes: 3 additions & 2 deletions CocoaUPnP/Parsers/UPPDeviceParser.m
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// CocoaUPnP by A&R Cambridge Ltd, http://www.arcam.co.uk
// Copyright 2015 Arcam. See LICENSE file.

#import <Ono/Ono.h>
#import <AFNetworking/AFNetworking.h>

#import "UPPDeviceParser.h"
#import "UPPBasicDevice.h"
#import "Ono.h"
#import "UPPDeviceIcon.h"
#import "UPPServiceDescription.h"
#import "UPPError.h"
#import "AFHTTPSessionManager.h"
#import "UPPRequestSerializer.h"
#import "UPPMediaRendererDevice.h"
#import "UPPMediaServerDevice.h"
Expand Down
2 changes: 1 addition & 1 deletion CocoaUPnP/Parsers/UPPErrorParser.m
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/Ono.h>

@implementation UPPErrorParser

Expand Down
4 changes: 2 additions & 2 deletions CocoaUPnP/Parsers/UPPLastChangeParser.m
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/Ono.h>
#import "UPPError.h"
#import "UPPMediaItemParser.h"

Expand Down Expand Up @@ -50,7 +50,7 @@ + (void)parseData:(NSData *)data completion:(void (^)(NSDictionary *event, NSErr
if (value.length == 0) {
value = [element stringValue];
}

if (tag && value) {
responseDictionary[tag] = value;
}
Expand Down
2 changes: 1 addition & 1 deletion CocoaUPnP/Parsers/UPPMediaItemParser.m
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/Ono.h>
#import "UPPMediaItem.h"
#import "UPPMediaItemResource.h"
#import "UPPError.h"
Expand Down
2 changes: 1 addition & 1 deletion CocoaUPnP/Parsers/UPPResponseParser.m
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/Ono.h>
#import "UPPError.h"
#import "UPPMediaItemParser.h"

Expand Down
26 changes: 26 additions & 0 deletions Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# CocoaUPnP

[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Build Status](https://travis-ci.org/arcam/CocoaUPnP.svg)](https://travis-ci.org/arcam/CocoaUPnP)
[![Coverage Status](https://coveralls.io/repos/arcam/CocoaUPnP/badge.svg)](https://coveralls.io/r/arcam/CocoaUPnP)
[![Pod Version](https://img.shields.io/cocoapods/v/CocoaUPnP.svg)](http://cocoadocs.org/docsets/CocoaUPnP/)
Expand Down
4 changes: 4 additions & 0 deletions module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module CocoaUPnP {
umbrella header "Headers/CocoaUPnP.h"
requires objc_arc
}
4 changes: 4 additions & 0 deletions module.private.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
explicit module CocoaUPnP.Private {
umbrella "PrivateHeaders"
requires objc_arc
}