Skip to content

Commit

Permalink
Release 7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mobile-ads-github committed Jul 18, 2024
1 parent 6446ecb commit b637552
Show file tree
Hide file tree
Showing 32 changed files with 435 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 7.1.1;
CURRENT_PROJECT_VERSION = 7.2.0;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -305,7 +305,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 7.1.1;
MARKETING_VERSION = 7.2.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -349,7 +349,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 7.1.1;
CURRENT_PROJECT_VERSION = 7.2.0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -364,7 +364,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
MARKETING_VERSION = 7.1.1;
MARKETING_VERSION = 7.2.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
46C354A0282560FE00832C7C /* IronSourceRewardedViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46C3549D282560FE00832C7C /* IronSourceRewardedViewController.swift */; };
46C354A1282560FE00832C7C /* IronSourceInterstitialViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46C3549E282560FE00832C7C /* IronSourceInterstitialViewController.swift */; };
46C354A2282560FE00832C7C /* IronSourceManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 46C3549F282560FE00832C7C /* IronSourceManager.swift */; };
4A8FA13B2BFB558700A3DB07 /* NativeBulkViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A8FA13A2BFB558700A3DB07 /* NativeBulkViewController.swift */; };
4A8FA13C2BFB559000A3DB07 /* NativeBulkViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A8FA13A2BFB558700A3DB07 /* NativeBulkViewController.swift */; };
4A8FA13F2BFC9AF800A3DB07 /* NativeBulkTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A8FA13E2BFC9AF800A3DB07 /* NativeBulkTableViewCell.swift */; };
4A8FA1402BFC9AF800A3DB07 /* NativeBulkTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4A8FA13E2BFC9AF800A3DB07 /* NativeBulkTableViewCell.swift */; };
646CB7F62B0B5B6F0056DFD5 /* YandexAdsExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 646CB7F52B0B5B6F0056DFD5 /* YandexAdsExampleViewController.swift */; };
64F70DBA2B0B64D300A31CE8 /* LinkedList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 14033F982720457800A24D5E /* LinkedList.swift */; };
64F70DBC2B0B64D300A31CE8 /* GDPRUserConsentManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1474FC182721A4E500276688 /* GDPRUserConsentManager.swift */; };
Expand Down Expand Up @@ -243,6 +247,8 @@
46C3549D282560FE00832C7C /* IronSourceRewardedViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IronSourceRewardedViewController.swift; sourceTree = "<group>"; };
46C3549E282560FE00832C7C /* IronSourceInterstitialViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IronSourceInterstitialViewController.swift; sourceTree = "<group>"; };
46C3549F282560FE00832C7C /* IronSourceManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IronSourceManager.swift; sourceTree = "<group>"; };
4A8FA13A2BFB558700A3DB07 /* NativeBulkViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeBulkViewController.swift; sourceTree = "<group>"; };
4A8FA13E2BFC9AF800A3DB07 /* NativeBulkTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeBulkTableViewCell.swift; sourceTree = "<group>"; };
5BF35ACE34CE63F32697C83A /* libPods-YandexMobileAdsExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-YandexMobileAdsExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
646CB7F52B0B5B6F0056DFD5 /* YandexAdsExampleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YandexAdsExampleViewController.swift; sourceTree = "<group>"; };
64F70E022B0B64D300A31CE8 /* YandexMobileAdsExampleSPM.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = YandexMobileAdsExampleSPM.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -555,6 +561,7 @@
147B0BCA27200CF3005F4062 /* Native */ = {
isa = PBXGroup;
children = (
4A8FA13D2BFC9AD300A3DB07 /* Bulk */,
DEC81AE12A53C840008FE935 /* NativeViewController.swift */,
DE0C2CBD2A65760900A84D00 /* NativeTemplateViewController.swift */,
DE0C2CBF2A66245700A84D00 /* NativeCustomViewController.swift */,
Expand Down Expand Up @@ -626,6 +633,15 @@
path = IronSource;
sourceTree = "<group>";
};
4A8FA13D2BFC9AD300A3DB07 /* Bulk */ = {
isa = PBXGroup;
children = (
4A8FA13A2BFB558700A3DB07 /* NativeBulkViewController.swift */,
4A8FA13E2BFC9AF800A3DB07 /* NativeBulkTableViewCell.swift */,
);
path = Bulk;
sourceTree = "<group>";
};
5E36114E6565E861DBB72B75 /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -975,6 +991,7 @@
7AA816982B20BF32006C9D91 /* YandexNativeAccessibility.swift in Sources */,
F7D8B4D32A97B41F00E7A40D /* AppOpenAdViewController.swift in Sources */,
DEC81AE22A53C840008FE935 /* NativeViewController.swift in Sources */,
4A8FA13F2BFC9AF800A3DB07 /* NativeBulkTableViewCell.swift in Sources */,
46C354A2282560FE00832C7C /* IronSourceManager.swift in Sources */,
DE6D740A2A740DF30024DA8F /* InstreamSingleViewController.swift in Sources */,
14033FBA2720457800A24D5E /* PlayerView.swift in Sources */,
Expand All @@ -987,6 +1004,7 @@
14033F6827201F7900A24D5E /* MobileMediationRewardedViewController.swift in Sources */,
B394AC8627A868DB00D92CD9 /* AdPlayerErrorConverter.swift in Sources */,
14033FB92720457800A24D5E /* ContentPlayerControlsDelegate.swift in Sources */,
4A8FA13B2BFB558700A3DB07 /* NativeBulkViewController.swift in Sources */,
14033FC02720457800A24D5E /* InstreamAdBreakPositionFormatter.swift in Sources */,
14033FBF2720457800A24D5E /* InstreamParametersParser.swift in Sources */,
DEC81ADC2A53B9E7008FE935 /* String+Extensions.swift in Sources */,
Expand Down Expand Up @@ -1040,11 +1058,13 @@
64F70DD82B0B64D300A31CE8 /* InstreamListViewController.swift in Sources */,
64F70DD92B0B64D300A31CE8 /* SettingsViewController.swift in Sources */,
64F70DDA2B0B64D300A31CE8 /* AppOpenAdViewController.swift in Sources */,
4A8FA13C2BFB559000A3DB07 /* NativeBulkViewController.swift in Sources */,
64F70DDB2B0B64D300A31CE8 /* NativeViewController.swift in Sources */,
64F70DDD2B0B64D300A31CE8 /* InstreamSingleViewController.swift in Sources */,
64F70DDE2B0B64D300A31CE8 /* PlayerView.swift in Sources */,
64F70DDF2B0B64D300A31CE8 /* AdFoxBannerViewController.swift in Sources */,
64F70DE02B0B64D300A31CE8 /* VideoPlayerVisibilityTracker.swift in Sources */,
4A8FA1402BFC9AF800A3DB07 /* NativeBulkTableViewCell.swift in Sources */,
64F70DE12B0B64D300A31CE8 /* YandexAdsExampleViewController.swift in Sources */,
7AA816A42B20D76E006C9D91 /* YandexNativeAccessibility.swift in Sources */,
64F70DE22B0B64D300A31CE8 /* GDPRViewController.swift in Sources */,
Expand Down Expand Up @@ -1177,7 +1197,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 7.1.1;
CURRENT_PROJECT_VERSION = 7.2.0;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
Expand All @@ -1196,7 +1216,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
MARKETING_VERSION = 7.1.1;
MARKETING_VERSION = 7.2.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1240,7 +1260,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 7.1.1;
CURRENT_PROJECT_VERSION = 7.2.0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -1253,7 +1273,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
MARKETING_VERSION = 7.1.1;
MARKETING_VERSION = 7.2.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -1351,7 +1371,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 7.1.1;
CURRENT_PROJECT_VERSION = 7.2.0;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand All @@ -1364,7 +1384,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.5;
MARKETING_VERSION = 7.1.1;
MARKETING_VERSION = 7.2.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ enum CommonAccessibility {
static let presentButton = "present_button"
static let stateLabel = "state_label"
static let bannerView = "banner_view"
static let bannerCellView = "banner_cell_view_"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
enum YandexNativeAccessibility {
static let template = "template"
static let custom = "custom"
static let bulk = "bulk"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ private let bigoAdsAdUnitID = "demo-banner-bigoads"
private let inMobiAdsAdUnitID = "demo-banner-inmobi"
private let ironSourceAdUnitID = "demo-banner-ironsource"
private let startAppAdUnitID = "demo-banner-startapp"
private let vungleAdUnitID = "demo-banner-vungle"
private let yandexAdUnitID = "demo-banner-yandex"

class MobileMediationBannerViewController: UIViewController {
Expand All @@ -31,6 +32,7 @@ class MobileMediationBannerViewController: UIViewController {
(adapter: "MyTarget", adUnitID: myTargetAdUnitID),
(adapter: "IronSource", adUnitID: ironSourceAdUnitID),
(adapter: "StartApp", adUnitID: startAppAdUnitID),
(adapter: "Vungle", adUnitID: vungleAdUnitID),
(adapter: "Yandex", adUnitID: yandexAdUnitID)
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ private let adColonyAdUnitID = "demo-interstitial-adcolony"
private let bigoAdsAdUnitID = "demo-interstitial-bigoads"
private let inMobiAdUnitID = "demo-interstitial-inmobi"
private let startAppAdUnitID = "demo-interstitial-startapp"
private let vungleAdUnitID = "demo-interstitial-vungle"
private let yandexAdUnitID = "demo-interstitial-yandex"

class MobileMediationInterstitialViewController: UIViewController {
Expand All @@ -34,6 +35,7 @@ class MobileMediationInterstitialViewController: UIViewController {
(adapter: "MyTarget", adUnitID: myTargetAdUnitID),
(adapter: "StartApp", adUnitID: startAppAdUnitID),
(adapter: "UnityAds", adUnitID: unityAdsAdUnitID),
(adapter: "Vungle", adUnitID: vungleAdUnitID),
(adapter: "Yandex", adUnitID: yandexAdUnitID)
]
private let interstitialAdLoader = InterstitialAdLoader()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
import YandexMobileAds

private let adMobAdUnitID = "demo-native-admob"
private let mintegralAdUnitID = "demo-native-mintegral"
private let myTargetAdUnitID = "demo-native-mytarget"
private let yandexAdUnitID = "demo-native-content-yandex"
private let vungleAdUnitID = "demo-native-vungle"

class MobileMediationNativeViewController: UIViewController {
private let adUnitIDs = [
(adapter: "AdMob", adUnitID: adMobAdUnitID),
(adapter: "Mintegral", adUnitID: mintegralAdUnitID),
(adapter: "MyTarget", adUnitID: myTargetAdUnitID),
(adapter: "Vungle", adUnitID: vungleAdUnitID),
(adapter: "Yandex", adUnitID: yandexAdUnitID)
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ private let adColonyAdUnitID = "demo-rewarded-adcolony"
private let bigoAdsAdUnitID = "demo-rewarded-bigoads"
private let inMobiAdUnitID = "demo-rewarded-inmobi"
private let startAppAdUnitID = "demo-rewarded-startapp"
private let vungleAdUnitID = "demo-rewarded-vungle"
private let yandexAdUnitID = "demo-rewarded-yandex"

class MobileMediationRewardedViewController: UIViewController {
Expand All @@ -34,6 +35,7 @@ class MobileMediationRewardedViewController: UIViewController {
(adapter: "MyTarget", adUnitID: myTargetAdUnitID),
(adapter: "StartApp", adUnitID: startAppAdUnitID),
(adapter: "UnityAds", adUnitID: unityAdsAdUnitID),
(adapter: "Vungle", adUnitID: vungleAdUnitID),
(adapter: "Yandex", adUnitID: yandexAdUnitID)
]
private let rewardedAdLoader = RewardedAdLoader()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AdMobNativeViewController: UIViewController {
}
}

extension AdMobNativeViewController: GADNativeAdLoaderDelegate, GADNativeAdDelegate {
extension AdMobNativeViewController: GADNativeAdLoaderDelegate {
func adLoader(_: GADAdLoader, didReceive nativeAd: GADNativeAd) {
guard let adView = adView else { return }

Expand All @@ -78,3 +78,15 @@ extension AdMobNativeViewController: GADNativeAdLoaderDelegate, GADNativeAdDeleg
print("Ad loader did fail to receive ad with error: \(error.localizedDescription)")
}
}

// MARK: - GADNativeAdDelegate implementation
extension AdMobNativeViewController: GADNativeAdDelegate {

func nativeAdDidRecordClick(_ nativeAd: GADNativeAd) {
print("\(#function) called")
}

func nativeAdDidRecordImpression(_ nativeAd: GADNativeAd) {
print("\(#function) called")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ final class IronSourceBannerViewController: UIViewController {
let constraints = [
banner.bottomAnchor.constraint(equalTo: layoutGuide.bottomAnchor),
banner.centerXAnchor.constraint(equalTo: layoutGuide.centerXAnchor),
banner.widthAnchor.constraint(equalToConstant: banner.frame.size.width),
banner.heightAnchor.constraint(equalToConstant: banner.frame.size.height)
]
NSLayoutConstraint.activate(constraints)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/*
* Version for iOS © 2015–2023 YANDEX
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at https://yandex.com/legal/mobileads_sdk_agreement/
*/

import YandexMobileAds

final class NativeBulkTableViewCell: UITableViewCell {
static var reuseIdentifier: String { String(describing: Self.self) }

private let adView: NativeCustomAdView = .init()

override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
setupViews()
}

@available(*, unavailable)
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

private func setupViews() {
adView.translatesAutoresizingMaskIntoConstraints = false
contentView.addSubview(adView)

let margins = contentView.layoutMarginsGuide

NSLayoutConstraint.activate([
adView.topAnchor.constraint(equalTo: margins.topAnchor),
adView.leadingAnchor.constraint(equalTo: margins.leadingAnchor),
adView.trailingAnchor.constraint(equalTo: margins.trailingAnchor),
adView.bottomAnchor.constraint(equalTo: margins.bottomAnchor),
])
}

public func bindNativeAd(_ ad: NativeAd) {
ad.delegate = self
do {
try ad.bind(with: adView)
adView.isHidden = false
adView.callToActionButton?.accessibilityIdentifier = "call"
setNeedsLayout()
layoutIfNeeded()
} catch {
print("Binding error: \(error)")
}
}
}

// MARK: - YMANativeAdDelegate

extension NativeBulkTableViewCell: NativeAdDelegate {
func nativeAdDidClick(_ ad: NativeAd) {
print(#function)
}

func nativeAdWillLeaveApplication(_ ad: NativeAd) {
print(#function)
}

func nativeAd(_ ad: NativeAd, willPresentScreen viewController: UIViewController?) {
print(#function)
}

func nativeAd(_ ad: NativeAd, didTrackImpressionWith impressionData: ImpressionData?) {
print(#function)
}

func nativeAd(_ ad: NativeAd, didDismissScreen viewController: UIViewController?) {
print(#function)
}

func close(_ ad: NativeAd) {
print(#function)
}
}
Loading

0 comments on commit b637552

Please sign in to comment.