scandit-capacitor-datacapture-core 7.1.0-beta.1 → 7.1.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/ScanditCapacitorDatacaptureCore.podspec +1 -1
- package/android/build.gradle +1 -1
- package/dist/core.js +11 -13
- package/dist/core.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -8
package/android/build.gradle
CHANGED
package/dist/core.js
CHANGED
|
@@ -1871,16 +1871,6 @@ class DataCaptureContextSettings extends DefaultSerializeable {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
|
-
class DataCaptureContextFeatures {
|
|
1875
|
-
static get featureFlags() {
|
|
1876
|
-
return this._featureFlags;
|
|
1877
|
-
}
|
|
1878
|
-
static set featureFlags(value) {
|
|
1879
|
-
this._featureFlags = value;
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
DataCaptureContextFeatures._featureFlags = {};
|
|
1883
|
-
|
|
1884
1874
|
class OpenSourceSoftwareLicenseInfo {
|
|
1885
1875
|
constructor(licenseText) {
|
|
1886
1876
|
this._licenseText = licenseText;
|
|
@@ -1959,9 +1949,7 @@ class DataCaptureContextController {
|
|
|
1959
1949
|
initializeContextFromJSON() {
|
|
1960
1950
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1961
1951
|
try {
|
|
1962
|
-
|
|
1963
|
-
DataCaptureContextFeatures.featureFlags =
|
|
1964
|
-
JSON.parse(result.data);
|
|
1952
|
+
yield this._proxy.contextFromJSON(JSON.stringify(this.context.toJSON()));
|
|
1965
1953
|
}
|
|
1966
1954
|
catch (error) {
|
|
1967
1955
|
this.notifyListenersOfDeserializationError(error);
|
|
@@ -2176,6 +2164,16 @@ __decorate([
|
|
|
2176
2164
|
ignoreFromSerialization
|
|
2177
2165
|
], DataCaptureContext, "coreDefaults", null);
|
|
2178
2166
|
|
|
2167
|
+
class DataCaptureContextFeatures {
|
|
2168
|
+
static isFeatureSupported(feature) {
|
|
2169
|
+
return this._featureFlags.get(feature);
|
|
2170
|
+
}
|
|
2171
|
+
static setIsFeatureSupported(feature, value) {
|
|
2172
|
+
this._featureFlags.set(feature, value);
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
DataCaptureContextFeatures._featureFlags = new Map();
|
|
2176
|
+
|
|
2179
2177
|
var DataCaptureViewEvents;
|
|
2180
2178
|
(function (DataCaptureViewEvents) {
|
|
2181
2179
|
DataCaptureViewEvents["didChangeSize"] = "DataCaptureViewListener.onSizeChanged";
|