Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.46 KB

UPGRADE.md

File metadata and controls

37 lines (28 loc) · 1.46 KB

Upgrade from 2.x to 3.0.0

  • The BarcodeScan.scan() method returns a ScanResult. The barcode is stored in ScanResult.rawContent Check your calls to this method and read the barcode from the rawContent property.
  • The following static strings of class BarcodeScanner are now written in camelCase (as opposed to PascalCase like before):
    • cameraAccessGranted
    • cameraAccessDenied

If your project uses pre Flutter 1.12 you need to update Flutter in your App: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects

Upgrade from 1.0.0 to 2.0.0

The simples way for upgrading is by replacing:

  • com.apptreesoftware.barcodescan
  • com.yourcompany.barcodescan
  • com.apptreesoftware.barcode_scan

With: de.mintware.barcode_scan

Detailed changes: Android: Kotlin Package: com.apptreesoftware.barcodescan -> de.mintware.barcode_scan Manifest-Package: com.yourcompany.barcodescan -> de.mintware.barcodescan Activity: com.apptreesoftware.barcodescan.BarcodeScannerActivity -> de.mintware.barcode_scan.BarcodeScannerActivity

iOS: Bundle ID: com.apptreesoftware.barcode.plugin.example -> de.mintware.barcode_scan.plugin.example

Flutter: Method channel: com.apptreesoftware.barcode_scan -> de.mintware.barcode_scan pubspec.yaml:

  • homepage updated
  • deprecated author entry removed
  • comments removed
  • flutter.plugin.androidPackage: com.apptreesoftware.barcode_scan -> de.mintware.barcode_scan