-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
60 lines (58 loc) · 2.33 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
// 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
let package = Package(
name: "skip-revenuecat",
defaultLocalization: "en",
platforms: [.iOS(.v16), .macOS(.v13)],
products: [
.library(name: "SkipRevenueCat", targets: [
"SkipRevenueCat",
"SkipRevenueCatLibrary"
]),
],
dependencies: [
.package(url: "https://source.skip.tools/skip.git", from: "1.1.6"),
.package(url: "https://source.skip.tools/skip-foundation.git", from: "1.0.0"),
.package(url: "https://github.com/RevenueCat/purchases-hybrid-common.git", exact: "13.13.1")
],
targets: [
.target(
name: "SkipRevenueCat",
dependencies: [
.product(name: "SkipFoundation", package: "skip-foundation"),
.product(name: "PurchasesHybridCommon", package: "purchases-hybrid-common"),
.product(name: "PurchasesHybridCommonUI", package: "purchases-hybrid-common"),
"SkipRevenueCatLibrary"
],
exclude: [
"../../skip-revenuecat-library/",
"../../skip-revenuecat-app/"
],
resources: [.process("Resources")],
plugins: [.plugin(name: "skipstone", package: "skip")]
),
// .binaryTarget(
// name: "SkipRevenueCatLibrary",
// path: "./skip-revenuecat-library/skip-revenuecat-library/build/XCFrameworks/release/SkipRevenueCatLibrary.xcframework"
// ),
.binaryTarget(
name: "SkipRevenueCatLibrary",
url: "https://api.github.com/repos/aduryagin/skip-revenuecat/releases/assets/194906779.zip",
checksum: "2d2dc5913cc03d028d4b2cdf3bc9b8302abbdae323df69533d8ee50c02114ced"
),
.testTarget(
name: "SkipRevenueCatTests",
dependencies: [
"SkipRevenueCat",
.product(name: "SkipTest", package: "skip")
],
resources: [.process("Resources")],
plugins: [.plugin(name: "skipstone", package: "skip")]
)
]
)