diff --git a/.github/workflows/ios-demos.yml b/.github/workflows/ios-demos.yml new file mode 100644 index 00000000..8a111f4f --- /dev/null +++ b/.github/workflows/ios-demos.yml @@ -0,0 +1,52 @@ +name: iOS Demos + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - 'demo/ios/EagleDemo/**' + - '.github/workflows/ios-demos.yml' + pull_request: + branches: [ main, 'v[0-9]+.[0-9]+' ] + paths: + - 'demo/ios/EagleDemo/**' + - '.github/workflows/ios-demos.yml' + +defaults: + run: + working-directory: demo/ios/EagleDemo + +jobs: + build: + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Node.js LTS + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install Cocoapods + run: gem install cocoapods + + - name: Install AppCenter CLI + run: npm install -g appcenter-cli + + - name: Make build dir + run: mkdir ddp + + - name: Run Cocoapods + run: pod install + + - name: Build + run: xcrun xcodebuild build + -configuration Debug + -workspace EagleDemo.xcworkspace + -sdk iphoneos + -scheme EagleDemo + -derivedDataPath ddp + CODE_SIGNING_ALLOWED=NO \ No newline at end of file diff --git a/binding/ios/EagleAppTest/EagleAppTest/ViewController.swift b/binding/ios/EagleAppTest/EagleAppTest/ViewController.swift index e5abedaa..9917f3ba 100644 --- a/binding/ios/EagleAppTest/EagleAppTest/ViewController.swift +++ b/binding/ios/EagleAppTest/EagleAppTest/ViewController.swift @@ -9,10 +9,4 @@ import UIKit -class ViewController: UIViewController { - - override func viewDidLoad() { - super.viewDidLoad() - } - -} +class ViewController: UIViewController { } diff --git a/binding/ios/EagleAppTest/EagleAppTestUITests/EagleAppTestUITests.swift b/binding/ios/EagleAppTest/EagleAppTestUITests/EagleAppTestUITests.swift index 2357a89a..11484686 100644 --- a/binding/ios/EagleAppTest/EagleAppTestUITests/EagleAppTestUITests.swift +++ b/binding/ios/EagleAppTest/EagleAppTestUITests/EagleAppTestUITests.swift @@ -126,7 +126,7 @@ class EagleAppTestUITests: BaseTest { func testMessageStack() throws { let enrollUrls = enrollUrls() - + let eagleProfiler = try EagleProfiler(accessKey: accessKey) for url in enrollUrls { let pcm = try readPcmFromFile(testAudioURL: url) @@ -179,7 +179,7 @@ class EagleAppTestUITests: BaseTest { func testProcessMessageStack() throws { let enrollUrls = enrollUrls() - + let eagleProfiler = try EagleProfiler(accessKey: accessKey) for url in enrollUrls { let pcm = try readPcmFromFile(testAudioURL: url) diff --git a/binding/ios/EagleBase.swift b/binding/ios/EagleBase.swift index 2dca2ad2..3bcc0890 100644 --- a/binding/ios/EagleBase.swift +++ b/binding/ios/EagleBase.swift @@ -100,7 +100,7 @@ public class EagleBase { var messageStackDepth: Int32 = 0 let status = pv_get_error_stack(&messageStackRef, &messageStackDepth) if status != PV_STATUS_SUCCESS { - throw pvStatusToKoalaError(status, "Unable to get Eagle error state") + throw pvStatusToEagleError(status, "Unable to get Eagle error state") } var messageStack: [String] = []