Skip to content

5.0.0

Compare
Choose a tag to compare
@scanbot-ci scanbot-ci released this 01 Mar 16:12
· 15 commits to master since this release
  • πŸŽ‰ New:
    • Added new class-based image filters with customizable parameters:
      • SBSDKParametricFilter (abstract base class)
      • SBSDKScanbotBinarizationFilter
      • SBSDKCustomBinarizationFilter
      • SBSDKColorDocumentFilter
      • SBSDKBrightnessFilter
      • SBSDKContrastFilter
      • SBSDKGrayscaleFilter
      • SBSDKWhiteBlackPointFilter
      • SBSDKLegacyFilter (encapsulates the deprecated SBSDKImageFilterType filters)
    • Added streaming encryption support to SBSDKStorageCrypting.
    • Added the SBSDKFinderView.Style enum and the property style that defines the drawing styles of the finder view to SBSDKFinderView and SBSDKBaseScannerViewFinderConfiguration.
    • Added the viewFinderStyle property to SBSDKBaseScannerViewController.
    • Added new property minimumNumberOfSymbols to SBSDKDocumentQualityAnalyzer.
    • Added a new modern beep sound in SBSDKSoundController.
    • Added a new enum SBSDKSoundType to configure the default beep sound of SBSDKSoundController.
    • Added Privacy manifest file (PrivacyInfo.xcprivacy) to the SDK.
    • Added new static property maximumRecommendedImageSize to SBSDKDeviceInformation.
  • πŸš€ Improvements:
    • Streaming rendering and encrypting in SBSDKTIFFImageWriter. Memory footprint during rendering reduced by up to 5x for TIFF.
  • ⚠️ Breaking Changes
    • Due to the refactoring of Scanbot SDK to the Swift language a lot of properties and method parameters have changed in order to provide a clean and consistent interface for Swift and Objective-C.
    • Removed adjustable filters and partially replaced them by the parametric filters.
    • Deprecated SBSDKImageFilterType. Use the new parametric filters SBSDKParametricFilterand its subclasses if possible.
    • Replaced parameters of type SBSDKImageFilterType by SBSDKParametricFilter in most classes.
    • Changed type of binarizationFilter in SBSDKTIFFImageWriterParameters from SBSDKImageFilterType to SBSDKParametricFilter.
    • Renamed SBSDKUIDocument to SBSDKDocument, SBSDKUIPage to SBSDKDocumentPage and SBSDKUIPageFileStorage to SBSDKDocumentPageFileStorage.
    • Refactored SBSDKImageProcessor moving away from the complex asynchronous functions to a straight object oriented approach.
    • Changed isLicenseValid, licenseStatus from functions to variables in Scanbot class.
    • Changed defaultImageStoreEncrypter, defaultPDFEncrypter, shouldShowStatusBarOnScanningScreens, defaultStatusBarStyle from separated getters and setters to variables in ScanbotUI class.
    • Removed printInfo:, printError: and printWarning: from SBSDKLog.
    • Changed setLoggingEnabled: to property isLoggingEnabled in SBSDKLog.
    • Functions logInfo:, logError: and logWarning: in SBSDKLog now accept String as a parameter instead of va_list.
    • Changed all properties of type NSNumber to optional Double in SBSDKImageMetadata.
    • Replaced default initialization initWithParentViewController:containerView by the new static method createWithParentViewController:containerView in SBSDKImageEditingViewController.
    • Changed SBSDKTIFFImageWriter from static class to instantiated class and simplified the interface.
    • Renamed enum SBSDKAutosnappingMode to SBSDKAutoSnappingMode.
  • πŸš™ Under the hood:
    • Refactored all public SDK code to Swift.