Skip to content

Commit

Permalink
update ios
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Ho authored and Albert Ho committed Aug 20, 2024
1 parent 9a6d2dd commit c2cdb1d
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 39 deletions.
4 changes: 2 additions & 2 deletions binding/ios/Orca-iOS.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'Orca-iOS'
s.module_name = 'Orca'
s.version = '0.2.2'
s.version = '1.0.0'
s.license = {:type => 'Apache 2.0'}
s.summary = 'iOS binding for Picovoice\'s Orca Text-to-Speech Engine.'
s.description =
Expand All @@ -18,7 +18,7 @@ Pod::Spec.new do |s|
DESC
s.homepage = 'https://github.com/Picovoice/orca/tree/main/binding/ios'
s.author = { 'Picovoice' => '[email protected]' }
s.source = { :git => "https://github.com/Picovoice/orca.git", :tag => "Orca-iOS-v0.2.2" }
s.source = { :git => "https://github.com/Picovoice/orca.git", :tag => "Orca-iOS-v1.0.0" }
s.ios.deployment_target = '13.0'
s.swift_version = '5.0'
s.vendored_frameworks = 'lib/ios/PvOrca.xcframework'
Expand Down
2 changes: 1 addition & 1 deletion binding/ios/OrcaAppTest/OrcaAppTestUITests/BaseTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class BaseTest: XCTestCase {
"female"
]

let accessKey = "{TESTING_ACCESS_KEY_HERE}"
let accessKey = "PI5vbMlGH3K4+HgfM8hk9eIDF6i7CfZMQsn/9MmPrczi7sCfVioy6w=="
var orcas: [Orca] = []
var testData: TestData?

Expand Down
6 changes: 3 additions & 3 deletions binding/ios/OrcaAppTest/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ source 'https://cdn.cocoapods.org/'
platform :ios, '13.0'

target 'OrcaAppTest' do
pod 'Orca-iOS', '~> 0.2.2'
pod 'Orca-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/orca/v1.0/binding/ios/Orca-iOS.podspec'
end

target 'OrcaAppTestUITests' do
pod 'Orca-iOS', '~> 0.2.2'
pod 'Orca-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/orca/v1.0/binding/ios/Orca-iOS.podspec'
end

target 'PerformanceTest' do
pod 'Orca-iOS', '~> 0.2.2'
pod 'Orca-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/orca/v1.0/binding/ios/Orca-iOS.podspec'
end
12 changes: 6 additions & 6 deletions binding/ios/OrcaAppTest/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ PODS:
- Orca-iOS (0.2.2)

DEPENDENCIES:
- Orca-iOS (~> 0.2.2)
- Orca-iOS (from `https://raw.githubusercontent.com/Picovoice/orca/v1.0/binding/ios/Orca-iOS.podspec`)

SPEC REPOS:
trunk:
- Orca-iOS
EXTERNAL SOURCES:
Orca-iOS:
:podspec: https://raw.githubusercontent.com/Picovoice/orca/v1.0/binding/ios/Orca-iOS.podspec

SPEC CHECKSUMS:
Orca-iOS: 567ca0e53671d8fc28ba15338db8fe4ff5101d8d
Orca-iOS: 44c42caf866fb0cf31de77e901acb7dfc24b3d70

PODFILE CHECKSUM: 2deb98490df78cf895d797180dcfeccea4f2ad25
PODFILE CHECKSUM: 8574e18083e80439589d193c1a4bb539879327aa

COCOAPODS: 1.15.2
38 changes: 19 additions & 19 deletions demo/ios/OrcaDemo/OrcaDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
02A1195F268D3FD600A2AC99 /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02A1195E268D3FD600A2AC99 /* ViewModel.swift */; };
1E001B682B76FFE700D8E72D /* AudioPlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E001B672B76FFE700D8E72D /* AudioPlayer.swift */; };
1E001B6A2B7D451200D8E72D /* orca_params_female.pv in Resources */ = {isa = PBXBuildFile; fileRef = 1E001B692B7D451200D8E72D /* orca_params_female.pv */; };
93BE66087E58F64A2193D44C /* libPods-OrcaDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6293833704AEC548A02FB651 /* libPods-OrcaDemo.a */; };
D1F66A0EFCEE9D67CC0E5895 /* libPods-OrcaDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 60284C4EFCEDB8EA3A9AB933 /* libPods-OrcaDemo.a */; };
E125E1892BE99DCA008B6D56 /* AtomicBool.swift in Sources */ = {isa = PBXBuildFile; fileRef = E125E1882BE99DCA008B6D56 /* AtomicBool.swift */; };
E1C5A45F2BE587A2002C0C40 /* AudioPlayerStream.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1C5A45E2BE587A2002C0C40 /* AudioPlayerStream.swift */; };
/* End PBXBuildFile section */
Expand All @@ -25,11 +25,11 @@
02A1194C268D39AB00A2AC99 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
02A11951268D39AB00A2AC99 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
02A1195E268D3FD600A2AC99 /* ViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = "<group>"; };
1C5DAA8ED5D246C3A58AA45B /* Pods-OrcaDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OrcaDemo.release.xcconfig"; path = "Target Support Files/Pods-OrcaDemo/Pods-OrcaDemo.release.xcconfig"; sourceTree = "<group>"; };
101D6E31C841CE609BC379F1 /* Pods-OrcaDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OrcaDemo.release.xcconfig"; path = "Target Support Files/Pods-OrcaDemo/Pods-OrcaDemo.release.xcconfig"; sourceTree = "<group>"; };
1E001B672B76FFE700D8E72D /* AudioPlayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AudioPlayer.swift; sourceTree = "<group>"; };
1E001B692B7D451200D8E72D /* orca_params_female.pv */ = {isa = PBXFileReference; lastKnownFileType = file; name = orca_params_female.pv; path = ../../../../lib/common/orca_params_female.pv; sourceTree = "<group>"; };
3B38AA40E88807F9C21BFD02 /* Pods-OrcaDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OrcaDemo.debug.xcconfig"; path = "Target Support Files/Pods-OrcaDemo/Pods-OrcaDemo.debug.xcconfig"; sourceTree = "<group>"; };
6293833704AEC548A02FB651 /* libPods-OrcaDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-OrcaDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
60284C4EFCEDB8EA3A9AB933 /* libPods-OrcaDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-OrcaDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
9A7670652E0B18EA21BAB871 /* Pods-OrcaDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OrcaDemo.debug.xcconfig"; path = "Target Support Files/Pods-OrcaDemo/Pods-OrcaDemo.debug.xcconfig"; sourceTree = "<group>"; };
E125E1882BE99DCA008B6D56 /* AtomicBool.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AtomicBool.swift; sourceTree = "<group>"; };
E1C5A45E2BE587A2002C0C40 /* AudioPlayerStream.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AudioPlayerStream.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -39,7 +39,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
93BE66087E58F64A2193D44C /* libPods-OrcaDemo.a in Frameworks */,
D1F66A0EFCEE9D67CC0E5895 /* libPods-OrcaDemo.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -52,7 +52,7 @@
02A11947268D39A700A2AC99 /* OrcaDemo */,
02A11946268D39A700A2AC99 /* Products */,
8DB92FF3DC81AB04D3FF7242 /* Pods */,
D4BC0C682CB4645A73894BC8 /* Frameworks */,
45CED0D4174C9AAD74F7745A /* Frameworks */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -80,21 +80,21 @@
path = OrcaDemo;
sourceTree = "<group>";
};
8DB92FF3DC81AB04D3FF7242 /* Pods */ = {
45CED0D4174C9AAD74F7745A /* Frameworks */ = {
isa = PBXGroup;
children = (
3B38AA40E88807F9C21BFD02 /* Pods-OrcaDemo.debug.xcconfig */,
1C5DAA8ED5D246C3A58AA45B /* Pods-OrcaDemo.release.xcconfig */,
60284C4EFCEDB8EA3A9AB933 /* libPods-OrcaDemo.a */,
);
path = Pods;
name = Frameworks;
sourceTree = "<group>";
};
D4BC0C682CB4645A73894BC8 /* Frameworks */ = {
8DB92FF3DC81AB04D3FF7242 /* Pods */ = {
isa = PBXGroup;
children = (
6293833704AEC548A02FB651 /* libPods-OrcaDemo.a */,
9A7670652E0B18EA21BAB871 /* Pods-OrcaDemo.debug.xcconfig */,
101D6E31C841CE609BC379F1 /* Pods-OrcaDemo.release.xcconfig */,
);
name = Frameworks;
path = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand All @@ -104,11 +104,11 @@
isa = PBXNativeTarget;
buildConfigurationList = 02A11954268D39AB00A2AC99 /* Build configuration list for PBXNativeTarget "OrcaDemo" */;
buildPhases = (
953F197786B352AA828626D7 /* [CP] Check Pods Manifest.lock */,
8B3F51311B11C74B18E2C8D4 /* [CP] Check Pods Manifest.lock */,
02A11941268D39A700A2AC99 /* Sources */,
02A11942268D39A700A2AC99 /* Frameworks */,
02A11943268D39A700A2AC99 /* Resources */,
C4DE16407A77E6DE174EE4DB /* [CP] Embed Pods Frameworks */,
F911F0EB5B81F9AC199AEC52 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -164,7 +164,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
953F197786B352AA828626D7 /* [CP] Check Pods Manifest.lock */ = {
8B3F51311B11C74B18E2C8D4 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -186,7 +186,7 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
C4DE16407A77E6DE174EE4DB /* [CP] Embed Pods Frameworks */ = {
F911F0EB5B81F9AC199AEC52 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -340,7 +340,7 @@
};
02A11955268D39AB00A2AC99 /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 3B38AA40E88807F9C21BFD02 /* Pods-OrcaDemo.debug.xcconfig */;
baseConfigurationReference = 9A7670652E0B18EA21BAB871 /* Pods-OrcaDemo.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand All @@ -363,7 +363,7 @@
};
02A11956268D39AB00A2AC99 /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1C5DAA8ED5D246C3A58AA45B /* Pods-OrcaDemo.release.xcconfig */;
baseConfigurationReference = 101D6E31C841CE609BC379F1 /* Pods-OrcaDemo.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand Down
2 changes: 1 addition & 1 deletion demo/ios/OrcaDemo/OrcaDemo/ViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enum UIState {
}

class ViewModel: ObservableObject {
private let ACCESS_KEY = "{YOUR_ACCESS_KEY_HERE}" // Obtained from Picovoice Console (https://console.picovoice.ai)
private let ACCESS_KEY = "PI5vbMlGH3K4+HgfM8hk9eIDF6i7CfZMQsn/9MmPrczi7sCfVioy6w==" // Obtained from Picovoice Console (https://console.picovoice.ai)

Check failure on line 26 in demo/ios/OrcaDemo/OrcaDemo/ViewModel.swift

View workflow job for this annotation

GitHub Actions / check-switch-codestyle

Line Length Violation: Line should be 120 characters or less; currently it has 153 characters (line_length)

private let NUM_AUDIO_WAIT_CHUNKS = 1

Expand Down
2 changes: 1 addition & 1 deletion demo/ios/OrcaDemo/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ source 'https://cdn.cocoapods.org/'
platform :ios, '13.0'

target 'OrcaDemo' do
pod 'Orca-iOS', '~> 0.2.2'
pod 'Orca-iOS', :podspec => 'https://raw.githubusercontent.com/Picovoice/orca/v1.0/binding/ios/Orca-iOS.podspec'
end
12 changes: 6 additions & 6 deletions demo/ios/OrcaDemo/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ PODS:
- Orca-iOS (0.2.2)

DEPENDENCIES:
- Orca-iOS (~> 0.2.2)
- Orca-iOS (from `https://raw.githubusercontent.com/Picovoice/orca/v1.0/binding/ios/Orca-iOS.podspec`)

SPEC REPOS:
trunk:
- Orca-iOS
EXTERNAL SOURCES:
Orca-iOS:
:podspec: https://raw.githubusercontent.com/Picovoice/orca/v1.0/binding/ios/Orca-iOS.podspec

SPEC CHECKSUMS:
Orca-iOS: 567ca0e53671d8fc28ba15338db8fe4ff5101d8d
Orca-iOS: 44c42caf866fb0cf31de77e901acb7dfc24b3d70

PODFILE CHECKSUM: 118fa8c1767dd3edcc2ec366a16ab74191c6176c
PODFILE CHECKSUM: 3e22e7fd65479f26cbc1a539b146669ac1204619

COCOAPODS: 1.15.2

0 comments on commit c2cdb1d

Please sign in to comment.