forked from skiptools/skip-supabase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
84 lines (83 loc) · 5.02 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
// swift-tools-version: 5.9
// This is a Skip (https://skip.tools) package,
// containing a Swift Package Manager project
// that will use the Skip build plugin to transpile the
// Swift Package, Sources, and Tests into an
// Android Gradle Project with Kotlin sources and JUnit tests.
import PackageDescription
import Foundation
let package = Package(
name: "skip-supabase",
defaultLocalization: "en",
platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .watchOS(.v9), .macCatalyst(.v16)],
products: [
.library(name: "SkipSupabase", targets: ["SkipSupabase"]),
.library(name: "SkipSupabaseCore", targets: ["SkipSupabaseCore"]),
.library(name: "SkipSupabaseAuth", targets: ["SkipSupabaseAuth"]),
.library(name: "SkipSupabaseFunctions", targets: ["SkipSupabaseFunctions"]),
.library(name: "SkipSupabasePostgREST", targets: ["SkipSupabasePostgREST"]),
.library(name: "SkipSupabaseRealtime", targets: ["SkipSupabaseRealtime"]),
.library(name: "SkipSupabaseStorage", targets: ["SkipSupabaseStorage"]),
],
dependencies: [
.package(url: "https://source.skip.tools/skip.git", from: "1.0.0"),
.package(url: "https://source.skip.tools/skip-foundation.git", from: "1.0.0"),
.package(url: "https://github.com/supabase-community/supabase-swift.git", from: "2.23.0")
],
targets: [
.target(name: "SkipSupabaseCore", dependencies: [
.product(name: "SkipFoundation", package: "skip-foundation")
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.target(name: "SkipSupabaseAuth", dependencies: [
.product(name: "Auth", package: "supabase-swift"),
"SkipSupabaseCore"
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.testTarget(name: "SkipSupabaseAuthTests", dependencies: [
"SkipSupabaseAuth",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.target(name: "SkipSupabaseFunctions", dependencies: [
.product(name: "Functions", package: "supabase-swift"),
"SkipSupabaseCore"
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.testTarget(name: "SkipSupabaseFunctionsTests", dependencies: [
"SkipSupabaseFunctions", .product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.target(name: "SkipSupabasePostgREST", dependencies: [
.product(name: "PostgREST", package: "supabase-swift"),
"SkipSupabaseCore"
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.testTarget(name: "SkipSupabasePostgRESTTests", dependencies: [
"SkipSupabasePostgREST",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.target(name: "SkipSupabaseRealtime", dependencies: [
.product(name: "Realtime", package: "supabase-swift"),
"SkipSupabaseCore"
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.testTarget(name: "SkipSupabaseRealtimeTests", dependencies: [
"SkipSupabaseRealtime",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.target(name: "SkipSupabaseStorage", dependencies: [
.product(name: "Storage", package: "supabase-swift"),
"SkipSupabaseCore"
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.testTarget(name: "SkipSupabaseStorageTests", dependencies: [
"SkipSupabaseStorage",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.target(name: "SkipSupabase", dependencies: [
.product(name: "Supabase", package: "supabase-swift"),
"SkipSupabaseAuth",
"SkipSupabaseFunctions",
"SkipSupabasePostgREST",
"SkipSupabaseRealtime",
"SkipSupabaseStorage"
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
.testTarget(name: "SkipSupabaseTests", dependencies: [
"SkipSupabase",
.product(name: "SkipTest", package: "skip")
], resources: [.process("Resources")], plugins: [Target.PluginUsage.plugin(name: "skipstone", package: "skip")]),
]
)