From 38108b4332c5780479a3300910f84a3fee97f9b7 Mon Sep 17 00:00:00 2001 From: "J. Doe (https://devcenter.bitrise.io/builds/setting-your-git-credentials-on-build-machines/)" Date: Wed, 9 Sep 2020 16:19:05 +0000 Subject: [PATCH] Release 4.7.7 --- CHANGELOG.md | 5 +++++ MoPub-Teads-Adapters.podspec | 4 ++-- README.md | 18 +++++++++--------- .../MPAdapterTeadsMediatedNativeAd.swift | 0 .../{Native => }/MPAdapterTeadsNative.swift | 0 .../MPAdapterTeadsNativeAdRenderer.swift | 10 ++++++---- ...PAdapterTeadsNativeAdRendererSettings.swift | 0 7 files changed, 22 insertions(+), 15 deletions(-) rename TeadsMoPubAdapter/{Native => }/MPAdapterTeadsMediatedNativeAd.swift (100%) rename TeadsMoPubAdapter/{Native => }/MPAdapterTeadsNative.swift (100%) rename TeadsMoPubAdapter/{Native => }/MPAdapterTeadsNativeAdRenderer.swift (95%) rename TeadsMoPubAdapter/{Native => }/MPAdapterTeadsNativeAdRendererSettings.swift (100%) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0b7ff0..d07d968 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Teads - iOS MoPub Mediation Adapter +### v4.7.7 +_2020-09-09_ +- Update version to match TeadsSDK + ### v4.7.6 _2020-07-30_ - support MoPub 5.13+ dependency @@ -10,6 +14,7 @@ _2020-07-23_ ### v4.7.4 _2020-07-20_ +- Bitcode compatibility - Fixes and improvements ### v4.7.3 diff --git a/MoPub-Teads-Adapters.podspec b/MoPub-Teads-Adapters.podspec index b45466e..33f4178 100644 --- a/MoPub-Teads-Adapters.podspec +++ b/MoPub-Teads-Adapters.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'MoPub-Teads-Adapters' - s.version = '4.7.6' + s.version = '4.7.7' s.summary = "MoPub Adapter for Teads' iOS SDK" s.module_name = 'TeadsMoPubAdapter' s.description = <<-DESC @@ -20,7 +20,7 @@ Pod::Spec.new do |s| s.source_files = 'TeadsMoPubAdapter/**/*{.swift}' s.swift_versions = ['4.3', '5.0', '5.1'] - s.dependency 'TeadsSDK', "4.7.5" + s.dependency 'TeadsSDK', s.version.to_s s.dependency 'mopub-ios-sdk', '>= 5.13' end diff --git a/README.md b/README.md index 88b070c..3341b84 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ If you want to display Teads ads in your iOS application through MoPub mediation ## Requirements -- ![Platform: iOS 9+](https://img.shields.io/badge/Platform-iOS%209%2B-blue.svg?style=flat) -- ![Xcode: 9.0+](https://img.shields.io/badge/Xcode-9.0+-blue.svg?style=flat) -- ![MoPub SDK: 5.5+](https://img.shields.io/badge/MoPub%20SDK-5.5+-blue.svg?style=flat) -- ![Teads SDK: 4.7.3+](https://img.shields.io/badge/Teads%20SDK-4.7.3+-blue.svg?style=flat) +- ![Platform: iOS 10+](https://img.shields.io/badge/Platform-iOS%209%2B-blue.svg?style=flat) +- ![Xcode: 11.0+](https://img.shields.io/badge/Xcode-9.0+-blue.svg?style=flat) +- ![MoPub SDK: 5.13+](https://img.shields.io/badge/MoPub%20SDK-5.5+-blue.svg?style=flat) +- ![Teads SDK: 4.7.7+](https://img.shields.io/badge/Teads%20SDK-4.7.7+-blue.svg?style=flat) ## Features @@ -27,25 +27,25 @@ It will install Teads adapter and Teads SDK. 1. Add pod named `MoPub-Teads-Adapters` in your Podfile: ```ruby -platform :ios, '9.0' +platform :ios, '10.0' pod 'MoPub-Teads-Adapters' ``` 2. Run `pod install --repo-update` to install the adapter in your project. -3. Follow the [Define Custom Event](https://support.teads.tv/support/solutions/articles/36000166728-mopub#defining_a_custom_event) step to finish the integration. +3. Follow the [Define Custom Event](https://support.teads.tv/support/solutions/articles/36000166728-mopub-ios#defining_a_custom_event) step to finish the integration. 4. You’re done. #### Manually -1. Integrate latest version of Teads SDK to your project using this [Quick Start Guide](http://mobile.teads.tv/sdk/documentation/v4/ios/get-started). +1. Integrate latest version of Teads SDK to your project using this [Quick Start Guide](https://support.teads.tv/support/solutions/articles/36000165909-ios). 2. Download latest release of [`TeadsMoPubAdapter`](https://github.com/teads/TeadsSDK-iOS/releases). 3. Drop adapter files in your iOS project. -4. Follow the [Define Custom Event](https://support.teads.tv/support/solutions/articles/36000166728-mopub#defining_a_custom_event) step to finish the integration. +4. Follow the [Define Custom Event](https://support.teads.tv/support/solutions/articles/36000166728-mopub-ios#defining_a_custom_event) step to finish the integration. 5. You’re done. ## Integration Documentation -Integration instructions are available on [Teads SDK Documentation](https://support.teads.tv/support/solutions/articles/36000166728-mopub). +Integration instructions are available on [Teads SDK Documentation](https://support.teads.tv/support/solutions/articles/36000166728-mopub-ios). ## Changelog diff --git a/TeadsMoPubAdapter/Native/MPAdapterTeadsMediatedNativeAd.swift b/TeadsMoPubAdapter/MPAdapterTeadsMediatedNativeAd.swift similarity index 100% rename from TeadsMoPubAdapter/Native/MPAdapterTeadsMediatedNativeAd.swift rename to TeadsMoPubAdapter/MPAdapterTeadsMediatedNativeAd.swift diff --git a/TeadsMoPubAdapter/Native/MPAdapterTeadsNative.swift b/TeadsMoPubAdapter/MPAdapterTeadsNative.swift similarity index 100% rename from TeadsMoPubAdapter/Native/MPAdapterTeadsNative.swift rename to TeadsMoPubAdapter/MPAdapterTeadsNative.swift diff --git a/TeadsMoPubAdapter/Native/MPAdapterTeadsNativeAdRenderer.swift b/TeadsMoPubAdapter/MPAdapterTeadsNativeAdRenderer.swift similarity index 95% rename from TeadsMoPubAdapter/Native/MPAdapterTeadsNativeAdRenderer.swift rename to TeadsMoPubAdapter/MPAdapterTeadsNativeAdRenderer.swift index 236d76e..a45dde0 100644 --- a/TeadsMoPubAdapter/Native/MPAdapterTeadsNativeAdRenderer.swift +++ b/TeadsMoPubAdapter/MPAdapterTeadsNativeAdRenderer.swift @@ -133,10 +133,12 @@ typealias TeadsUIViewMPNativeAdRendering = UIView & MPNativeAdRendering if let text = adapter.properties[property] as? String { if let label = assetView as? UILabel { label.text = text - } else if let imageView = assetView as? UIImageView { - UIImage.loadSync(url: text) { (image) in - imageView.image = image - } + } else if let imageView = assetView as? UIImageView, let imageAsset = asset as? TeadsNativeImageAsset { + imageAsset.loadImage(success: { image in + DispatchQueue.main.async { + imageView.image = image + } + }) } } } diff --git a/TeadsMoPubAdapter/Native/MPAdapterTeadsNativeAdRendererSettings.swift b/TeadsMoPubAdapter/MPAdapterTeadsNativeAdRendererSettings.swift similarity index 100% rename from TeadsMoPubAdapter/Native/MPAdapterTeadsNativeAdRendererSettings.swift rename to TeadsMoPubAdapter/MPAdapterTeadsNativeAdRendererSettings.swift