diff --git a/.travis.yml b/.travis.yml index 3a7f1e1..8e7a3a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: swift -osx_image: xcode11 +osx_image: xcode12 before_install: - gem install cocoapods # Since Travis is not always on latest version - pod repo update diff --git a/DownloadToGo.podspec b/DownloadToGo.podspec index d1056cc..2c88c71 100644 --- a/DownloadToGo.podspec +++ b/DownloadToGo.podspec @@ -1,4 +1,4 @@ -suffix = '-dev' # Dev mode +suffix = '.0000' # Dev mode # suffix = '' # Release Pod::Spec.new do |s| @@ -11,13 +11,13 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/kaltura/playkit-ios-dtg.git', :tag => s.version.to_s } s.swift_version = '5.0' - s.ios.deployment_target = '9.0' + s.ios.deployment_target = '10.0' s.source_files = 'Sources/**/*' - s.dependency 'M3U8Kit', '0.4.1' + s.dependency 'M3U8Kit', '1.0.0' s.dependency 'GCDWebServer', '~> 3.5.4' - s.dependency 'RealmSwift', '~> 5.2.0' + s.dependency 'RealmSwift', '~> 10.2.0' s.dependency 'XCGLogger', '~> 7.0.0' - s.dependency 'PlayKitUtils', '~> 0.4.0' + s.dependency 'PlayKitUtils', '~> 0.5' end diff --git a/Example/DownloadToGo.xcodeproj/project.pbxproj b/Example/DownloadToGo.xcodeproj/project.pbxproj index e30623f..1593ab6 100644 --- a/Example/DownloadToGo.xcodeproj/project.pbxproj +++ b/Example/DownloadToGo.xcodeproj/project.pbxproj @@ -10,13 +10,12 @@ 20AD661C1F174B0900E8E6D7 /* VideoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20AD661B1F174B0900E8E6D7 /* VideoViewController.swift */; }; 20AD661E1F17A30C00E8E6D7 /* TracksViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20AD661D1F17A30C00E8E6D7 /* TracksViewController.swift */; }; 20EEC25B1F28DA3600535A42 /* Resources in Resources */ = {isa = PBXBuildFile; fileRef = 20EEC25A1F28DA3600535A42 /* Resources */; }; - 31B58A160A6E09BB7C2ED5FF /* Pods_DownloadToGo_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BA4F3EDA67A5435C5B8522DC /* Pods_DownloadToGo_Tests.framework */; }; - 403D41C56B9FFDF0B83F5774 /* Pods_DownloadToGo_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B402B6E39A3C14EF02EE7E7A /* Pods_DownloadToGo_Example.framework */; }; 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; + 7682C732E8158A1502B523B3 /* Pods_DownloadToGo_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1F33406AEBCFA6A792F5A8B0 /* Pods_DownloadToGo_Example.framework */; }; CA0AA135222D198700FFF90F /* DownloadTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA0AA134222D198700FFF90F /* DownloadTest.swift */; }; CA0AA138223021D900FFF90F /* items.json in Resources */ = {isa = PBXBuildFile; fileRef = CA0AA137223021BE00FFF90F /* items.json */; }; CAB012E1206CCBC400EB3F69 /* Samples.swift in Sources */ = {isa = PBXBuildFile; fileRef = CAB012E0206CCBC400EB3F69 /* Samples.swift */; }; @@ -24,6 +23,7 @@ CAD71F5A223E99CC0074CBA4 /* TestTools.swift in Sources */ = {isa = PBXBuildFile; fileRef = CAD71F58223E99CC0074CBA4 /* TestTools.swift */; }; CAD71F5C223EDAA40074CBA4 /* XCTestTools.swift in Sources */ = {isa = PBXBuildFile; fileRef = CAD71F5B223EDAA40074CBA4 /* XCTestTools.swift */; }; CAE8915B222BC015004ACD30 /* HLSLocalizerTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = CAE8915A222BC015004ACD30 /* HLSLocalizerTest.swift */; }; + ED265AF44B48D820B466C6C6 /* Pods_DownloadToGo_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B0AE07163B930CE1E3B96E4F /* Pods_DownloadToGo_Tests.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -37,10 +37,12 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ + 1F33406AEBCFA6A792F5A8B0 /* Pods_DownloadToGo_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DownloadToGo_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 20AD661B1F174B0900E8E6D7 /* VideoViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VideoViewController.swift; sourceTree = ""; }; 20AD661D1F17A30C00E8E6D7 /* TracksViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TracksViewController.swift; sourceTree = ""; }; 20EEC25A1F28DA3600535A42 /* Resources */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Resources; sourceTree = ""; }; 25C82E71DD5DC2FA8D73C02C /* DownloadToGo.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = DownloadToGo.podspec; path = ../DownloadToGo.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; + 39F42AD4766EA896C2DA1406 /* Pods-DownloadToGo_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DownloadToGo_Tests.debug.xcconfig"; path = "Target Support Files/Pods-DownloadToGo_Tests/Pods-DownloadToGo_Tests.debug.xcconfig"; sourceTree = ""; }; 607FACD01AFB9204008FA782 /* DownloadToGo_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = DownloadToGo_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; @@ -51,19 +53,18 @@ 607FACE51AFB9204008FA782 /* DownloadToGo_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DownloadToGo_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 7F3B47A466BC8A36FE06F00A /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; - 8031456F9885A9779A8DB1CA /* Pods-DownloadToGo_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DownloadToGo_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-DownloadToGo_Example/Pods-DownloadToGo_Example.release.xcconfig"; sourceTree = ""; }; - 851B12624AD642C17B82940E /* Pods-DownloadToGo_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DownloadToGo_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-DownloadToGo_Tests/Pods-DownloadToGo_Tests.debug.xcconfig"; sourceTree = ""; }; - B402B6E39A3C14EF02EE7E7A /* Pods_DownloadToGo_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DownloadToGo_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - BA4F3EDA67A5435C5B8522DC /* Pods_DownloadToGo_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DownloadToGo_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9F242F8921C273FFE51407F4 /* Pods-DownloadToGo_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DownloadToGo_Tests.release.xcconfig"; path = "Target Support Files/Pods-DownloadToGo_Tests/Pods-DownloadToGo_Tests.release.xcconfig"; sourceTree = ""; }; + A480A7049C4E302C8820BD6F /* Pods-DownloadToGo_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DownloadToGo_Example.release.xcconfig"; path = "Target Support Files/Pods-DownloadToGo_Example/Pods-DownloadToGo_Example.release.xcconfig"; sourceTree = ""; }; + B0AE07163B930CE1E3B96E4F /* Pods_DownloadToGo_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_DownloadToGo_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; CA0AA134222D198700FFF90F /* DownloadTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DownloadTest.swift; sourceTree = ""; }; CA0AA137223021BE00FFF90F /* items.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = items.json; sourceTree = ""; }; CAB012E0206CCBC400EB3F69 /* Samples.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Samples.swift; sourceTree = ""; }; CAD71F58223E99CC0074CBA4 /* TestTools.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestTools.swift; sourceTree = ""; }; CAD71F5B223EDAA40074CBA4 /* XCTestTools.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = XCTestTools.swift; path = Tests/XCTestTools.swift; sourceTree = SOURCE_ROOT; }; CAE8915A222BC015004ACD30 /* HLSLocalizerTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HLSLocalizerTest.swift; sourceTree = ""; }; - DC9E0E3C7F4B72EB61E261A5 /* Pods-DownloadToGo_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DownloadToGo_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-DownloadToGo_Example/Pods-DownloadToGo_Example.debug.xcconfig"; sourceTree = ""; }; + D2D85CCC257E530700404968 /* DownloadToGo_Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DownloadToGo_Example.entitlements; sourceTree = ""; }; + E8EC757AE916A4C0E6136AD0 /* Pods-DownloadToGo_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DownloadToGo_Example.debug.xcconfig"; path = "Target Support Files/Pods-DownloadToGo_Example/Pods-DownloadToGo_Example.debug.xcconfig"; sourceTree = ""; }; EBD962729B0E7C93B9B967A2 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; - FF783C19E218DACD10E71B6F /* Pods-DownloadToGo_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-DownloadToGo_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-DownloadToGo_Tests/Pods-DownloadToGo_Tests.release.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -71,7 +72,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 403D41C56B9FFDF0B83F5774 /* Pods_DownloadToGo_Example.framework in Frameworks */, + 7682C732E8158A1502B523B3 /* Pods_DownloadToGo_Example.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -79,18 +80,18 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 31B58A160A6E09BB7C2ED5FF /* Pods_DownloadToGo_Tests.framework in Frameworks */, + ED265AF44B48D820B466C6C6 /* Pods_DownloadToGo_Tests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 554887763E034356B4C8131D /* Frameworks */ = { + 5484C55D8B8D12BB3987561C /* Frameworks */ = { isa = PBXGroup; children = ( - B402B6E39A3C14EF02EE7E7A /* Pods_DownloadToGo_Example.framework */, - BA4F3EDA67A5435C5B8522DC /* Pods_DownloadToGo_Tests.framework */, + 1F33406AEBCFA6A792F5A8B0 /* Pods_DownloadToGo_Example.framework */, + B0AE07163B930CE1E3B96E4F /* Pods_DownloadToGo_Tests.framework */, ); name = Frameworks; sourceTree = ""; @@ -98,12 +99,13 @@ 607FACC71AFB9204008FA782 = { isa = PBXGroup; children = ( + D2D85CCC257E530700404968 /* DownloadToGo_Example.entitlements */, 607FACF51AFB993E008FA782 /* Podspec Metadata */, 607FACD21AFB9204008FA782 /* Example for DownloadToGo */, 607FACE81AFB9204008FA782 /* Tests */, 607FACD11AFB9204008FA782 /* Products */, - 7B25B1326D8AE9F39DD4FD26 /* Pods */, - 554887763E034356B4C8131D /* Frameworks */, + 8D6F032695F1E128DEEFDB2E /* Pods */, + 5484C55D8B8D12BB3987561C /* Frameworks */, ); sourceTree = ""; }; @@ -173,15 +175,15 @@ name = "Podspec Metadata"; sourceTree = ""; }; - 7B25B1326D8AE9F39DD4FD26 /* Pods */ = { + 8D6F032695F1E128DEEFDB2E /* Pods */ = { isa = PBXGroup; children = ( - DC9E0E3C7F4B72EB61E261A5 /* Pods-DownloadToGo_Example.debug.xcconfig */, - 8031456F9885A9779A8DB1CA /* Pods-DownloadToGo_Example.release.xcconfig */, - 851B12624AD642C17B82940E /* Pods-DownloadToGo_Tests.debug.xcconfig */, - FF783C19E218DACD10E71B6F /* Pods-DownloadToGo_Tests.release.xcconfig */, + E8EC757AE916A4C0E6136AD0 /* Pods-DownloadToGo_Example.debug.xcconfig */, + A480A7049C4E302C8820BD6F /* Pods-DownloadToGo_Example.release.xcconfig */, + 39F42AD4766EA896C2DA1406 /* Pods-DownloadToGo_Tests.debug.xcconfig */, + 9F242F8921C273FFE51407F4 /* Pods-DownloadToGo_Tests.release.xcconfig */, ); - name = Pods; + path = Pods; sourceTree = ""; }; /* End PBXGroup section */ @@ -191,11 +193,11 @@ isa = PBXNativeTarget; buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DownloadToGo_Example" */; buildPhases = ( - B26C143877ECFA94F1CB580C /* [CP] Check Pods Manifest.lock */, + DE3548112224B9EB044AAA69 /* [CP] Check Pods Manifest.lock */, 607FACCC1AFB9204008FA782 /* Sources */, 607FACCD1AFB9204008FA782 /* Frameworks */, 607FACCE1AFB9204008FA782 /* Resources */, - 2E9CED85478740972B8C3AAC /* [CP] Embed Pods Frameworks */, + 029999C1D5F2D75041AC89CF /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); @@ -210,7 +212,7 @@ isa = PBXNativeTarget; buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "DownloadToGo_Tests" */; buildPhases = ( - D7A33A2CC142CB4ADACE6082 /* [CP] Check Pods Manifest.lock */, + D9A3E9412001E2BC94BFF99C /* [CP] Check Pods Manifest.lock */, 607FACE11AFB9204008FA782 /* Sources */, 607FACE21AFB9204008FA782 /* Frameworks */, 607FACE31AFB9204008FA782 /* Resources */, @@ -290,7 +292,7 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 2E9CED85478740972B8C3AAC /* [CP] Embed Pods Frameworks */ = { + 029999C1D5F2D75041AC89CF /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -334,25 +336,29 @@ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-DownloadToGo_Example/Pods-DownloadToGo_Example-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - B26C143877ECFA94F1CB580C /* [CP] Check Pods Manifest.lock */ = { + D9A3E9412001E2BC94BFF99C /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); + inputFileListPaths = ( + ); inputPaths = ( "${PODS_PODFILE_DIR_PATH}/Podfile.lock", "${PODS_ROOT}/Manifest.lock", ); name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-DownloadToGo_Example-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-DownloadToGo_Tests-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; - D7A33A2CC142CB4ADACE6082 /* [CP] Check Pods Manifest.lock */ = { + DE3548112224B9EB044AAA69 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -367,7 +373,7 @@ outputFileListPaths = ( ); outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-DownloadToGo_Tests-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-DownloadToGo_Example-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; @@ -484,7 +490,7 @@ ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; }; name = Debug; }; @@ -533,48 +539,52 @@ MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_VERSION = 4.2; + SWIFT_VERSION = 5.0; VALIDATE_PRODUCT = YES; }; name = Release; }; 607FACF01AFB9204008FA782 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = DC9E0E3C7F4B72EB61E261A5 /* Pods-DownloadToGo_Example.debug.xcconfig */; + baseConfigurationReference = E8EC757AE916A4C0E6136AD0 /* Pods-DownloadToGo_Example.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = DownloadToGo_Example.entitlements; DEVELOPMENT_TEAM = X8RDCFJK95; INFOPLIST_FILE = DownloadToGo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; MODULE_NAME = ExampleApp; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_BUNDLE_IDENTIFIER = "com.kaltura.DownloadToGo-Example"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; 607FACF11AFB9204008FA782 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 8031456F9885A9779A8DB1CA /* Pods-DownloadToGo_Example.release.xcconfig */; + baseConfigurationReference = A480A7049C4E302C8820BD6F /* Pods-DownloadToGo_Example.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_ENTITLEMENTS = DownloadToGo_Example.entitlements; DEVELOPMENT_TEAM = X8RDCFJK95; INFOPLIST_FILE = DownloadToGo/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 10.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; MODULE_NAME = ExampleApp; - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_BUNDLE_IDENTIFIER = "com.kaltura.DownloadToGo-Example"; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; 607FACF31AFB9204008FA782 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 851B12624AD642C17B82940E /* Pods-DownloadToGo_Tests.debug.xcconfig */; + baseConfigurationReference = 39F42AD4766EA896C2DA1406 /* Pods-DownloadToGo_Tests.debug.xcconfig */; buildSettings = { DEVELOPMENT_TEAM = X8RDCFJK95; FRAMEWORK_SEARCH_PATHS = ( @@ -596,7 +606,7 @@ }; 607FACF41AFB9204008FA782 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = FF783C19E218DACD10E71B6F /* Pods-DownloadToGo_Tests.release.xcconfig */; + baseConfigurationReference = 9F242F8921C273FFE51407F4 /* Pods-DownloadToGo_Tests.release.xcconfig */; buildSettings = { DEVELOPMENT_TEAM = X8RDCFJK95; FRAMEWORK_SEARCH_PATHS = ( diff --git a/Example/DownloadToGo_Example.entitlements b/Example/DownloadToGo_Example.entitlements new file mode 100644 index 0000000..903def2 --- /dev/null +++ b/Example/DownloadToGo_Example.entitlements @@ -0,0 +1,8 @@ + + + + + aps-environment + development + + diff --git a/Example/Podfile b/Example/Podfile index 8f8b3ba..6bc8096 100644 --- a/Example/Podfile +++ b/Example/Podfile @@ -2,17 +2,17 @@ ENV['COCOAPODS_DISABLE_STATS'] = 'true' # It's a sample app use_frameworks! -platform :ios, '9.0' +platform :ios, '10.0' swift_version = '5.0' target 'DownloadToGo_Example' do pod 'DownloadToGo', :path => '..' - pod 'PlayKit', '~> 3.12.1' + pod 'PlayKit', '~> 3.18' # pod 'PlayKit', :path => '../../playkit-ios' # pod 'PlayKit', :git => 'https://github.com/kaltura/playkit-ios', :branch => 'develop' - pod 'PlayKitProviders', '~> 1.3.2' + pod 'PlayKitProviders', '~> 1.7' # pod 'PlayKitProviders' #, :path => '../../playkit-ios-providers' pod 'Toast', '~> 4.0.0' diff --git a/Example/xcodebuild.log b/Example/xcodebuild.log new file mode 100644 index 0000000..33158e7 --- /dev/null +++ b/Example/xcodebuild.log @@ -0,0 +1,2 @@ +Command line invocation: + \ No newline at end of file diff --git a/travis-build.sh b/travis-build.sh index 33fd1ff..21772a6 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -17,7 +17,7 @@ testApp() { cd Example pod install CODE=0 - xcodebuild test -workspace DownloadToGo.xcworkspace -scheme DownloadToGo-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -destination 'platform=iOS Simulator,name=iPhone X' | tee xcodebuild.log | xcpretty -r html || CODE=$? + xcodebuild test -workspace DownloadToGo.xcworkspace -scheme DownloadToGo-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -destination 'platform=iOS Simulator,name=iPhone 11' | tee xcodebuild.log | xcpretty -r html || CODE=$? export CODE env > env.txt zip --junk-paths data.zip xcodebuild.log build/reports/tests.html env.txt @@ -33,8 +33,8 @@ libLint() { FLAG=$(mktemp) +keepAlive $FLAG & if [ -n "$TRAVIS_TAG" ] || [ "$TRAVIS_EVENT_TYPE" == "cron" ]; then - keepAlive $FLAG & libLint else testApp