-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathPackage.swift
87 lines (86 loc) · 2.81 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// swift-tools-version: 5.7
import PackageDescription
let package = Package(
name: "InfobipMobileMessaging",
defaultLocalization: "en",
platforms: [
.iOS(.v12)
],
products: [
.library(
name: "MobileMessaging",
targets: ["MobileMessaging", "MobileMessagingObjC"]
),
.library(
name: "MobileMessagingLogging",
targets: ["MobileMessagingLogging"]
),
.library(
name: "MobileMessagingGeofencing",
targets: ["MobileMessagingGeofencing"]
),
.library(
name: "MobileMessagingInbox",
targets: ["MobileMessagingInbox"]
),
.library(
name: "InAppChat",
targets: ["InAppChat"]
),
.library(
name: "WebRTCUI",
targets: ["WebRTCUI"]
)
],
dependencies: [
.package(url: "https://github.com/infobip/infobip-rtc-ios.git", exact:"2.4.1"),
.package(url: "https://github.com/CocoaLumberjack/CocoaLumberjack.git", from: "3.8.0")
],
targets: [
.target(
name: "MobileMessaging",
dependencies: ["MobileMessagingObjC"],
path: "Classes/MobileMessaging",
resources: [.process("Resources/InteractiveNotifications/PredefinedNotificationCategories.plist"),
.copy("Resources/PrivacyInfo.xcprivacy")]
),
.target(
name: "MobileMessagingObjC",
path: "Classes/MobileMessagingObjC",
exclude: ["Core/Plugins/MobileMessagingPluginApplicationDelegate.m", "Headers/MobileMessagingPluginApplicationDelegate.h"],
publicHeadersPath: "Headers"
),
.target(
name: "MobileMessagingGeofencing",
dependencies: ["MobileMessaging"],
path: "Classes/Geofencing"
),
.target(
name: "MobileMessagingInbox",
dependencies: ["MobileMessaging"],
path: "Classes/Inbox"
),
.target(
name: "InAppChat",
dependencies: ["MobileMessaging"],
path: "Classes/Chat",
resources: [.copy("Resources/ChatConnector.html")]
),
.target(
name: "WebRTCUI",
dependencies: [
"MobileMessaging",
.product(name: "InfobipRTC", package: "infobip-rtc-ios"),
.product(name: "WebRTC", package: "infobip-rtc-ios")
],
path: "Classes/WebRTCUI",
cSettings: [.define("WEBRTCUI_ENABLED")],
swiftSettings: [.define("WEBRTCUI_ENABLED")]
),
.target(
name: "MobileMessagingLogging",
dependencies: ["CocoaLumberjack", "MobileMessaging"],
path: "Classes/Logging"
),
]
)