Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 38 additions & 2 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ let package = Package(
name: "UID2IMAPlugin",
defaultLocalization: "en",
platforms: [
.iOS(.v12)
.iOS(.v15)
],
products: [
.library(
name: "UID2IMAPlugin",
targets: ["UID2IMAPlugin"])
],
dependencies: [
.package(url: "https://github.com/IABTechLab/uid2-ios-sdk.git", "1.7.0" ..< "3.0.0"),
.package(url: "https://github.com/IABTechLab/uid2-ios-sdk.git", "1.7.0" ..< "4.0.0"),
.package(url: "https://github.com/googleads/swift-package-manager-google-interactive-media-ads-ios.git", from: "3.18.5")
],
targets: [
Expand Down
11 changes: 2 additions & 9 deletions Sources/UID2IMAPlugin/EUIDIMASecureSignalsAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import UID2
public class EUIDIMASecureSignalsAdapter: NSObject {

required public override init() {
guard isOperatingSystemSupported else {
return
}
// Ensure UID2Manager has started
_ = EUIDManager.shared
}
Expand All @@ -25,9 +22,9 @@ extension EUIDIMASecureSignalsAdapter: IMASecureSignalsAdapter {

public static func adapterVersion() -> IMAVersion {
let version = IMAVersion()
version.majorVersion = 1
version.majorVersion = 2
version.minorVersion = 0
version.patchVersion = 4
version.patchVersion = 0
return version
}

Expand All @@ -41,10 +38,6 @@ extension EUIDIMASecureSignalsAdapter: IMASecureSignalsAdapter {
}

public func collectSignals(completion: @escaping IMASignalCompletionHandler) {
guard isOperatingSystemSupported else {
completion(nil, OperatingSystemUnsupportedError())
return
}
Task {
guard let advertisingToken = await EUIDManager.shared.getAdvertisingToken() else {
completion(nil, AdvertisingTokenNotFoundError())
Expand Down
20 changes: 0 additions & 20 deletions Sources/UID2IMAPlugin/OperatingSystemSupport.swift

This file was deleted.

11 changes: 2 additions & 9 deletions Sources/UID2IMAPlugin/UID2IMASecureSignalsAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ import UID2
public class UID2IMASecureSignalsAdapter: NSObject {

required public override init() {
guard isOperatingSystemSupported else {
return
}
// Ensure UID2Manager has started
_ = UID2Manager.shared
}
Expand All @@ -28,9 +25,9 @@ extension UID2IMASecureSignalsAdapter: IMASecureSignalsAdapter {

public static func adapterVersion() -> IMAVersion {
let version = IMAVersion()
version.majorVersion = 1
version.majorVersion = 2
version.minorVersion = 0
version.patchVersion = 4
version.patchVersion = 0
return version
}

Expand All @@ -44,10 +41,6 @@ extension UID2IMASecureSignalsAdapter: IMASecureSignalsAdapter {
}

public func collectSignals(completion: @escaping IMASignalCompletionHandler) {
guard isOperatingSystemSupported else {
completion(nil, OperatingSystemUnsupportedError())
return
}
Task {
guard let advertisingToken = await UID2Manager.shared.getAdvertisingToken() else {
completion(nil, AdvertisingTokenNotFoundError())
Expand Down
8 changes: 4 additions & 4 deletions UID2IMAPlugin.podspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "1.0.4",
"version": "2.0.0",
"authors": {
"David Snabel-Caunt": "dave.snabel-caunt@thetradedesk.com"
},
"source": {
"git": "https://github.com/IABTechLab/uid2-ios-plugin-google-ima.git",
"tag": "v1.0.4"
"tag": "v2.0.0"
},
"platforms": {
"ios": "12.0"
"ios": "15.0"
},
"swift_versions": [
"5"
Expand All @@ -31,7 +31,7 @@
],
"UID2": [
">= 1.7.0",
"< 3.0"
"< 4.0"
]
}
}
Loading