scandit-react-native-datacapture-parser 6.19.0-beta.3 → 6.19.0
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/android/build.gradle +27 -8
- package/android/src/main/AndroidManifestNew.xml +3 -0
- package/js/Parser.js +5 -3
- package/js/Parser.js.map +1 -1
- package/js/ParserDataFormat.js +1 -1
- package/js/ParserDataFormat.js.map +1 -1
- package/js/index.js +6 -2
- package/js/index.js.map +1 -1
- package/js/private/PrivateParsedData.d.ts +1 -1
- package/package.json +3 -3
- package/scandit-react-native-datacapture-parser.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
def DEFAULT_COMPILE_SDK_VERSION = 32
|
|
2
|
-
def DEFAULT_MIN_SDK_VERSION = 23
|
|
3
|
-
def DEFAULT_TARGET_SDK_VERSION = 32
|
|
4
|
-
|
|
5
1
|
def safeExtGet(prop, fallback) {
|
|
6
2
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
7
3
|
}
|
|
8
4
|
|
|
5
|
+
def supportsNamespace() {
|
|
6
|
+
def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
|
|
7
|
+
def major = parsed[0].toInteger()
|
|
8
|
+
def minor = parsed[1].toInteger()
|
|
9
|
+
|
|
10
|
+
// Namespace support was added in AGP 7.3.0
|
|
11
|
+
if (major == 7 && minor >= 3) {
|
|
12
|
+
return true
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return major >= 8
|
|
16
|
+
}
|
|
17
|
+
|
|
9
18
|
buildscript {
|
|
10
19
|
ext {
|
|
11
20
|
kotlin_version = "1.7.21"
|
|
@@ -27,11 +36,19 @@ apply plugin: 'com.android.library'
|
|
|
27
36
|
apply plugin: 'kotlin-android'
|
|
28
37
|
|
|
29
38
|
android {
|
|
30
|
-
|
|
39
|
+
if (supportsNamespace()) {
|
|
40
|
+
sourceSets {
|
|
41
|
+
main {
|
|
42
|
+
manifest.srcFile "src/main/AndroidManifestNew.xml" // no package on it
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
namespace "com.scandit.datacapture.reactnative.parser"
|
|
46
|
+
}
|
|
47
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 32)
|
|
31
48
|
|
|
32
49
|
defaultConfig {
|
|
33
|
-
minSdkVersion safeExtGet('minSdkVersion',
|
|
34
|
-
targetSdkVersion safeExtGet('targetSdkVersion',
|
|
50
|
+
minSdkVersion safeExtGet('minSdkVersion', 23)
|
|
51
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 32)
|
|
35
52
|
versionCode 1
|
|
36
53
|
versionName "1.0"
|
|
37
54
|
}
|
|
@@ -42,12 +59,14 @@ android {
|
|
|
42
59
|
}
|
|
43
60
|
|
|
44
61
|
dependencies {
|
|
45
|
-
def sdk_version = "6.19.0
|
|
62
|
+
def sdk_version = "6.19.0"
|
|
46
63
|
|
|
47
64
|
println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
|
|
48
65
|
api project(path: ':scandit-react-native-datacapture-core')
|
|
49
66
|
api "com.scandit.datacapture:parser:${safeExtGet('global_sdk_version', sdk_version)}"
|
|
50
67
|
|
|
68
|
+
// For < 0.71, this will be from the local maven repo
|
|
69
|
+
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
51
70
|
//noinspection GradleDynamicVersion
|
|
52
71
|
implementation 'com.facebook.react:react-native:+' // From node_modules
|
|
53
72
|
}
|
package/js/Parser.js
CHANGED
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -28,7 +30,7 @@ var Parser = /** @class */ (function (_super) {
|
|
|
28
30
|
var _this = _super.call(this) || this;
|
|
29
31
|
_this.type = 'parser';
|
|
30
32
|
_this.options = {};
|
|
31
|
-
_this._id = ""
|
|
33
|
+
_this._id = "".concat(Date.now());
|
|
32
34
|
_this.proxy = ParserProxy_1.ParserProxy.forParser(_this);
|
|
33
35
|
return _this;
|
|
34
36
|
}
|
|
@@ -56,7 +58,7 @@ var Parser = /** @class */ (function (_super) {
|
|
|
56
58
|
return this.proxy.parseRawData(data);
|
|
57
59
|
};
|
|
58
60
|
__decorate([
|
|
59
|
-
Serializeable_1.nameForSerialization('id')
|
|
61
|
+
(0, Serializeable_1.nameForSerialization)('id')
|
|
60
62
|
], Parser.prototype, "_id", void 0);
|
|
61
63
|
__decorate([
|
|
62
64
|
Serializeable_1.ignoreFromSerialization
|
package/js/Parser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Parser.js","sourceRoot":"","sources":["../ts/Parser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Parser.js","sourceRoot":"","sources":["../ts/Parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,gGAIwE;AAExE,oDAAmD;AAInD;IAA4B,0BAAoB;IAwB9C;QAAA,YACE,iBAAO,SAER;QA1BO,UAAI,GAAG,QAAQ,CAAC;QAEhB,aAAO,GAAG,EAA4B,CAAC;QAGvC,SAAG,GAAW,UAAG,IAAI,CAAC,GAA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Format["UsUsid"] = "usUsid";
|
|
13
|
-
})(ParserDataFormat
|
|
13
|
+
})(ParserDataFormat || (exports.ParserDataFormat = ParserDataFormat = {}));
|
|
14
14
|
//# sourceMappingURL=ParserDataFormat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParserDataFormat.js","sourceRoot":"","sources":["../ts/ParserDataFormat.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,+BAAW,CAAA;IACX,qCAAiB,CAAA;AACnB,CAAC,EARW,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ParserDataFormat.js","sourceRoot":"","sources":["../ts/ParserDataFormat.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,iCAAa,CAAA;IACb,uCAAmB,CAAA;IACnB,+BAAW,CAAA;IACX,qCAAiB,CAAA;AACnB,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B"}
|
package/js/index.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
8
12
|
}));
|
|
9
13
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
15
|
};
|
|
12
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
17
|
__exportStar(require("./ParsedData"), exports);
|
package/js/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../ts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B;AAC9B,2CAAyB;AACzB,qDAAmC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ParsedData } from '../ParsedData';
|
|
2
2
|
import { ParsedFieldJSON } from './PrivateParsedField';
|
|
3
|
-
export
|
|
3
|
+
export type ParsedDataJSON = [ParsedFieldJSON];
|
|
4
4
|
export interface PrivateParsedData {
|
|
5
5
|
fromJSON(json: ParsedDataJSON): ParsedData;
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scandit-react-native-datacapture-parser",
|
|
3
|
-
"version": "6.19.0
|
|
3
|
+
"version": "6.19.0",
|
|
4
4
|
"description": "Scandit Data Capture SDK for React Native",
|
|
5
5
|
"homepage": "https://github.com/Scandit/scandit-react-native-datacapture-parser",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"tslint": "^6.1.2",
|
|
29
|
-
"typescript": "^
|
|
29
|
+
"typescript": "^5.0.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"scandit-react-native-datacapture-core": "6.19.0
|
|
32
|
+
"scandit-react-native-datacapture-core": "6.19.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
|
|
|
16
16
|
s.requires_arc = true
|
|
17
17
|
s.module_name = "ScanditDataCaptureParser"
|
|
18
18
|
s.header_dir = "ScanditDataCaptureParser"
|
|
19
|
-
s.dependency 'ScanditParser', '= 6.19.0
|
|
19
|
+
s.dependency 'ScanditParser', '= 6.19.0'
|
|
20
20
|
|
|
21
21
|
s.dependency "React"
|
|
22
22
|
s.dependency "scandit-react-native-datacapture-core"
|