-
Notifications
You must be signed in to change notification settings - Fork 499
/
Package.swift
64 lines (63 loc) · 2.25 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "Porcupine-iOS",
platforms: [
.iOS(.v13)
],
products: [
.library(
name: "Porcupine",
targets: ["Porcupine"]
)
],
dependencies: [
.package(
url: "https://github.com/Picovoice/ios-voice-processor.git",
.upToNextMajor(from: "1.2.0")
)
],
targets: [
.binaryTarget(
name: "PvPorcupine",
path: "lib/ios/PvPorcupine.xcframework"
),
.target(
name: "Porcupine",
dependencies: [
"PvPorcupine",
.product(name: "ios_voice_processor", package: "ios-voice-processor")
],
path: ".",
exclude: [
"binding/ios/PorcupineAppTest",
"binding/flutter",
"binding/react-native",
"binding/unity",
"demo"
],
sources: [
"binding/ios/Porcupine.swift",
"binding/ios/PorcupineErrors.swift",
"binding/ios/PorcupineManager.swift"
],
resources: [
.copy("resources/keyword_files/ios/alexa_ios.ppn"),
.copy("resources/keyword_files/ios/americano_ios.ppn"),
.copy("resources/keyword_files/ios/blueberry_ios.ppn"),
.copy("resources/keyword_files/ios/bumblebee_ios.ppn"),
.copy("resources/keyword_files/ios/computer_ios.ppn"),
.copy("resources/keyword_files/ios/grapefruit_ios.ppn"),
.copy("resources/keyword_files/ios/grasshopper_ios.ppn"),
.copy("resources/keyword_files/ios/hey google_ios.ppn"),
.copy("resources/keyword_files/ios/hey siri_ios.ppn"),
.copy("resources/keyword_files/ios/jarvis_ios.ppn"),
.copy("resources/keyword_files/ios/ok google_ios.ppn"),
.copy("resources/keyword_files/ios/picovoice_ios.ppn"),
.copy("resources/keyword_files/ios/porcupine_ios.ppn"),
.copy("resources/keyword_files/ios/terminator_ios.ppn"),
.copy("lib/common/porcupine_params.pv")
]
)
]
)