Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 2fed695

Browse files
committed
spm compatible
1 parent 0cad878 commit 2fed695

File tree

23 files changed

+277
-424
lines changed

23 files changed

+277
-424
lines changed

.github/workflows/ios-browserstack.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,20 @@ jobs:
4343
- run:
4444
pip3 install requests
4545

46-
- name: Install Cocoapods
47-
run: gem install cocoapods
48-
4946
- name: Make build dir
5047
run: mkdir ddp
5148

5249
- name: Copy test_resources
5350
run: ./copy_test_resources.sh
5451

55-
- name: Run Cocoapods
56-
run: pod install
57-
5852
- name: Inject AccessKey
5953
run: sed -i '.bak' 's:{TESTING_ACCESS_KEY_HERE}:${{secrets.PV_VALID_ACCESS_KEY}}:'
6054
PicovoiceAppTestUITests/BaseTest.swift
6155

6256
- name: XCode Build
6357
run: xcrun xcodebuild build-for-testing
6458
-configuration Debug
65-
-workspace PicovoiceAppTest.xcworkspace
59+
-project PicovoiceAppTest.xcodeproj
6660
-sdk iphoneos
6761
-scheme PicovoiceAppTest
6862
-derivedDataPath ddp

.github/workflows/ios-demos.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,10 @@ jobs:
2626
with:
2727
submodules: recursive
2828

29-
- name: Set up Node.js LTS
30-
uses: actions/setup-node@v3
31-
with:
32-
node-version: lts/*
33-
34-
- name: Install Cocoapods
35-
run: gem install cocoapods
36-
37-
- name: Make build dir
38-
run: mkdir ddp
39-
40-
- name: Run Cocoapods
41-
run: pod install
42-
4329
- name: Build English
4430
run: xcrun xcodebuild build
4531
-configuration Debug
46-
-workspace PicovoiceForegroundAppDemo.xcworkspace
32+
-project PicovoiceForegroundAppDemo.xcodeproj
4733
-sdk iphoneos
4834
-scheme _enDemo
4935
-derivedDataPath ddp
@@ -52,7 +38,7 @@ jobs:
5238
- name: Build Other Language
5339
run: xcrun xcodebuild build
5440
-configuration Debug
55-
-workspace PicovoiceForegroundAppDemo.xcworkspace
41+
-project PicovoiceForegroundAppDemo.xcodeproj
5642
-sdk iphoneos
5743
-scheme deDemo
5844
-derivedDataPath ddp

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ demo/c/cmake-build-debug
99
*.ppn
1010
*.rhn
1111
*.pv
12+
13+
.build
14+
Package.resolved
15+
.swiftpm

.gitmodules

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[submodule "resources/porcupine"]
22
path = resources/porcupine
3-
url = ../porcupine.git
3+
url = https://github.com/Picovoice/porcupine.git
44
[submodule "resources/rhino"]
55
path = resources/rhino
6-
url = ../rhino.git
6+
url = https://github.com/Picovoice/rhino.git
77
[submodule "sdk/unity/VoiceProcessor"]
88
path = sdk/unity/VoiceProcessor
9-
url = ../unity-voice-processor.git
9+
url = https://github.com/Picovoice/unity-voice-processor.git
1010
[submodule "demo/c/pvrecorder"]
1111
path = demo/c/pvrecorder
12-
url = ../pvrecorder.git
12+
url = https://github.com/Picovoice/pvrecorder.git
1313
[submodule "demo/c/dr_libs"]
1414
path = demo/c/dr_libs
15-
url = ../../mackron/dr_libs.git
15+
url = https://github.com/mackron/dr_libs.git

Package.swift

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// swift-tools-version:5.3
2+
import PackageDescription
3+
let package = Package(
4+
name: "Picovoice-iOS",
5+
platforms: [
6+
.iOS(.v13)
7+
],
8+
products: [
9+
.library(
10+
name: "Picovoice",
11+
targets: ["Picovoice"]
12+
)
13+
],
14+
dependencies: [
15+
.package(
16+
url: "https://github.com/Picovoice/porcupine.git",
17+
.upToNextMajor(from: "3.0.4")
18+
),
19+
.package(
20+
url: "https://github.com/Picovoice/rhino.git",
21+
.upToNextMajor(from: "3.0.2")
22+
),
23+
.package(
24+
url: "https://github.com/Picovoice/ios-voice-processor.git",
25+
.upToNextMajor(from: "1.2.0")
26+
)
27+
],
28+
targets: [
29+
.target(
30+
name: "Picovoice",
31+
dependencies: [
32+
.product(name: "Porcupine", package: "porcupine"),
33+
.product(name: "Rhino", package: "rhino"),
34+
.product(name: "ios_voice_processor", package: "ios-voice-processor")
35+
],
36+
path: ".",
37+
exclude: [
38+
"sdk/ios/PicovoiceAppTest",
39+
"sdk/flutter",
40+
"sdk/react-native",
41+
"sdk/unity",
42+
"resources",
43+
"demo"
44+
],
45+
sources: [
46+
"sdk/ios/Picovoice.swift",
47+
"sdk/ios/PicovoiceErrors.swift",
48+
"sdk/ios/PicovoiceManager.swift"
49+
]
50+
)
51+
]
52+
)

demo/ios/BackgroundService/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ SPEC CHECKSUMS:
3131

3232
PODFILE CHECKSUM: 70bc37eb3653f3bc5e7e8808250fd5ec0a6a9393
3333

34-
COCOAPODS: 1.11.3
34+
COCOAPODS: 1.16.2

0 commit comments

Comments
 (0)