diff --git a/.changes/config.json b/.changes/config.json index 57e60c11..2668b702 100644 --- a/.changes/config.json +++ b/.changes/config.json @@ -39,6 +39,7 @@ "publish": false, "dependencies": [ "app", + "barcode-scanner", "log-plugin", "cli", "clipboard-manager", @@ -61,6 +62,7 @@ "publish": false, "dependencies": [ "app-js", + "barcode-scanner-js", "log-js", "cli-js", "clipboard-manager-js", @@ -104,6 +106,15 @@ "manager": "javascript" }, + "barcode-scanner": { + "path": "./plugins/barcode-scanner", + "manager": "rust" + }, + "barcode-scanner-js": { + "path": "./plugins/barcode-scanner", + "manager": "javascript" + }, + "cli": { "path": "./plugins/cli", "manager": "rust" diff --git a/.changes/scanner-initial-release.md b/.changes/scanner-initial-release.md new file mode 100644 index 00000000..5ea48e32 --- /dev/null +++ b/.changes/scanner-initial-release.md @@ -0,0 +1,6 @@ +--- +"barcode-scanner": major +"barcode-scanner-js": major +--- + +Initial release. diff --git a/Cargo.lock b/Cargo.lock index 5b0b7d5d..e5d54ec2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5658,7 +5658,7 @@ dependencies = [ [[package]] name = "tauri-plugin-barcode-scanner" -version = "2.0.0-alpha.0" +version = "1.0.0" dependencies = [ "log", "serde", diff --git a/examples/api/package.json b/examples/api/package.json index c8e7251a..c013f0d8 100644 --- a/examples/api/package.json +++ b/examples/api/package.json @@ -11,7 +11,7 @@ "dependencies": { "@tauri-apps/api": "2.0.0-alpha.6", "@tauri-apps/plugin-app": "2.0.0-alpha.1", - "@tauri-apps/plugin-barcode-scanner": "2.0.0-alpha.0", + "@tauri-apps/plugin-barcode-scanner": "1.0.0", "@tauri-apps/plugin-cli": "2.0.0-alpha.1", "@tauri-apps/plugin-clipboard-manager": "2.0.0-alpha.1", "@tauri-apps/plugin-dialog": "2.0.0-alpha.1", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 924be6f9..b77c5ad1 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -47,7 +47,7 @@ tauri-plugin-global-shortcut = { path = "../../../plugins/global-shortcut", vers tauri-plugin-updater = { path = "../../../plugins/updater", version = "2.0.0-alpha.1" } [target."cfg(any(target_os = \"android\", target_os = \"ios\"))".dependencies] -tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "2.0.0-alpha.0" } +tauri-plugin-barcode-scanner = { path = "../../../plugins/barcode-scanner/", version = "1.0.0" } [target."cfg(target_os = \"windows\")".dependencies] window-shadows = "0.2" diff --git a/package.json b/package.json index 5514a29a..f593518f 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@rollup/plugin-typescript": "11.1.2", "@typescript-eslint/eslint-plugin": "6.1.0", "@typescript-eslint/parser": "6.1.0", - "covector": "^0.9.0", + "covector": "^0.10.0", "eslint": "8.45.0", "eslint-config-prettier": "8.8.0", "eslint-config-standard-with-typescript": "36.1.0", diff --git a/plugins/barcode-scanner/Cargo.toml b/plugins/barcode-scanner/Cargo.toml index 52f27ec0..78a4631e 100644 --- a/plugins/barcode-scanner/Cargo.toml +++ b/plugins/barcode-scanner/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tauri-plugin-barcode-scanner" -version = "2.0.0-alpha.0" +version = "1.0.0" description = "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS" edition = { workspace = true } authors = { workspace = true } diff --git a/plugins/barcode-scanner/README.md b/plugins/barcode-scanner/README.md index e02877e8..a211a612 100644 --- a/plugins/barcode-scanner/README.md +++ b/plugins/barcode-scanner/README.md @@ -18,6 +18,8 @@ Install the Core plugin by adding the following to your `Cargo.toml` file: ```toml [dependencies] +tauri-plugin-barcode-scanner = "2.0.0-alpha" +# alternatively with Git: tauri-plugin-barcode-scanner = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" } ``` diff --git a/plugins/barcode-scanner/package.json b/plugins/barcode-scanner/package.json index b9d1fe0e..9ad19cdf 100644 --- a/plugins/barcode-scanner/package.json +++ b/plugins/barcode-scanner/package.json @@ -1,6 +1,6 @@ { "name": "@tauri-apps/plugin-barcode-scanner", - "version": "2.0.0-alpha.0", + "version": "1.0.0", "description": "Scan QR codes, EAN-13 and other kinds of barcodes on Android and iOS", "license": "MIT or APACHE-2.0", "authors": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e40513b9..cbaaaa2b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,8 +28,8 @@ importers: specifier: 6.1.0 version: 6.1.0(eslint@8.45.0)(typescript@5.1.6) covector: - specifier: ^0.9.0 - version: 0.9.0(mocha@10.2.0) + specifier: ^0.10.0 + version: 0.10.0(mocha@10.2.0) eslint: specifier: 8.45.0 version: 8.45.0 @@ -70,7 +70,7 @@ importers: specifier: 2.0.0-alpha.1 version: link:../../plugins/app '@tauri-apps/plugin-barcode-scanner': - specifier: 2.0.0-alpha.0 + specifier: 1.0.0 version: link:../../plugins/barcode-scanner '@tauri-apps/plugin-cli': specifier: 2.0.0-alpha.1 @@ -450,23 +450,22 @@ packages: event-target-shim: 5.0.1 dev: true - /@covector/apply@0.8.0(mocha@10.2.0): - resolution: {integrity: sha512-t/yDcj9kzLl0NjmA86lET5ePGmGneHtcTlENdDEoWiJvLtjgtrCg9NcxMBHImEwIdUi1EsLQw9MgpWEZSMmtRg==} + /@covector/apply@0.9.0(mocha@10.2.0): + resolution: {integrity: sha512-a844qKgZ7a8Gy4ls4awMXoF8q+jxcI5DoldoPBOO0nDddteBNO7Y5fOJJkCeZyvuoZRl23GOVdn+sluX/UpLKQ==} dependencies: - '@covector/files': 0.6.1 + '@covector/files': 0.6.2 effection: 2.0.7(mocha@10.2.0) - lodash: 4.17.21 semver: 7.5.4 transitivePeerDependencies: - encoding - mocha dev: true - /@covector/assemble@0.10.0(mocha@10.2.0): - resolution: {integrity: sha512-Ug8NMj/tEbRB3ZE7DhVL86AJiymi3T7AE6gBKVlWjSOQsAfj10bLRUUYXUrpFpt0uf1UGxldaqJshp9qemRKsA==} + /@covector/assemble@0.10.1(mocha@10.2.0): + resolution: {integrity: sha512-xz8kGgc2ZH4zUWgGotXAp9wX3QZoDXitZOPM5cYhOs3z6vS2Vj5dY4sqvgueAUpadHSjjQMWIktaw9yBJHAAnQ==} dependencies: - '@covector/command': 0.6.1(mocha@10.2.0) - '@covector/files': 0.6.1 + '@covector/command': 0.7.0(mocha@10.2.0) + '@covector/files': 0.6.2 effection: 2.0.7(mocha@10.2.0) js-yaml: 4.1.0 lodash: 4.17.21 @@ -480,10 +479,10 @@ packages: - supports-color dev: true - /@covector/changelog@0.8.0(mocha@10.2.0): - resolution: {integrity: sha512-INSuWMdGt96gkafwF+lK3o4113tqAuBNEP6VxjWGVUX4LRKRZlndwLua1Ckjc7TV5pMMfSTSUgBuc7AF/p2uzA==} + /@covector/changelog@0.9.0(mocha@10.2.0): + resolution: {integrity: sha512-206w2jTX6ATaPhv2Frp8zTgMbjvaWEOOOyGnhQZdWTRst3vx2PUWxAoZ9xMLoYTk4jYpuzupKDOmgxk9NssOfQ==} dependencies: - '@covector/files': 0.6.1 + '@covector/files': 0.6.2 effection: 2.0.7(mocha@10.2.0) lodash: 4.17.21 remark-parse: 9.0.0 @@ -495,8 +494,8 @@ packages: - supports-color dev: true - /@covector/command@0.6.1(mocha@10.2.0): - resolution: {integrity: sha512-H44DLRVqRp/GarYqt1X1yo26+hBYqrrFqUstIb6b/+KRuuwN57VlHCvTlOnEK4Mn5bGZErFDrRiJ5yRCdMDYNw==} + /@covector/command@0.7.0(mocha@10.2.0): + resolution: {integrity: sha512-9DGx4tOY9Fkd4AlYbOE0rnesYAYJm7Wr6BUBJlRxErtA0vDAejZ0+jVHZbemB1MbLOaYWXkDf/wD7SLnf06gfw==} dependencies: '@effection/process': 2.1.3(mocha@10.2.0) effection: 2.0.7(mocha@10.2.0) @@ -506,8 +505,8 @@ packages: - mocha dev: true - /@covector/files@0.6.1: - resolution: {integrity: sha512-JQuh7LUqOvymOg/TYOfVZJJiXOrtCy2FD7/sNCAqabN6yOiVvY2kHQ134rqI20YnYtXghEbO7BZSPiyrCOiIYg==} + /@covector/files@0.6.2: + resolution: {integrity: sha512-DmG0FBNnfJ1g8qDjETAkiMbetlrewfrFPkpej59rQ41cyRFPqypFsydMR3B+VTm0vIxXlP5WrJzoOSzf+bcGXA==} dependencies: '@iarna/toml': 2.2.5 '@tauri-apps/toml': 2.2.4 @@ -2053,15 +2052,15 @@ packages: engines: {node: '>= 0.6'} dev: true - /covector@0.9.0(mocha@10.2.0): - resolution: {integrity: sha512-uGDdpb33ZOwThylB8GKWpygGrpbipt7YRGUtIKnS4EBLugXz7ZM+Aj3g+BXzvFJC87S0My1+y98ejcXAoQkwbQ==} + /covector@0.10.0(mocha@10.2.0): + resolution: {integrity: sha512-C8OqMG4ZA0bMwt0uHuCfPK8rfy6QFDV8qUaJW0giggywK+w7dz2dxpCcv2bYtJQyBh+GKSt8E4i2wB0c3paxCQ==} hasBin: true dependencies: - '@covector/apply': 0.8.0(mocha@10.2.0) - '@covector/assemble': 0.10.0(mocha@10.2.0) - '@covector/changelog': 0.8.0(mocha@10.2.0) - '@covector/command': 0.6.1(mocha@10.2.0) - '@covector/files': 0.6.1 + '@covector/apply': 0.9.0(mocha@10.2.0) + '@covector/assemble': 0.10.1(mocha@10.2.0) + '@covector/changelog': 0.9.0(mocha@10.2.0) + '@covector/command': 0.7.0(mocha@10.2.0) + '@covector/files': 0.6.2 effection: 2.0.7(mocha@10.2.0) globby: 11.1.0 inquirer: 8.2.5