-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
64 lines (62 loc) · 2.46 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// swift-tools-version: 5.7;
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "YandexMobileAdsPackage",
platforms: [
.iOS("13.0")
],
products: [
.library(
name: "YandexMobileAdsPackage",
targets: ["YandexMobileAdsTarget"]
)
],
dependencies: [
.package(url: "https://github.com/yandexmobile/metrica-sdk-ios", "4.0.0"..<"5.0.0"),
.package(url: "https://github.com/divkit/divkit-ios", exact: "28.11.0")
],
targets: [
.target(
name: "YandexMobileAdsTarget",
dependencies: [
.target(name: "YandexMobileAdsInstream"),
.target(name: "YandexMobileAds"),
.product(name: "YandexMobileMetrica", package: "metrica-sdk-ios"),
.product(name: "DivKit", package: "divkit-ios")
],
path: "YandexMobileAdsTarget",
resources: [
.process("PrivacyInfo.xcprivacy")
],
linkerSettings: [
.linkedFramework("AVFoundation"),
.linkedFramework("AdSupport"),
.linkedFramework("CoreGraphics"),
.linkedFramework("CoreImage"),
.linkedFramework("CoreLocation"),
.linkedFramework("CoreMedia"),
.linkedFramework("CoreTelephony"),
.linkedFramework("CoreText"),
.linkedFramework("Foundation"),
.linkedFramework("Network"),
.linkedFramework("QuartzCore"),
.linkedFramework("StoreKit"),
.linkedFramework("SwiftUI"),
.linkedFramework("SystemConfiguration"),
.linkedFramework("UIKit"),
.linkedFramework("WebKit")
]
),
.binaryTarget(
name: "YandexMobileAdsInstream",
url: "https://ads-mobile-sdk.s3.yandex.net/YandexMobileAdsInstream/0.22.0/spm/9bb45710-0188-498d-bd1a-c3de64059dbd.zip",
checksum: "08a6363ee9b4f2eed99dd715421d167146a15e8992d3c108b43668eaa6b95322"
),
.binaryTarget(
name: "YandexMobileAds",
url: "https://ads-mobile-sdk.s3.yandex.net/Yandex/YandexMobileAds/6.2.0/spm/8d4fcad6-0c2a-4502-8866-1a5c6ce0997d.zip",
checksum: "1f77f88ae3874eb82b0ec1c56642aec8ddcc679d27acf49627e95463fa745bff"
)
]
)