diff --git a/Example/Podfile b/Example/Podfile index dc9d94c..68dadb5 100644 --- a/Example/Podfile +++ b/Example/Podfile @@ -5,6 +5,8 @@ end target 'Segment-ComScore_Tests' do + inherit! :search_paths + use_frameworks! pod 'Segment-ComScore', :path => '../' pod 'OCMockito' pod 'Specta' diff --git a/Example/Podfile.lock b/Example/Podfile.lock index e83edb8..79709d8 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -1,14 +1,16 @@ PODS: - - Analytics (3.6.0) - - ComScore (5.3.0) - - Expecta (1.0.5) - - OCHamcrest (6.1.1) - - OCMockito (4.1.0): - - OCHamcrest (~> 6.0) + - Analytics (3.7.0) + - ComScore (5.8.7): + - ComScore/Dynamic (= 5.8.7) + - ComScore/Dynamic (5.8.7) + - Expecta (1.0.6) + - OCHamcrest (7.1.2) + - OCMockito (5.1.2): + - OCHamcrest (~> 7.0) - Segment-ComScore (3.0.0): - Analytics (~> 3.6) - ComScore (~> 5.0) - - Specta (1.0.6) + - Specta (1.0.7) DEPENDENCIES: - Expecta @@ -16,19 +18,28 @@ DEPENDENCIES: - Segment-ComScore (from `../`) - Specta +SPEC REPOS: + trunk: + - Analytics + - ComScore + - Expecta + - OCHamcrest + - OCMockito + - Specta + EXTERNAL SOURCES: Segment-ComScore: - :path: ../ + :path: "../" SPEC CHECKSUMS: - Analytics: 15be3e651d22cc811f44df65698538236676437b - ComScore: 9a2bf7034781a83a11add92dc0a3c0fb7a994597 - Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe - OCHamcrest: 363e1bf738c3e8a94abe7c2c415f70d671adde38 - OCMockito: bceefcd365252bcdf8b59c1b2bd23890805fc0d8 + Analytics: 77fd5fb102a4a5eedafa2c2b0245ceb7b7c15e45 + ComScore: 4d377376e44c77de1e435a32fdf38d2507d6906c + Expecta: 3b6bd90a64b9a1dcb0b70aa0e10a7f8f631667d5 + OCHamcrest: b284c9592c28c1e4025a8542e67ea41a635d0d73 + OCMockito: 51a534e667194e1ecae88c5def301cc8b0ab3cc7 Segment-ComScore: 972ab17e20a945c17ba1f7f18f11488af6b13299 - Specta: f506f3a8361de16bc0dcf3b17b75e269072ba465 + Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66 -PODFILE CHECKSUM: 37ad627b8e92a3b5fe1d5be32b68a6c8fe09ec74 +PODFILE CHECKSUM: 932d0f7bf2019c356593fea491733835d7d1c5e1 -COCOAPODS: 1.3.1 +COCOAPODS: 1.8.4 diff --git a/Example/Segment-ComScore.xcodeproj/project.pbxproj b/Example/Segment-ComScore.xcodeproj/project.pbxproj index 9f7d505..3d3c11d 100644 --- a/Example/Segment-ComScore.xcodeproj/project.pbxproj +++ b/Example/Segment-ComScore.xcodeproj/project.pbxproj @@ -7,6 +7,7 @@ objects = { /* Begin PBXBuildFile section */ + 265D2132AA6B9DA34109AC20 /* Pods_Segment_ComScore_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8CC14C6C07309AAAF78B377B /* Pods_Segment_ComScore_Tests.framework */; }; 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; @@ -22,7 +23,6 @@ 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 7434E2F290D9418BDD99DA91 /* libPods-Segment-ComScore_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DDF39FAB4AD0870105437AC /* libPods-Segment-ComScore_Example.a */; }; 873B8AEB1B1F5CCA007FD442 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */; }; - 88970245F523438217A6F04F /* libPods-Segment-ComScore_Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0545EF907EFC900F792E40E5 /* libPods-Segment-ComScore_Tests.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -36,9 +36,8 @@ /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ - 0545EF907EFC900F792E40E5 /* libPods-Segment-ComScore_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Segment-ComScore_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 0DDF39FAB4AD0870105437AC /* libPods-Segment-ComScore_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Segment-ComScore_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; - 1564BAC3F3C6E5D4FE25BF1D /* Segment-ComScore.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = "Segment-ComScore.podspec"; path = "../Segment-ComScore.podspec"; sourceTree = ""; }; + 1564BAC3F3C6E5D4FE25BF1D /* Segment-ComScore.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = "Segment-ComScore.podspec"; path = "../Segment-ComScore.podspec"; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 1BEA44456C8AB3BDF3EC6BF9 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 5878EFB790BE3547569A5DE4 /* Pods-Segment-ComScore_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Segment-ComScore_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Segment-ComScore_Example/Pods-Segment-ComScore_Example.debug.xcconfig"; sourceTree = ""; }; 5C2BF0211CEBC81E0087DA8F /* SEGPayloadBuilder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SEGPayloadBuilder.h; sourceTree = ""; }; @@ -64,6 +63,7 @@ 7DAE3E57CAA225EF6603C049 /* Pods-Segment-ComScore_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Segment-ComScore_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Segment-ComScore_Tests/Pods-Segment-ComScore_Tests.debug.xcconfig"; sourceTree = ""; }; 833F9A102EFC8FE5686FFBF9 /* Pods-Segment-ComScore_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Segment-ComScore_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Segment-ComScore_Tests/Pods-Segment-ComScore_Tests.release.xcconfig"; sourceTree = ""; }; 873B8AEA1B1F5CCA007FD442 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + 8CC14C6C07309AAAF78B377B /* Pods_Segment_ComScore_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Segment_ComScore_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; B0D20145F55E7BB5DD07BED3 /* Pods-Segment-ComScore_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Segment-ComScore_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-Segment-ComScore_Example/Pods-Segment-ComScore_Example.release.xcconfig"; sourceTree = ""; }; F92BA7CFB417C9480FB73821 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; /* End PBXFileReference section */ @@ -87,7 +87,7 @@ 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, - 88970245F523438217A6F04F /* libPods-Segment-ComScore_Tests.a in Frameworks */, + 265D2132AA6B9DA34109AC20 /* Pods_Segment_ComScore_Tests.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -123,7 +123,7 @@ 6003F591195388D20070C39A /* UIKit.framework */, 6003F5AF195388D20070C39A /* XCTest.framework */, 0DDF39FAB4AD0870105437AC /* libPods-Segment-ComScore_Example.a */, - 0545EF907EFC900F792E40E5 /* libPods-Segment-ComScore_Tests.a */, + 8CC14C6C07309AAAF78B377B /* Pods_Segment_ComScore_Tests.framework */, ); name = Frameworks; sourceTree = ""; @@ -206,8 +206,8 @@ 6003F586195388D20070C39A /* Sources */, 6003F587195388D20070C39A /* Frameworks */, 6003F588195388D20070C39A /* Resources */, - 118E1EC275D82C677BEF8D1C /* [CP] Embed Pods Frameworks */, - 0355D1C574B78BD2E9A3EDD8 /* [CP] Copy Pods Resources */, + 5C9DFBE8653AF5699C8D3CEF /* [CP] Embed Pods Frameworks */, + 880071E99BD528D06FBE6128 /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -226,8 +226,8 @@ 6003F5AA195388D20070C39A /* Sources */, 6003F5AB195388D20070C39A /* Frameworks */, 6003F5AC195388D20070C39A /* Resources */, - 6E9F082B4D1523DB5369CA0F /* [CP] Embed Pods Frameworks */, - 266F7FC9B6A682865C4AEE58 /* [CP] Copy Pods Resources */, + 56048E2F2D09FD56CEF11BB9 /* [CP] Embed Pods Frameworks */, + ED56FC2EF015ABAD50F313FB /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -259,6 +259,7 @@ developmentRegion = English; hasScannedForEncodings = 0; knownRegions = ( + English, en, Base, ); @@ -295,52 +296,73 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 0355D1C574B78BD2E9A3EDD8 /* [CP] Copy Pods Resources */ = { + 28A4E38795E40945FC963E74 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Check Pods Manifest.lock"; outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Segment-ComScore_Example-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-ComScore_Example/Pods-Segment-ComScore_Example-resources.sh\"\n"; + 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; }; - 118E1EC275D82C677BEF8D1C /* [CP] Embed Pods Frameworks */ = { + 56048E2F2D09FD56CEF11BB9 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Segment-ComScore_Tests/Pods-Segment-ComScore_Tests-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/Analytics-framework/Analytics.framework", + "${PODS_ROOT}/ComScore/ComScore/dynamic/iOS/ComScore.framework", + "${BUILT_PRODUCTS_DIR}/Segment-ComScore-framework/Segment_ComScore.framework", + "${BUILT_PRODUCTS_DIR}/Expecta/Expecta.framework", + "${BUILT_PRODUCTS_DIR}/OCHamcrest/OCHamcrest.framework", + "${BUILT_PRODUCTS_DIR}/OCMockito/OCMockito.framework", + "${BUILT_PRODUCTS_DIR}/Specta/Specta.framework", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Analytics.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ComScore.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Segment_ComScore.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Expecta.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OCHamcrest.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OCMockito.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Specta.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-ComScore_Example/Pods-Segment-ComScore_Example-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Segment-ComScore_Tests/Pods-Segment-ComScore_Tests-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 266F7FC9B6A682865C4AEE58 /* [CP] Copy Pods Resources */ = { + 5C9DFBE8653AF5699C8D3CEF /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Segment-ComScore_Example/Pods-Segment-ComScore_Example-frameworks.sh", + "${PODS_ROOT}/ComScore/ComScore/dynamic/iOS/ComScore.framework", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Embed Pods Frameworks"; outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ComScore.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-ComScore_Tests/Pods-Segment-ComScore_Tests-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Segment-ComScore_Example/Pods-Segment-ComScore_Example-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; - 28A4E38795E40945FC963E74 /* [CP] Check Pods Manifest.lock */ = { + 80E68FDEFBC0FBDBA6E7C8F3 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -351,44 +373,47 @@ ); name = "[CP] Check Pods Manifest.lock"; outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Segment-ComScore_Example-checkManifestLockResult.txt", + "$(DERIVED_FILE_DIR)/Pods-Segment-ComScore_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; }; - 6E9F082B4D1523DB5369CA0F /* [CP] Embed Pods Frameworks */ = { + 880071E99BD528D06FBE6128 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Segment-ComScore_Example/Pods-Segment-ComScore_Example-resources.sh", + "${PODS_CONFIGURATION_BUILD_DIR}/ComScore-library/SCORBundle.bundle", ); - name = "[CP] Embed Pods Frameworks"; + name = "[CP] Copy Pods Resources"; outputPaths = ( + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SCORBundle.bundle", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Segment-ComScore_Tests/Pods-Segment-ComScore_Tests-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Segment-ComScore_Example/Pods-Segment-ComScore_Example-resources.sh\"\n"; showEnvVarsInLog = 0; }; - 80E68FDEFBC0FBDBA6E7C8F3 /* [CP] Check Pods Manifest.lock */ = { + ED56FC2EF015ABAD50F313FB /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", + "${PODS_ROOT}/Target Support Files/Pods-Segment-ComScore_Tests/Pods-Segment-ComScore_Tests-resources.sh", + "${PODS_CONFIGURATION_BUILD_DIR}/ComScore-framework/SCORBundle.bundle", ); - name = "[CP] Check Pods Manifest.lock"; + name = "[CP] Copy Pods Resources"; outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-Segment-ComScore_Tests-checkManifestLockResult.txt", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SCORBundle.bundle", ); 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"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Segment-ComScore_Tests/Pods-Segment-ComScore_Tests-resources.sh\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ diff --git a/Example/Segment-ComScore.xcodeproj/xcshareddata/xcschemes/Segment-ComScore-Example.xcscheme b/Example/Segment-ComScore.xcodeproj/xcshareddata/xcschemes/Segment-ComScore-Example.xcscheme index eb7f2c9..75dccef 100644 --- a/Example/Segment-ComScore.xcodeproj/xcshareddata/xcschemes/Segment-ComScore-Example.xcscheme +++ b/Example/Segment-ComScore.xcodeproj/xcshareddata/xcschemes/Segment-ComScore-Example.xcscheme @@ -26,8 +26,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES" - codeCoverageEnabled = "YES"> + codeCoverageEnabled = "YES" + shouldUseLaunchSchemeArgsEnv = "YES"> @@ -60,6 +60,7 @@ useCustomWorkingDirectory = "NO" ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" + stopOnEveryMainThreadCheckerIssue = "YES" debugServiceExtension = "internal" allowLocationSimulation = "YES"> @interface SEGViewController () @@ -20,6 +21,23 @@ - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. + [[SEGAnalytics sharedAnalytics] identify:@"234"]; + [[SEGAnalytics sharedAnalytics] track:@"comScore Example Launched v2019"]; + + [[SEGAnalytics sharedAnalytics] track:@"Video Playback Started" + properties:nil + options:@{ + @"integrations": @{ + @"com-score": @{ + @"c4":@"testing-v2019" + } + } + }]; + + + + [[SEGAnalytics sharedAnalytics] flush]; + } - (void)didReceiveMemoryWarning diff --git a/Example/Tests/Tests.m b/Example/Tests/Tests.m index 05d0bea..0c01175 100644 --- a/Example/Tests/Tests.m +++ b/Example/Tests/Tests.m @@ -189,7 +189,7 @@ - (SCORStreamingAnalytics *)create; @"bitrate" : @50 } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"c3" : @"test" } }]; @@ -219,7 +219,7 @@ - (SCORStreamingAnalytics *)create; @"bitrate" : @50 } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"c3" : @"test" } }]; @@ -251,7 +251,7 @@ - (SCORStreamingAnalytics *)create; @"bitrate" : @50 } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"c3" : @"test" } }]; @@ -282,7 +282,7 @@ - (SCORStreamingAnalytics *)create; @"bitrate" : @50 } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"c3" : @"test" } }]; @@ -314,7 +314,7 @@ - (SCORStreamingAnalytics *)create; } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"c4" : @"test" } }]; @@ -346,7 +346,7 @@ - (SCORStreamingAnalytics *)create; } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"c4" : @"test" } }]; @@ -377,7 +377,7 @@ - (SCORStreamingAnalytics *)create; } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"c4" : @"test" } }]; @@ -634,7 +634,7 @@ - (SCORStreamingAnalytics *)create; @"channel" : @"Cartoon Network" } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"tvAirdate" : @"2017-05-22" } }]; @@ -713,7 +713,7 @@ - (SCORStreamingAnalytics *)create; @"channel" : @"Cartoon Network" } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"tvAirdate" : @"2017-05-22" } }]; @@ -762,7 +762,7 @@ - (SCORStreamingAnalytics *)create; @"channel" : @"Cartoon Network" } context:@{} integrations:@{ - @"comScore" : @{ + @"com-score" : @{ @"tvAirdate" : @"2017-05-22" } }]; @@ -1026,7 +1026,7 @@ - (SCORStreamingAnalytics *)create; @"title" : @"Rick and Morty Ad" } context:@{} - integrations:@{ @"comScore" : @{ + integrations:@{ @"com-score" : @{ @"adClassificationType" : @"va12" } }]; diff --git a/Segment-ComScore/Classes/SEGComScoreIntegration.m b/Segment-ComScore/Classes/SEGComScoreIntegration.m index afe4b72..fb212b9 100644 --- a/Segment-ComScore/Classes/SEGComScoreIntegration.m +++ b/Segment-ComScore/Classes/SEGComScoreIntegration.m @@ -248,7 +248,7 @@ - (void)flush NSDictionary *returnMappedPlaybackProperties(NSDictionary *properties, NSDictionary *integrations) { - NSDictionary *integration = [integrations valueForKey:@"comScore"]; + NSDictionary *integration = [integrations valueForKey:@"com-score"]; NSDictionary *map = @{ @"ns_st_mp" : properties[@"video_player"] ?: @"*null", @"ns_st_vo" : properties[@"sound"] ?: @"*null", @@ -392,7 +392,7 @@ - (void)videoPlaybackResumed:(NSDictionary *)properties withOptions:(NSDictionar NSDictionary *returnMappedContentProperties(NSDictionary *properties, NSDictionary *integrations) { - NSDictionary *integration = [integrations valueForKey:@"comScore"]; + NSDictionary *integration = [integrations valueForKey:@"com-score"]; NSDictionary *map = @{ @"ns_st_ci" : properties[@"asset_id"] ?: @"0", @"ns_st_ep" : properties[@"title"] ?: @"*null", @@ -475,7 +475,7 @@ - (void)videoContentCompleted:(NSDictionary *)properties withOptions:(NSDictiona NSDictionary *returnMappedAdProperties(NSDictionary *properties, NSDictionary *integrations) { - NSDictionary *integration = [integrations valueForKey:@"comScore"]; + NSDictionary *integration = [integrations valueForKey:@"com-score"]; NSDictionary *map = @{ @"ns_st_ami" : properties[@"asset_id"] ?: @"*null", @"ns_st_ad" : defaultAdType(properties, @"type") ?: @"1",