Skip to content

Commit

Permalink
Widen platform support for iOS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaunt committed Aug 19, 2024
1 parent 04773b7 commit 1d8ce87
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,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"
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,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"
}
}
],
Expand Down
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: "UID2GMAPlugin",
defaultLocalization: "en",
platforms: [
.iOS(.v13)
.iOS(.v12)
],
products: [
.library(
name: "UID2GMAPlugin",
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", .branchItem("dave/wider-platform-support")),
.package(url: "https://github.com/googleads/swift-package-manager-google-mobile-ads.git", "10.7.0" ..< "12.0.0")
],
targets: [
Expand Down
6 changes: 4 additions & 2 deletions Sources/UID2GMAPlugin/UID2GMAMediationAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ 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 {

required override init() { }

}

@available(iOS 13, *)
extension UID2GMAMediationAdapter: GADRTBAdapter {

static func setUpWith(_ configuration: GADMediationServerConfiguration, completionHandler: @escaping GADMediationAdapterSetUpCompletionBlock) {
Expand All @@ -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
}

Expand Down
9 changes: 4 additions & 5 deletions UID2GMAPlugin.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 GMA 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": "[email protected]"
},
"source": {
"git": "https://github.com/IABTechLab/uid2-ios-plugin-google-gma.git",
"tag": "v0.3.3"
"tag": "v0.4.0-beta"
},
"platforms": {
"ios": "13.0"
"ios": "12.0"
},
"swift_versions": [
"5"
Expand All @@ -31,8 +31,7 @@
"< 12.0"
],
"UID2": [
">= 0.2",
"< 2.0"
"1.6.0-beta"
]
}
}

0 comments on commit 1d8ce87

Please sign in to comment.