-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathPackage.swift
More file actions
62 lines (61 loc) · 2.39 KB
/
Package.swift
File metadata and controls
62 lines (61 loc) · 2.39 KB
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
// 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", exact: "1.6.5"),
.package(url: "https://source.skip.tools/skip-foundation.git", exact: "1.3.8"),
.package(url: "https://github.com/RevenueCat/purchases-hybrid-common.git", exact: "15.0.0"),
],
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: [],
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://github.com/aduryagin/skip-revenuecat/releases/download/0.0.14/SkipRevenueCatLibrary.xcframework.zip",
checksum: "4573ad749415f6422031b3320495f691753fd6f6c0903c52fc79d1a792ff9680"
),
.testTarget(
name: "SkipRevenueCatTests",
dependencies: [
"SkipRevenueCat",
.product(name: "SkipTest", package: "skip"),
],
resources: [.process("Resources")],
plugins: [.plugin(name: "skipstone", package: "skip")]
),
]
)