Skip to content

Commit

Permalink
SPM Support for IMA SDK (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleege authored Jun 29, 2023
1 parent a2c7297 commit ddc2fe6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"pins" : [
{
"identity" : "swift-package-manager-google-interactive-media-ads-ios",
"kind" : "remoteSourceControl",
"location" : "https://github.com/googleads/swift-package-manager-google-interactive-media-ads-ios.git",
"state" : {
"revision" : "d2a86d37798cfb609bd2bedaef81d332dac5d5eb",
"version" : "3.19.1"
}
},
{
"identity" : "uid2-ios-sdk",
"kind" : "remoteSourceControl",
Expand Down
11 changes: 3 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,16 @@ let package = Package(
targets: ["UID2IMAPlugin"])
],
dependencies: [
.package(url: "https://github.com/IABTechLab/uid2-ios-sdk.git", from: "0.2.0")
// Google IMA SDK will become a dependency here once Google adds SPM support (Expected Q2 2023)
.package(url: "https://github.com/IABTechLab/uid2-ios-sdk.git", from: "0.2.0"),
.package(url: "https://github.com/googleads/swift-package-manager-google-interactive-media-ads-ios.git", from: "3.18.5")
],
targets: [
.target(
name: "UID2IMAPlugin",
dependencies: [
.product(name: "UID2", package: "uid2-ios-sdk"),
"GoogleInteractiveMediaAds"
.product(name: "GoogleInteractiveMediaAds", package: "swift-package-manager-google-interactive-media-ads-ios")
]),
// Binary Target will removed once Google IMA supports SPM (Expected Q2 2023)
// IMA 3.18.5 is first public beta of IMA with Secure Signals
.binaryTarget(name: "GoogleInteractiveMediaAds",
url: "https://imasdk.googleapis.com/native/downloads/ima-ios-v3.18.5.zip",
checksum: "f8473b337f4a24d0cf92e3e25227a9d33de139597b18332c368629ed30871422"),
.testTarget(
name: "UID2IMAPluginTests",
dependencies: ["UID2IMAPlugin"],
Expand Down

0 comments on commit ddc2fe6

Please sign in to comment.