Skip to content

Commit

Permalink
Add podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
kolyuchiy committed Apr 29, 2013
1 parent 4d78174 commit 94d20cb
Show file tree
Hide file tree
Showing 25 changed files with 57 additions and 70 deletions.
File renamed without changes.
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 @@ -52,7 +52,7 @@ - (NSString *)stringWithTimeInterval:(NSTimeInterval)totalSeconds
NSInteger hours = totalSeconds / (60 * 60);
NSInteger minutes = (totalSeconds - hours * 60 * 60) / 60;
CGFloat seconds = MAX(0, (totalSeconds - hours * 60 * 60 - minutes * 60));
return [NSString stringWithFormat:@"%02i:%02i:%06.3f", hours, minutes, seconds];
return [NSString stringWithFormat:@"%02li:%02li:%06.3f", (long)hours, (long)minutes, seconds];
}

@end
7 changes: 7 additions & 0 deletions DVVAST/Classes/DVVAST.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//
// Prefix header for all source files of the 'DVVASTSample' target in the 'DVVASTSample' project
//

#define VAST_LOG 1
#import "DVLog.h"

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ - (BOOL)populateInlineVideoAd:(DVInlineVideoAd *)videoAd withXMLElement:(DDXMLEl
if (!urls.count) {
if (!trackingElement.isEmpty) {
VLogV(trackingElement.stringValue);
NSString *key = [NSString stringWithFormat:@"url-%d", innerDictionary.allKeys.count];
NSString *key = [NSString stringWithFormat:@"url-%lu", (unsigned long)innerDictionary.allKeys.count];
VLogV(key);
innerDictionary[key] = [NSURL URLWithString:trackingElement.stringValue];
}
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.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions DVVAST/DVVAST.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Pod::Spec.new do |s|
s.name = "DVVAST"
s.version = "0.0.1"
s.summary = "IAB VAST ads playback in iOS AVPlayer."
s.homepage = "https://github.com/denivip/ios-vast-player"
s.license = 'MIT'
s.authors = { "Nikolay Morev" => "[email protected]", "StuFF mc" => "[email protected]" }
s.source = { :git => "https://github.com/denivip/ios-vast-player.git", :tag => "v0.0.1" }
s.platform = :ios, '5.0'
s.source_files = 'Classes', 'Classes/**/*.{h,m}'
s.prefix_header_file = 'Classes/DVVAST.pch'
s.frameworks = 'Foundation', 'AVFoundation', 'AudioToolbox', 'CoreMedia', 'CoreGraphics', 'UIKit'
s.library = 'xml2'
s.requires_arc = true
s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
s.dependency 'KissXML'
end
21 changes: 21 additions & 0 deletions DVVAST/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright 2013 DENIVIP Media
https://github.com/denivip/ios-vast-player

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65 changes: 0 additions & 65 deletions DVVASTSample/DVVASTSample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@
E3361BB915D151D2002C1905 /* DVAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BB815D151D2002C1905 /* DVAppDelegate.m */; };
E3361BBC15D151D2002C1905 /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E3361BBA15D151D2002C1905 /* MainStoryboard.storyboard */; };
E3361BBF15D151D2002C1905 /* DVViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BBE15D151D2002C1905 /* DVViewController.m */; };
E3361BC815D15AD3002C1905 /* DVIABPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BC715D15AD3002C1905 /* DVIABPlayer.m */; };
E3361BD015D15F90002C1905 /* DVVideoMultipleAdPlaylist.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BCF15D15F90002C1905 /* DVVideoMultipleAdPlaylist.m */; };
E3361BD315D16040002C1905 /* DVVideoPlayBreak.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BD215D16040002C1905 /* DVVideoPlayBreak.m */; };
E3361BD615D162B5002C1905 /* DVVideoAdServingTemplate.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BD515D162B5002C1905 /* DVVideoAdServingTemplate.m */; };
E3361BDC15D169BD002C1905 /* DVVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BDB15D169BD002C1905 /* DVVideoAd.m */; };
E3361BDF15D16A5A002C1905 /* DVInlineVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BDE15D16A5A002C1905 /* DVInlineVideoAd.m */; };
E3361BE215D16A68002C1905 /* DVWrapperVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BE115D16A67002C1905 /* DVWrapperVideoAd.m */; };
E3361BFB15D171BE002C1905 /* DVVideoAdServingTemplate+Parsing.m in Sources */ = {isa = PBXBuildFile; fileRef = E3361BFA15D171BE002C1905 /* DVVideoAdServingTemplate+Parsing.m */; };
E38381D415D2688C0056C4CE /* DVTimeIntervalFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = E38381D315D2688C0056C4CE /* DVTimeIntervalFormatter.m */; };
E38381D715D26CC40056C4CE /* DVPlayerView.m in Sources */ = {isa = PBXBuildFile; fileRef = E38381D615D26CC40056C4CE /* DVPlayerView.m */; };
E38381DB15D290350056C4CE /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = E38381DA15D290340056C4CE /* Icon.png */; };
E38381DD15D2903B0056C4CE /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = E38381DC15D2903B0056C4CE /* [email protected] */; };
Expand All @@ -38,7 +29,6 @@

/* Begin PBXFileReference section */
089C6176C5AF475EAC1BE890 /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = ../Pods/Pods.xcconfig; sourceTree = SOURCE_ROOT; };
4C2E4BFE16D6188F00E645D9 /* DVLog.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DVLog.h; sourceTree = "<group>"; };
4C47F94816D292B500EFCA8F /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
BEC01DE053E64BCE93E8A4C2 /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
E3361BA415D151D2002C1905 /* DVVASTSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DVVASTSample.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -54,26 +44,8 @@
E3361BBB15D151D2002C1905 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = "<group>"; };
E3361BBD15D151D2002C1905 /* DVViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DVViewController.h; sourceTree = "<group>"; };
E3361BBE15D151D2002C1905 /* DVViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DVViewController.m; sourceTree = "<group>"; };
E3361BC615D15AD3002C1905 /* DVIABPlayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVIABPlayer.h; sourceTree = "<group>"; };
E3361BC715D15AD3002C1905 /* DVIABPlayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVIABPlayer.m; sourceTree = "<group>"; };
E3361BC915D15B06002C1905 /* AVFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AVFoundation.framework; path = System/Library/Frameworks/AVFoundation.framework; sourceTree = SDKROOT; };
E3361BCC15D15E70002C1905 /* CoreMedia.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreMedia.framework; path = System/Library/Frameworks/CoreMedia.framework; sourceTree = SDKROOT; };
E3361BCE15D15F90002C1905 /* DVVideoMultipleAdPlaylist.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVVideoMultipleAdPlaylist.h; sourceTree = "<group>"; };
E3361BCF15D15F90002C1905 /* DVVideoMultipleAdPlaylist.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVVideoMultipleAdPlaylist.m; sourceTree = "<group>"; };
E3361BD115D16040002C1905 /* DVVideoPlayBreak.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVVideoPlayBreak.h; sourceTree = "<group>"; };
E3361BD215D16040002C1905 /* DVVideoPlayBreak.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVVideoPlayBreak.m; sourceTree = "<group>"; };
E3361BD415D162B5002C1905 /* DVVideoAdServingTemplate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVVideoAdServingTemplate.h; sourceTree = "<group>"; };
E3361BD515D162B5002C1905 /* DVVideoAdServingTemplate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVVideoAdServingTemplate.m; sourceTree = "<group>"; };
E3361BDA15D169BD002C1905 /* DVVideoAd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVVideoAd.h; sourceTree = "<group>"; };
E3361BDB15D169BD002C1905 /* DVVideoAd.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVVideoAd.m; sourceTree = "<group>"; };
E3361BDD15D16A5A002C1905 /* DVInlineVideoAd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVInlineVideoAd.h; sourceTree = "<group>"; };
E3361BDE15D16A5A002C1905 /* DVInlineVideoAd.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVInlineVideoAd.m; sourceTree = "<group>"; };
E3361BE015D16A67002C1905 /* DVWrapperVideoAd.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVWrapperVideoAd.h; sourceTree = "<group>"; };
E3361BE115D16A67002C1905 /* DVWrapperVideoAd.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVWrapperVideoAd.m; sourceTree = "<group>"; };
E3361BF915D171BE002C1905 /* DVVideoAdServingTemplate+Parsing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "DVVideoAdServingTemplate+Parsing.h"; sourceTree = "<group>"; };
E3361BFA15D171BE002C1905 /* DVVideoAdServingTemplate+Parsing.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "DVVideoAdServingTemplate+Parsing.m"; sourceTree = "<group>"; };
E38381D215D2688C0056C4CE /* DVTimeIntervalFormatter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVTimeIntervalFormatter.h; sourceTree = "<group>"; };
E38381D315D2688C0056C4CE /* DVTimeIntervalFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVTimeIntervalFormatter.m; sourceTree = "<group>"; };
E38381D515D26CC40056C4CE /* DVPlayerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DVPlayerView.h; sourceTree = "<group>"; };
E38381D615D26CC40056C4CE /* DVPlayerView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DVPlayerView.m; sourceTree = "<group>"; };
E38381D815D270020056C4CE /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -111,7 +83,6 @@
E38381DC15D2903B0056C4CE /* [email protected] */,
E38381DA15D290340056C4CE /* Icon.png */,
E3361BAE15D151D2002C1905 /* DVVASTSample */,
E3361BC515D15A96002C1905 /* Classes */,
E3361BA715D151D2002C1905 /* Frameworks */,
E3361BA515D151D2002C1905 /* Products */,
089C6176C5AF475EAC1BE890 /* Pods.xcconfig */,
Expand Down Expand Up @@ -167,33 +138,6 @@
name = "Supporting Files";
sourceTree = "<group>";
};
E3361BC515D15A96002C1905 /* Classes */ = {
isa = PBXGroup;
children = (
E3361BC615D15AD3002C1905 /* DVIABPlayer.h */,
E3361BC715D15AD3002C1905 /* DVIABPlayer.m */,
E3361BCE15D15F90002C1905 /* DVVideoMultipleAdPlaylist.h */,
E3361BCF15D15F90002C1905 /* DVVideoMultipleAdPlaylist.m */,
E3361BD115D16040002C1905 /* DVVideoPlayBreak.h */,
E3361BD215D16040002C1905 /* DVVideoPlayBreak.m */,
E3361BD415D162B5002C1905 /* DVVideoAdServingTemplate.h */,
E3361BD515D162B5002C1905 /* DVVideoAdServingTemplate.m */,
E3361BDA15D169BD002C1905 /* DVVideoAd.h */,
E3361BDB15D169BD002C1905 /* DVVideoAd.m */,
E3361BDD15D16A5A002C1905 /* DVInlineVideoAd.h */,
E3361BDE15D16A5A002C1905 /* DVInlineVideoAd.m */,
E3361BE015D16A67002C1905 /* DVWrapperVideoAd.h */,
E3361BE115D16A67002C1905 /* DVWrapperVideoAd.m */,
E3361BF915D171BE002C1905 /* DVVideoAdServingTemplate+Parsing.h */,
E3361BFA15D171BE002C1905 /* DVVideoAdServingTemplate+Parsing.m */,
E38381D215D2688C0056C4CE /* DVTimeIntervalFormatter.h */,
E38381D315D2688C0056C4CE /* DVTimeIntervalFormatter.m */,
4C2E4BFE16D6188F00E645D9 /* DVLog.h */,
);
name = Classes;
path = ../Classes;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -299,15 +243,6 @@
E3361BB515D151D2002C1905 /* main.m in Sources */,
E3361BB915D151D2002C1905 /* DVAppDelegate.m in Sources */,
E3361BBF15D151D2002C1905 /* DVViewController.m in Sources */,
E3361BC815D15AD3002C1905 /* DVIABPlayer.m in Sources */,
E3361BD015D15F90002C1905 /* DVVideoMultipleAdPlaylist.m in Sources */,
E3361BD315D16040002C1905 /* DVVideoPlayBreak.m in Sources */,
E3361BD615D162B5002C1905 /* DVVideoAdServingTemplate.m in Sources */,
E3361BDC15D169BD002C1905 /* DVVideoAd.m in Sources */,
E3361BDF15D16A5A002C1905 /* DVInlineVideoAd.m in Sources */,
E3361BE215D16A68002C1905 /* DVWrapperVideoAd.m in Sources */,
E3361BFB15D171BE002C1905 /* DVVideoAdServingTemplate+Parsing.m in Sources */,
E38381D415D2688C0056C4CE /* DVTimeIntervalFormatter.m in Sources */,
E38381D715D26CC40056C4CE /* DVPlayerView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
4 changes: 2 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
platform :ios
platform :ios, '5.0'
xcodeproj 'DVVASTSample/DVVASTSample.xcodeproj'
pod 'KissXML'
pod 'DVVAST', :local => 'DVVAST'
9 changes: 8 additions & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
PODS:
- DVVAST (0.0.1):
- KissXML
- KissXML (5.0)

DEPENDENCIES:
- KissXML
- DVVAST (from `DVVAST`)

EXTERNAL SOURCES:
DVVAST:
:local: DVVAST

SPEC CHECKSUMS:
DVVAST: 280dbd585c631a95d326874e10a3d316f8ab7444
KissXML: 8dfe0fb6d4e987fec63656ff07d5e697f49976f8

COCOAPODS: 0.18.1

0 comments on commit 94d20cb

Please sign in to comment.