From d4cc73f645f7733bf1a6b93a5d0249e925ab7188 Mon Sep 17 00:00:00 2001 From: Dave Snabel-Caunt Date: Mon, 19 Aug 2024 16:36:31 +0100 Subject: [PATCH] Widen platform support for iOS 12 --- .../xcshareddata/swiftpm/Package.resolved | 4 ++-- Package.resolved | 4 ++-- Package.swift | 10 ++++------ .../UID2IMAPlugin/UID2IMASecureSignalsAdapter.swift | 5 +++-- UID2IMAPlugin.podspec.json | 9 ++++----- 5 files changed, 15 insertions(+), 17 deletions(-) diff --git a/Development/UID2GoogleIMADevelopmentApp/UID2GoogleIMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Development/UID2GoogleIMADevelopmentApp/UID2GoogleIMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 80a605a..b047ec1 100644 --- a/Development/UID2GoogleIMADevelopmentApp/UID2GoogleIMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/Development/UID2GoogleIMADevelopmentApp/UID2GoogleIMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -23,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/IABTechLab/uid2-ios-sdk.git", "state" : { - "revision" : "91c290d29a7093cfc209eca493d1fee80c17e16a", - "version" : "1.2.4" + "branch" : "dave/wider-platform-support", + "revision" : "5ff81fa73ebcd6b2244e24bef49d6e87aa545d57" } } ], diff --git a/Package.resolved b/Package.resolved index 80a605a..b047ec1 100644 --- a/Package.resolved +++ b/Package.resolved @@ -23,8 +23,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/IABTechLab/uid2-ios-sdk.git", "state" : { - "revision" : "91c290d29a7093cfc209eca493d1fee80c17e16a", - "version" : "1.2.4" + "branch" : "dave/wider-platform-support", + "revision" : "5ff81fa73ebcd6b2244e24bef49d6e87aa545d57" } } ], diff --git a/Package.swift b/Package.swift index 4d0ed2c..2d96fdf 100644 --- a/Package.swift +++ b/Package.swift @@ -7,7 +7,7 @@ let package = Package( name: "UID2IMAPlugin", defaultLocalization: "en", platforms: [ - .iOS(.v13) + .iOS(.v12) ], products: [ .library( @@ -15,7 +15,7 @@ let package = Package( targets: ["UID2IMAPlugin"]) ], 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", .branchItem("dave/wider-platform-support")), .package(url: "https://github.com/googleads/swift-package-manager-google-interactive-media-ads-ios.git", from: "3.18.5") ], targets: [ @@ -30,9 +30,7 @@ let package = Package( ]), .testTarget( name: "UID2IMAPluginTests", - dependencies: ["UID2IMAPlugin"], - resources: [ - .copy("TestData") - ]) + dependencies: ["UID2IMAPlugin"] + ) ] ) diff --git a/Sources/UID2IMAPlugin/UID2IMASecureSignalsAdapter.swift b/Sources/UID2IMAPlugin/UID2IMASecureSignalsAdapter.swift index 961d87d..0fdc245 100644 --- a/Sources/UID2IMAPlugin/UID2IMASecureSignalsAdapter.swift +++ b/Sources/UID2IMAPlugin/UID2IMASecureSignalsAdapter.swift @@ -20,13 +20,14 @@ public class UID2IMASecureSignalsAdapter: NSObject { } +@available(iOS 13, *) extension UID2IMASecureSignalsAdapter: IMASecureSignalsAdapter { public static func adapterVersion() -> IMAVersion { let version = IMAVersion() version.majorVersion = 0 - version.minorVersion = 3 - version.patchVersion = 3 + version.minorVersion = 4 + version.patchVersion = 0 return version } diff --git a/UID2IMAPlugin.podspec.json b/UID2IMAPlugin.podspec.json index 916fb78..86bd39d 100644 --- a/UID2IMAPlugin.podspec.json +++ b/UID2IMAPlugin.podspec.json @@ -3,16 +3,16 @@ "summary": "A plugin for integrating UID2 and Google IMA into iOS applications.", "homepage": "https://unifiedid.com/", "license": "Apache License, Version 2.0", - "version": "0.3.3", + "version": "0.4.0-beta", "authors": { "David Snabel-Caunt": "dave.snabel-caunt@thetradedesk.com" }, "source": { "git": "https://github.com/IABTechLab/uid2-ios-plugin-google-ima.git", - "tag": "v0.3.3" + "tag": "v0.4.0-beta" }, "platforms": { - "ios": "13.0" + "ios": "12.0" }, "swift_versions": [ "5" @@ -30,8 +30,7 @@ "~> 3.18" ], "UID2": [ - ">= 0.2", - "< 2.0" + "1.6.0-beta" ] } }