Skip to content

Commit

Permalink
Demo to SPM (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
laves authored Oct 24, 2024
1 parent 4752d9c commit 083c02a
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 189 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ios-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Cocoapods
run: gem install cocoapods

- name: Run Cocoapods
run: pod install

- name: XCode Build
run: xcodebuild build
-configuration Debug
-workspace ios-voice-processor.xcworkspace
-project ios-voice-processor.xcodeproj
-sdk iphoneos
-scheme ios-voice-processor-Example
-destination "platform=iOS Simulator,name=iPhone 12"
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/ios-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Cocoapods
run: gem install cocoapods

- name: Run Cocoapods
run: pod install

- name: XCode Build
run: xcodebuild test
-configuration Debug
-workspace ios-voice-processor.xcworkspace
-project ios-voice-processor.xcodeproj
-sdk iphoneos
-scheme ios-voice-processor-Example
-destination "platform=iOS Simulator,name=iPhone 15"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.DS_Store

# Xcode
.build/
build/
*.pbxuser
!default.pbxuser
Expand Down
7 changes: 3 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// swift-tools-version:5.5
// swift-tools-version:5.3
import PackageDescription

let package = Package(
name: "ios-voice-processor",
platforms: [
.iOS(.v11)
.iOS(.v13)
],
products: [
.library(
Expand All @@ -18,6 +18,5 @@ let package = Package(
.linkedFramework("AVFoundation")
]
)
],
swiftLanguageVersions: [.v5]
]
)
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ listeners.

## Compatibility

- iOS 11.0+
- iOS 13.0+

## Installation

Expand Down Expand Up @@ -130,6 +130,10 @@ The [iOS Voice Processor app](./example) demonstrates how to ask for user permis

## Releases

### v1.2.0 - October 24, 2024
- Add support for Swift Package Manager
- Bumped minimum iOS version to 13

### v1.1.0 - July 31, 2023
- Numerous API improvements
- Error handling improvements
Expand Down
11 changes: 0 additions & 11 deletions example/Podfile

This file was deleted.

16 changes: 0 additions & 16 deletions example/Podfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This is an example app that demonstrates how to ask for user permissions and cap

## Compatibility

- iOS 11.0+
- iOS 13.0+

## Building

Expand Down
212 changes: 72 additions & 140 deletions example/ios-voice-processor.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ios-voice-processor.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Pod::Spec.new do |s|
s.name = 'ios-voice-processor'
s.module_name = 'ios_voice_processor'
s.version = '1.1.2'
s.version = '1.2.0'
s.summary = 'An asynchronous iOS audio recording library designed for real-time speech audio processing.'
s.description = <<-DESC
The iOS Voice Processor is an asynchronous audio capture library designed for real-time audio processing.
Expand All @@ -22,7 +22,7 @@ Pod::Spec.new do |s|
s.author = { 'Picovoice' => '[email protected]' }
s.source = { :git => 'https://github.com/Picovoice/ios-voice-processor.git', :tag => s.version.to_s }

s.ios.deployment_target = '11.0'
s.ios.deployment_target = '13.0'
s.swift_version = '5.0'
s.source_files = 'src/ios_voice_processor/VoiceProcessor*.swift'
s.frameworks = 'AVFoundation'
Expand Down
2 changes: 2 additions & 0 deletions src/ios_voice_processor/VoiceProcessorErrors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
// specific language governing permissions and limitations under the License.
//

import Foundation

public class VoiceProcessorError: LocalizedError {
private let message: String

Expand Down

0 comments on commit 083c02a

Please sign in to comment.