From 17435321c02bffc2f07036ebfa65e46fecbdc2e7 Mon Sep 17 00:00:00 2001 From: David Snabel-Caunt Date: Sun, 1 Sep 2024 20:20:14 +0100 Subject: [PATCH] Widen platform support for iOS 12 (#20) --- .../xcshareddata/swiftpm/Package.resolved | 4 ++-- Package.resolved | 4 ++-- Package.swift | 4 ++-- Sources/UID2GMAPlugin/UID2GMAMediationAdapter.swift | 6 ++++-- UID2GMAPlugin.podspec.json | 8 ++++---- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 37aef59..f7ac461 100644 --- a/Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -32,8 +32,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/IABTechLab/uid2-ios-sdk.git", "state" : { - "revision" : "91c290d29a7093cfc209eca493d1fee80c17e16a", - "version" : "1.2.4" + "revision" : "02dc358fa6977357bffc12bad81c7d5650170e27", + "version" : "1.7.0" } } ], diff --git a/Package.resolved b/Package.resolved index c8f9b31..52370ee 100644 --- a/Package.resolved +++ b/Package.resolved @@ -32,8 +32,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/IABTechLab/uid2-ios-sdk.git", "state" : { - "revision" : "91c290d29a7093cfc209eca493d1fee80c17e16a", - "version" : "1.2.4" + "revision" : "02dc358fa6977357bffc12bad81c7d5650170e27", + "version" : "1.7.0" } } ], diff --git a/Package.swift b/Package.swift index 3550966..1a1cc36 100644 --- a/Package.swift +++ b/Package.swift @@ -7,7 +7,7 @@ let package = Package( name: "UID2GMAPlugin", defaultLocalization: "en", platforms: [ - .iOS(.v13) + .iOS(.v12) ], products: [ .library( @@ -15,7 +15,7 @@ let package = Package( targets: ["UID2GMAPlugin"]) ], dependencies: [ - .package(url: "https://github.com/IABTechLab/uid2-ios-sdk.git", "0.2.0" ..< "2.0.0"), + .package(url: "https://github.com/IABTechLab/uid2-ios-sdk.git", "1.7.0" ..< "2.0.0"), .package(url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git", "10.7.0" ..< "12.0.0") ], targets: [ diff --git a/Sources/UID2GMAPlugin/UID2GMAMediationAdapter.swift b/Sources/UID2GMAPlugin/UID2GMAMediationAdapter.swift index 3e97fd4..e17a10e 100644 --- a/Sources/UID2GMAPlugin/UID2GMAMediationAdapter.swift +++ b/Sources/UID2GMAPlugin/UID2GMAMediationAdapter.swift @@ -11,6 +11,7 @@ import UID2 /// Adapter to connect UID2 to Google Mobile Ads /// https://developers.google.com/admob/ios/open-bidding-adapter +@available(iOS 13, *) @objc(UID2GMAMediationAdapter) class UID2GMAMediationAdapter: NSObject { @@ -18,6 +19,7 @@ class UID2GMAMediationAdapter: NSObject { } +@available(iOS 13, *) extension UID2GMAMediationAdapter: GADRTBAdapter { static func setUpWith(_ configuration: GADMediationServerConfiguration, completionHandler: @escaping GADMediationAdapterSetUpCompletionBlock) { @@ -41,8 +43,8 @@ extension UID2GMAMediationAdapter: GADRTBAdapter { static func adapterVersion() -> GADVersionNumber { var version = GADVersionNumber() version.majorVersion = 0 - version.minorVersion = 3 - version.patchVersion = 3 + version.minorVersion = 4 + version.patchVersion = 0 return version } diff --git a/UID2GMAPlugin.podspec.json b/UID2GMAPlugin.podspec.json index fad5a46..63bb114 100644 --- a/UID2GMAPlugin.podspec.json +++ b/UID2GMAPlugin.podspec.json @@ -3,16 +3,16 @@ "summary": "A plugin for integrating UID2 and Google GMA into iOS applications.", "homepage": "https://unifiedid.com/", "license": "Apache License, Version 2.0", - "version": "0.3.3", + "version": "0.4.0", "authors": { "David Snabel-Caunt": "dave.snabel-caunt@thetradedesk.com" }, "source": { "git": "https://github.com/IABTechLab/uid2-ios-plugin-google-gma.git", - "tag": "v0.3.3" + "tag": "v0.4.0" }, "platforms": { - "ios": "13.0" + "ios": "12.0" }, "swift_versions": [ "5" @@ -31,7 +31,7 @@ "< 12.0" ], "UID2": [ - ">= 0.2", + ">= 1.7.0", "< 2.0" ] }