Skip to content

Commit

Permalink
fix: animation controller, callback disposal (#1)
Browse files Browse the repository at this point in the history
* fix: improve animation and resource management in BarcodeKitView

- Dispose animation controller in `dispose()` method
- Adjust backdrop color opacity calculation using `withAlpha()`

* chore: immutable linting due to impossible implementation

* fix: clear text and barcode detection callbacks on view disposal

* chore: update Pigeon code generation package names

* chore: fix naming of barcode_kit

* chore: update dependencies

* chore: update gradle dependencies

* chore: update ios class names

* chore: remove legacy package attribute

* chore: update pigeon generated code

* add launch.json and .gitignore file
  • Loading branch information
ElectricCookie authored Feb 10, 2025
1 parent 776d5bc commit aa0a72b
Show file tree
Hide file tree
Showing 20 changed files with 668 additions and 459 deletions.
28 changes: 28 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "example",
"cwd": "example",
"request": "launch",
"type": "dart"
},
{
"name": "example (profile mode)",
"cwd": "example",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "example (release mode)",
"cwd": "example",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.emddigital.barcode_kit">
>


<uses-permission android:name="android.permission.CAMERA" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.emddigital.barcode_kit
package com.emddigital.mtrust_barcode_kit


import BarcodeFormat
Expand Down Expand Up @@ -44,13 +44,13 @@ val barcodeFormatMap = hashMapOf<BarcodeFormat, Int>(
BarcodeFormat.CODE39 to Barcode.FORMAT_CODE_39,
BarcodeFormat.CODE93 to Barcode.FORMAT_CODE_93,
BarcodeFormat.CODE128 to Barcode.FORMAT_CODE_128,
BarcodeFormat.DATAMATRIX to Barcode.FORMAT_DATA_MATRIX,
BarcodeFormat.DATA_MATRIX to Barcode.FORMAT_DATA_MATRIX,
BarcodeFormat.EAN8 to Barcode.FORMAT_EAN_8,
BarcodeFormat.EAN13 to Barcode.FORMAT_EAN_13,
BarcodeFormat.PDF417 to Barcode.FORMAT_PDF417,
BarcodeFormat.QRCODE to Barcode.FORMAT_QR_CODE,
BarcodeFormat.UPCA to Barcode.FORMAT_UPC_A,
BarcodeFormat.UPCE to Barcode.FORMAT_UPC_E,
BarcodeFormat.QR_CODE to Barcode.FORMAT_QR_CODE,
BarcodeFormat.UPC_A to Barcode.FORMAT_UPC_A,
BarcodeFormat.UPC_E to Barcode.FORMAT_UPC_E,
BarcodeFormat.ITF to Barcode.FORMAT_ITF
)

Expand Down
Loading

0 comments on commit aa0a72b

Please sign in to comment.