-
Notifications
You must be signed in to change notification settings - Fork 6
/
Package.swift
149 lines (135 loc) · 7.86 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// swift-tools-version: 5.9
// This is free software: you can redistribute and/or modify it
// under the terms of the GNU Lesser General Public License 3.0
// as published by the Free Software Foundation https://fsf.org
import PackageDescription
import Foundation
let skipstone = [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]
let package = Package(
name: "skip-firebase",
defaultLocalization: "en",
platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .watchOS(.v9), .macCatalyst(.v16)],
products: [
.library(name: "SkipFirebaseCore", targets: ["SkipFirebaseCore"]),
.library(name: "SkipFirebaseFirestore", targets: ["SkipFirebaseFirestore"]),
.library(name: "SkipFirebaseAuth", targets: ["SkipFirebaseAuth"]),
.library(name: "SkipFirebaseAppCheck", targets: ["SkipFirebaseAppCheck"]),
.library(name: "SkipFirebaseMessaging", targets: ["SkipFirebaseMessaging"]),
.library(name: "SkipFirebaseCrashlytics", targets: ["SkipFirebaseCrashlytics"]),
.library(name: "SkipFirebaseAnalytics", targets: ["SkipFirebaseAnalytics"]),
.library(name: "SkipFirebaseRemoteConfig", targets: ["SkipFirebaseRemoteConfig"]),
.library(name: "SkipFirebaseDatabase", targets: ["SkipFirebaseDatabase"]),
.library(name: "SkipFirebaseFunctions", targets: ["SkipFirebaseFunctions"]),
.library(name: "SkipFirebaseInstallations", targets: ["SkipFirebaseInstallations"]),
.library(name: "SkipFirebaseStorage", targets: ["SkipFirebaseStorage"]),
],
dependencies: [
.package(url: "https://source.skip.tools/skip.git", from: "1.1.16"),
.package(url: "https://source.skip.tools/skip-foundation.git", from: "1.1.12"),
.package(url: "https://source.skip.tools/skip-model.git", from: "1.3.1"),
.package(url: "https://source.skip.tools/skip-ui.git", from: "1.13.6"),
.package(url: "https://github.com/firebase/firebase-ios-sdk.git", from: "11.0.0")
],
targets: [
.target(name: "SkipFirebaseCore", dependencies: [
.product(name: "SkipFoundation", package: "skip-foundation"),
.product(name: "SkipModel", package: "skip-model"),
// we would like to use "FirebaseCore", but it is not exposed as a product;
// "FirebaseInstallations" is the next best thing, since it has few depencencies
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseCoreTests", dependencies: [
"SkipFirebaseCore",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseFirestore", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseFirestore", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseFirestoreTests", dependencies: [
"SkipFirebaseFirestore",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseAuth", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseAuth", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseAuthTests", dependencies: [
"SkipFirebaseAuth",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseAppCheck", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseAppCheck", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseAppCheckTests", dependencies: [
"SkipFirebaseAppCheck",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseMessaging", dependencies: [
"SkipFirebaseCore",
.product(name: "SkipUI", package: "skip-ui"),
.product(name: "FirebaseMessaging", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseMessagingTests", dependencies: [
"SkipFirebaseMessaging",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseCrashlytics", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseCrashlytics", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseCrashlyticsTests", dependencies: [
"SkipFirebaseCrashlytics",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseAnalytics", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseAnalytics", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseAnalyticsTests", dependencies: [
"SkipFirebaseAnalytics",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseRemoteConfig", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseRemoteConfig", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseRemoteConfigTests", dependencies: [
"SkipFirebaseRemoteConfig",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseDatabase", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseDatabase", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseDatabaseTests", dependencies: [
"SkipFirebaseDatabase",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseFunctions", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseFunctions", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseFunctionsTests", dependencies: [
"SkipFirebaseFunctions",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseInstallations", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseInstallations", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseInstallationsTests", dependencies: [
"SkipFirebaseInstallations",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
.target(name: "SkipFirebaseStorage", dependencies: [
"SkipFirebaseCore",
.product(name: "FirebaseStorage", package: "firebase-ios-sdk"),
], resources: [.process("Resources")], plugins: skipstone),
.testTarget(name: "SkipFirebaseStorageTests", dependencies: [
"SkipFirebaseStorage",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: skipstone),
]
)