Skip to content

Commit

Permalink
Naming fixes for tests, and an OS support fix.
Browse files Browse the repository at this point in the history
We're currently on iOS 13+, something in QRCodeScanner wanted iOS 14+.
  • Loading branch information
todd-spruceid committed Aug 15, 2024
1 parent d5d0f3b commit 68ec066
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Sources/MobileSdk/ui/QRCodeScanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public struct QRCodeScanner: View {
@State private var qrOutput: AVCaptureMetadataOutput = .init()

/// Camera QR Output delegate
@StateObject private var qrDelegate = QRScannerDelegate()
//@StateObject private var qrDelegate = QRScannerDelegate() // Requires iOS 14.
@ObservedObject private var qrDelegate = QRScannerDelegate()

/// Scanned code
@State private var scannedCode: String = ""
Expand Down
2 changes: 1 addition & 1 deletion Tests/MobileSdkTests/DataConversions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

import XCTest
@testable import SpruceIDMobileSdk
@testable import MobileSdk

final class DataConversions: XCTestCase {

Expand Down
6 changes: 3 additions & 3 deletions Tests/MobileSdkTests/StorageManager.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@testable import SpruceIDMobileSdk
import XCTest
@testable import MobileSdk

final class StorageManager: XCTestCase {
func storage_test() throws {
final class StorageManagerTest: XCTestCase {
func testStorage() throws {
let sm = StorageManager()
let key = "test_key"
let value = Data("Some random string of text. 😎".utf8)
Expand Down
2 changes: 1 addition & 1 deletion Tests/MobileSdkTests/lib.swift
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import XCTest
@testable import SpruceIDMobileSdk
@testable import MobileSdk

0 comments on commit 68ec066

Please sign in to comment.