Commit 216ca084 authored by Dmitriy Grachev's avatar Dmitriy Grachev Committed by Felix Paul Kühne

DynamicMobileVLCKit: add missing headers and add to tests

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <felix@feepk.net>
parent 97b0b342
......@@ -36,15 +36,16 @@ jobs:
name: Run Tests
command: |
rake test:ios
rake test:ios_dynamic
rake test:tv
rake test:mac
- run:
name: Generate Coverage Reports
command: |
rake codecov:ios
rake codecov:ios_dynamic
rake codecov:tv
rake codecov:mac
- store_artifacts:
path: Tests/Coverage
destination: Coverage
......@@ -39,9 +39,11 @@ FOUNDATION_EXPORT const unsigned char DynamicMobileVLCKitVersionString[];
#import <DynamicMobileVLCKit/VLCMediaPlayer.h>
#import <DynamicMobileVLCKit/VLCMediaListPlayer.h>
#import <DynamicMobileVLCKit/VLCMediaThumbnailer.h>
#import <DynamicMobileVLCKit/VLCDialogProvider.h>
#import <DynamicMobileVLCKit/VLCTime.h>
#import <DynamicMobileVLCKit/VLCTranscoder.h>
#import <DynamicMobileVLCKit/VLCDialogProvider.h>
#import <DynamicMobileVLCKit/VLCRendererDiscoverer.h>
#import <DynamicMobileVLCKit/VLCRendererItem.h>
@class VLCMedia;
@class VLCMediaLibrary;
......@@ -53,3 +55,6 @@ FOUNDATION_EXPORT const unsigned char DynamicMobileVLCKitVersionString[];
@class VLCMediaListPlayer;
@class VLCMediaPlayer;
@class VLCDialogProvider;
@class VLCRendererDiscoverer;
@class VLCRendererDiscovererDescription;
@class VLCRendererItem;
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "ED25609D21F3AA4600396F9B"
BuildableName = "DynamicMobileVLCKitTests.xctest"
BlueprintName = "DynamicMobileVLCKitTests"
ReferencedContainer = "container:MobileVLCKit.xcodeproj">
</BuildableReference>
</TestableReference>
</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">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
......@@ -34,6 +34,7 @@ SDK_SIM_DEST_TV = "'platform=tvOS Simulator,name=Apple TV,OS=11.3'"
SDK_SIM_DEST_MAC = "'platform=OS X,arch=x86_64'"
SCHEME_IOS = 'MobileVLCKitTests'
SCHEME_IOS_DYNAMIC = 'DynamicMobileVLCKitTests'
SCHEME_TV = 'TVVLCKitTests'
SCHEME_MAC = 'VLCKitTests'
......@@ -96,6 +97,12 @@ task 'test:ios' do
sh "xcodebuild -derivedDataPath #{DERIVED_DATA_PATH}/#{SCHEME_IOS} -project #{PROJECT_IOS} -scheme #{SCHEME_IOS} -sdk #{SDK_SIM_IOS} -destination #{SDK_SIM_DEST_IOS} test | #{XCPRETTY}"
end
desc 'Run DynamicMobileVLCKit tests'
task 'test:ios_dynamic' do
puts 'Running tests for DynamicMobileVLCKit'
sh "xcodebuild -derivedDataPath #{DERIVED_DATA_PATH}/#{SCHEME_IOS_DYNAMIC} -project #{PROJECT_IOS} -scheme #{SCHEME_IOS_DYNAMIC} -sdk #{SDK_SIM_IOS} -destination #{SDK_SIM_DEST_IOS} -UseModernBuildSystem=NO test | #{XCPRETTY}"
end
desc 'Run TVVLCKit tests'
task 'test:tv' do
puts 'Running tests for TVVLCKit'
......@@ -114,6 +121,12 @@ task 'codecov:ios' do
generate_coverage(SCHEME_IOS)
end
desc 'Generate DynamicMobileVLCKit coverage reports'
task 'codecov:ios_dynamic' do
puts 'Generating DynamicMobileVLCKit code coverage reports'
generate_coverage(SCHEME_IOS_DYNAMIC)
end
desc 'Generate TVVLCKit code coverage reports'
task 'codecov:tv' do
puts 'Generating TVVLCKit code coverage reports'
......
#import <DynamicMobileVLCKit/DynamicMobileVLCKit.h>
<?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>$(DEVELOPMENT_LANGUAGE)</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>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
......@@ -32,7 +32,7 @@ struct Video {
#if os(OSX)
let bundle = Bundle(identifier: "org.videolan.VLCKitTests")!
#elseif os(iOS)
let bundle = Bundle(identifier: "org.videolan.MobileVLCKitTests")!
let bundle = Bundle(identifier: "org.videolan.MobileVLCKitTests") != nil ? Bundle(identifier: "org.videolan.MobileVLCKitTests")! : Bundle(identifier: "org.videolan.DynamicMobileVLCKitTests")!
#elseif os(tvOS)
let bundle = Bundle(identifier: "org.videolan.TVVLCKitTests")!
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment