Reader SDK Documents
Breadcrumbs

iOS v3.0.0

1. Migration Guide

1.1. PMF Loader API Change

// Old
public static func loadAnalyserConfiguration(jsonString: String) throws -> AnalyserConfiguration

// New
public static func loadAnalyserConfiguration(from data: Data) throws -> AnalyserConfiguration

  • Change:

    • Parameter type: StringData

    • Parameter label: jsonStringfrom

    • Decoder reused via internal instance (decoder) instead of constructing a new one.

  • Developer Action:
    Update your calls accordingly:

    // Old
    let config = try Loader.loadAnalyserConfiguration(jsonString: json)
    // New
    let config = try Loader.loadAnalyserConfiguration(from: Data(json.utf8))
    
    
  • Impact:

    • Breaking change for integrations passing String.

    • Provides better flexibility for binary or file-based configuration sources.

1.2. OpenCV Upgrade

  • Changed: 4.8.0 → 4.12.0

  • Impact:
    No API changes. You may need to clean derived data to avoid linker warnings.