diff --git a/.gitignore b/.gitignore index 2ecdcbf..3c05a9a 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ Example/Pods ## SPM .swiftpm +.build fastlane/* !fastlane/.env diff --git a/Changelogs/1.12.0 b/Changelogs/1.12.0 new file mode 100644 index 0000000..871fa75 --- /dev/null +++ b/Changelogs/1.12.0 @@ -0,0 +1,8 @@ +1.12.0 Release notes (2026-03-09) +================================ + +Improvements to the 'RingPublishingTracking' module. + +### Changes + +* Added new public method to report Aureus deboosting event diff --git a/Example/RingPublishingTracking.xcodeproj/project.pbxproj b/Example/RingPublishingTracking.xcodeproj/project.pbxproj index eacab72..285ee13 100644 --- a/Example/RingPublishingTracking.xcodeproj/project.pbxproj +++ b/Example/RingPublishingTracking.xcodeproj/project.pbxproj @@ -157,6 +157,7 @@ 7D7D5B9426FCA3DF00B79FDD /* ActionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D7D5B8726FCA3DF00B79FDD /* ActionsViewController.swift */; }; 7D7D5B9526FCA3DF00B79FDD /* PagerViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D7D5B8926FCA3DF00B79FDD /* PagerViewController.swift */; }; 7D7D5B9626FCA3DF00B79FDD /* TraceableScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7D7D5B8A26FCA3DF00B79FDD /* TraceableScreen.swift */; }; + 7DDC7E362F5AB4D6000F254C /* AureusDeboostingStrategy.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7DDC7E352F5AB4D6000F254C /* AureusDeboostingStrategy.swift */; }; 7DE4453B26E8913900A93431 /* LoggerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7DE4453A26E8913900A93431 /* LoggerTests.swift */; }; 854F1289D6E3FA4BC790018B /* Pods_RingPublishingTracking_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BF2945259492AA544792B04F /* Pods_RingPublishingTracking_Example.framework */; }; A039F65F2DF2D84400B9BD67 /* EffectivePageViewMetadata.swift in Sources */ = {isa = PBXBuildFile; fileRef = A039F65E2DF2D84400B9BD67 /* EffectivePageViewMetadata.swift */; }; @@ -361,6 +362,7 @@ 7D9F12B82791A15D00F3635A /* RingPublishingTracking.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; name = RingPublishingTracking.podspec; path = ../RingPublishingTracking.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 7D9F12B92791A15D00F3635A /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 7D9F12BA2791A15D00F3635A /* Changelogs */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Changelogs; path = ../Changelogs; sourceTree = ""; }; + 7DDC7E352F5AB4D6000F254C /* AureusDeboostingStrategy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AureusDeboostingStrategy.swift; sourceTree = ""; }; 7DE4453A26E8913900A93431 /* LoggerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoggerTests.swift; sourceTree = ""; }; 8E2A37C5A1593C87B0EB5A44 /* Pods-RingPublishingTrackingTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RingPublishingTrackingTests.release.xcconfig"; path = "Target Support Files/Pods-RingPublishingTrackingTests/Pods-RingPublishingTrackingTests.release.xcconfig"; sourceTree = ""; }; A039F65E2DF2D84400B9BD67 /* EffectivePageViewMetadata.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EffectivePageViewMetadata.swift; sourceTree = ""; }; @@ -845,6 +847,7 @@ 7D54DA972E460B99009DA251 /* Aureus */ = { isa = PBXGroup; children = ( + 7DDC7E352F5AB4D6000F254C /* AureusDeboostingStrategy.swift */, 7D54DA982E460BF8009DA251 /* AureusTeaser.swift */, 7D54DA9A2E460C55009DA251 /* AureusEventContext.swift */, ); @@ -1299,6 +1302,7 @@ A04E94DD2CB7E6E10048B4AF /* AudioEventsTests.swift in Sources */, 60108E8D2B0515C6005656C1 /* ConsentProvider.swift in Sources */, 60108E702B0515C6005656C1 /* VideoStartMode.swift in Sources */, + 7DDC7E362F5AB4D6000F254C /* AureusDeboostingStrategy.swift in Sources */, 60108EBF2B0515C6005656C1 /* VideoAdsConfiguration+ParameterName.swift in Sources */, 204EAF3627294BF7009E2F0D /* EventTests.swift in Sources */, 60108ECA2B0515C6005656C1 /* KeepAliveIntervalsProvider.swift in Sources */, @@ -1471,7 +1475,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.11.2; + MARKETING_VERSION = 1.12.0; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.RingPublishingTracking-Example.RingPublishingTracking"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -1495,7 +1499,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.11.2; + MARKETING_VERSION = 1.12.0; PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.RingPublishingTracking-Example.RingPublishingTracking"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/Example/RingPublishingTracking/Controller/ActionsViewController.swift b/Example/RingPublishingTracking/Controller/ActionsViewController.swift index b20603d..7b68877 100644 --- a/Example/RingPublishingTracking/Controller/ActionsViewController.swift +++ b/Example/RingPublishingTracking/Controller/ActionsViewController.swift @@ -174,7 +174,7 @@ class ActionsViewController: UIViewController, PagerViewController, TraceableScr RingPublishingTracking.shared.setOptOutMode(enabled: false) } - // MARK: Actions (Aureus offers impression) + // MARK: Actions (Aureus) @IBAction func onReportAureusOffersImpressionActionTouch(_ sender: Any) { // If you have recomendations delivered by personalization engine (Aureus) you should report @@ -199,6 +199,15 @@ class ActionsViewController: UIViewController, PagerViewController, TraceableScr RingPublishingTracking.shared.reportAureusImpression(for: [teaser, teaser2, teaser3], eventContext: contextNew) } + @IBAction func onReportAureusDeboostingActionTouch(_ sender: Any) { + let teaser = AureusTeaser(teaserId: "teaserId", offerId: "offerId", contentId: "contentId") + let teaser2 = AureusTeaser(teaserId: "teaserId_2", offerId: "offerId_2", contentId: "contentId_2") + let teaser3 = AureusTeaser(teaserId: "teaserId_3", offerId: "offerId_3", contentId: "contentId_3") + + RingPublishingTracking.shared.reportAureusDeboostingEvent(for: [teaser, teaser2, teaser3], strategy: .click) + RingPublishingTracking.shared.reportAureusDeboostingEvent(for: [teaser, teaser2, teaser3], strategy: .view) + } + // MARK: Actions (Video event) @IBAction func onReportVideoPlaybackStartActionTouch(_ sender: Any) { diff --git a/Example/RingPublishingTracking/Info.plist b/Example/RingPublishingTracking/Info.plist index 711fda1..dfe9f69 100644 --- a/Example/RingPublishingTracking/Info.plist +++ b/Example/RingPublishingTracking/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 1.10.0 + 1.12.0 CFBundleVersion 1 LSRequiresIPhoneOS diff --git a/Example/RingPublishingTracking/Resources/Base.lproj/Main.storyboard b/Example/RingPublishingTracking/Resources/Base.lproj/Main.storyboard index 9a6fb72..511c137 100644 --- a/Example/RingPublishingTracking/Resources/Base.lproj/Main.storyboard +++ b/Example/RingPublishingTracking/Resources/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -28,7 +28,7 @@ - + @@ -161,8 +161,21 @@ + + + + + + - +