Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove bitcode from iOS and make available on SPM #1328

Merged
merged 35 commits into from
Oct 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tweak resource access
laves committed Oct 24, 2024
commit dada11b93c2bc496109854890126a6661ccbe271
8 changes: 8 additions & 0 deletions binding/ios/Porcupine.swift
Original file line number Diff line number Diff line change
@@ -14,6 +14,12 @@ import PvPorcupine
/// Low-level iOS binding for Porcupine wake word engine. Provides a Swift interface to the Porcupine library.
public class Porcupine {

#if SWIFT_PACKAGE

static let resourceBundle = Bundle.module

#else

static let resourceBundle: Bundle = {
let myBundle = Bundle(for: Porcupine.self)

@@ -27,6 +33,8 @@ public class Porcupine {
return resourceBundle
}()

#endif

public enum BuiltInKeyword: String, CaseIterable {
case alexa = "Alexa"
case americano = "Americano"