scandit-capacitor-datacapture-barcode 6.14.0 → 6.15.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ScanditCapacitorDatacaptureBarcode.podspec +2 -2
- package/android/build.gradle +5 -5
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt +4 -7
- package/dist/esm/scandit-capacitor-datacapture-barcode/src/web.d.ts +3 -5
- package/dist/esm/scandit-capacitor-datacapture-barcode/src/web.js +9 -12
- package/dist/esm/scandit-capacitor-datacapture-barcode/src/web.js.map +1 -1
- package/dist/plugin.js +239 -240
- package/dist/plugin.js.map +1 -1
- package/ios/ScanditBarcodeCapturePlugin.xcodeproj/project.pbxproj +4 -0
- package/package.json +5 -5
|
@@ -11,10 +11,10 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => package['homepage'], :tag => s.version.to_s }
|
|
13
13
|
s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target = '
|
|
14
|
+
s.ios.deployment_target = '13.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.dependency 'ScanditCapacitorDatacaptureCore'
|
|
17
17
|
s.swift_version = '5.1'
|
|
18
18
|
|
|
19
|
-
s.dependency 'ScanditBarcodeCapture', '= 6.
|
|
19
|
+
s.dependency 'ScanditBarcodeCapture', '= 6.15.0-beta.1'
|
|
20
20
|
end
|
package/android/build.gradle
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
ext {
|
|
2
|
-
androidxCoreVersion = project.hasProperty('androidxCoreVersion') ? rootProject.ext.androidxCoreVersion : '1.
|
|
2
|
+
androidxCoreVersion = project.hasProperty('androidxCoreVersion') ? rootProject.ext.androidxCoreVersion : '1.6.0'
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
buildscript {
|
|
6
6
|
ext {
|
|
7
|
-
sdk_version = "6.
|
|
7
|
+
sdk_version = "6.15.0-beta.1"
|
|
8
8
|
kotlin_version = "1.5.31"
|
|
9
|
-
agp_version = "7.
|
|
9
|
+
agp_version = "7.2.1"
|
|
10
10
|
}
|
|
11
11
|
repositories {
|
|
12
12
|
google()
|
|
@@ -22,10 +22,10 @@ apply plugin: 'com.android.library'
|
|
|
22
22
|
apply plugin: 'kotlin-android'
|
|
23
23
|
|
|
24
24
|
android {
|
|
25
|
-
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
25
|
+
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
|
|
26
26
|
defaultConfig {
|
|
27
27
|
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
|
|
28
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
28
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
|
|
29
29
|
versionCode 1
|
|
30
30
|
versionName "1.0"
|
|
31
31
|
}
|
package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt
CHANGED
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
*/
|
|
6
6
|
package com.scandit.capacitor.datacapture.barcode
|
|
7
7
|
|
|
8
|
-
import android.Manifest
|
|
9
8
|
import android.util.Log
|
|
10
9
|
import android.view.View
|
|
11
10
|
import com.getcapacitor.JSObject
|
|
12
|
-
import com.getcapacitor.NativePlugin
|
|
13
11
|
import com.getcapacitor.Plugin
|
|
14
12
|
import com.getcapacitor.PluginCall
|
|
15
13
|
import com.getcapacitor.PluginMethod
|
|
14
|
+
import com.getcapacitor.annotation.CapacitorPlugin
|
|
16
15
|
import com.scandit.capacitor.datacapture.barcode.callbacks.BarcodeCallbackContainer
|
|
17
16
|
import com.scandit.capacitor.datacapture.barcode.callbacks.BarcodeCaptureCallback
|
|
18
17
|
import com.scandit.capacitor.datacapture.barcode.callbacks.BarcodeSelectionCallback
|
|
@@ -92,14 +91,12 @@ import org.json.JSONArray
|
|
|
92
91
|
import org.json.JSONException
|
|
93
92
|
import org.json.JSONObject
|
|
94
93
|
|
|
95
|
-
@
|
|
96
|
-
|
|
97
|
-
Manifest.permission.CAMERA
|
|
98
|
-
]
|
|
94
|
+
@CapacitorPlugin(
|
|
95
|
+
name = "ScanditBarcodeNative"
|
|
99
96
|
)
|
|
100
97
|
class ScanditBarcodeNative :
|
|
101
98
|
Plugin(),
|
|
102
|
-
CapacitorPlugin,
|
|
99
|
+
com.scandit.capacitor.datacapture.barcode.CapacitorPlugin,
|
|
103
100
|
ActionFinishHandler,
|
|
104
101
|
BarcodeCaptureListener,
|
|
105
102
|
BarcodeTrackingListener,
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { WebPlugin } from '@capacitor/core';
|
|
2
1
|
import { ScanditBarcodePluginInterface } from './definitions';
|
|
3
|
-
export
|
|
4
|
-
|
|
2
|
+
export * from './definitions';
|
|
3
|
+
export declare class ScanditBarcodePluginImplementation implements ScanditBarcodePluginInterface {
|
|
5
4
|
initialize(): Promise<any>;
|
|
6
5
|
}
|
|
7
|
-
declare const
|
|
8
|
-
export { scanditBarcode };
|
|
6
|
+
export declare const ScanditBarcodePlugin: ScanditBarcodePluginImplementation;
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { registerPlugin } from '@capacitor/core';
|
|
11
11
|
import { getDefaults } from './ts/Capacitor/Capacitor';
|
|
12
12
|
import { Barcode, Checksum, CompositeFlag, CompositeType, EncodingRange, LocalizedOnlyBarcode, Range, Symbology, SymbologyDescription, SymbologySettings, TrackedBarcode, } from './ts/Barcode';
|
|
13
13
|
import { BarcodeCapture, } from './ts/BarcodeCapture';
|
|
@@ -20,13 +20,7 @@ import { BarcodeTracking, } from './ts/BarcodeTracking';
|
|
|
20
20
|
import { BarcodeTrackingScenario, BarcodeTrackingSettings, } from './ts/BarcodeTrackingSettings';
|
|
21
21
|
import { BarcodeTrackingAdvancedOverlay, BarcodeTrackingBasicOverlay, BarcodeTrackingBasicOverlayStyle, BarcodeTrackingSession, } from './ts/BarcodeTracking+Related';
|
|
22
22
|
import { TrackedBarcodeView, } from './ts/TrackedBarcodeView';
|
|
23
|
-
export class
|
|
24
|
-
constructor() {
|
|
25
|
-
super({
|
|
26
|
-
name: 'ScanditBarcodePlugin',
|
|
27
|
-
platforms: ['android', 'ios'],
|
|
28
|
-
});
|
|
29
|
-
}
|
|
23
|
+
export class ScanditBarcodePluginImplementation {
|
|
30
24
|
initialize() {
|
|
31
25
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
26
|
const api = {
|
|
@@ -74,8 +68,11 @@ export class ScanditBarcodePlugin extends WebPlugin {
|
|
|
74
68
|
});
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
// tslint:disable-next-line:variable-name
|
|
72
|
+
registerPlugin('ScanditBarcodePlugin', {
|
|
73
|
+
android: () => new ScanditBarcodePluginImplementation(),
|
|
74
|
+
ios: () => new ScanditBarcodePluginImplementation(),
|
|
75
|
+
});
|
|
76
|
+
// tslint:disable-next-line:variable-name
|
|
77
|
+
export const ScanditBarcodePlugin = new ScanditBarcodePluginImplementation();
|
|
81
78
|
//# sourceMappingURL=web.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../../src/web.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../../../src/web.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,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