@regulaforensics/document-reader 9.9.1155-beta → 9.9.1161-nightly
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/README.md +1 -3
- package/RNDocumentReader.podspec +21 -0
- package/android/CVDDocumentReader.kt +3 -4
- package/android/build.gradle +36 -0
- package/android/cordova.gradle +12 -0
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/BluetoothUtil.kt +1 -1
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/Config.kt +3 -3
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/JSONConstructor.kt +4 -4
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/Main.kt +3 -3
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/RNDocumentReaderModule.kt +3 -4
- package/android/src/main/kotlin/com/regula/plugin/{document/reader → documentreader}/Utils.kt +1 -1
- package/app.plugin.js +7 -10
- package/examples/capacitor/README.md +0 -2
- package/examples/capacitor/android/app/build.gradle +10 -1
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +0 -9
- package/examples/capacitor/android/build.gradle +3 -12
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/examples/capacitor/android/gradle.properties +0 -4
- package/examples/capacitor/android/gradlew +7 -4
- package/examples/capacitor/android/gradlew.bat +24 -12
- package/examples/capacitor/android/variables.gradle +9 -13
- package/examples/capacitor/index.tsx +23 -15
- package/examples/capacitor/ios/App/App/AppDelegate.swift +40 -5
- package/examples/capacitor/ios/App/App/Info.plist +2 -19
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +86 -30
- package/examples/capacitor/package.json +18 -13
- package/examples/capacitor/scripts/android.sh +8 -5
- package/examples/capacitor/scripts/ios.sh +7 -5
- package/examples/capacitor/scripts/setup.sh +7 -2
- package/examples/capacitor/src/main.css +0 -5
- package/examples/capacitor/vite.config.ts +12 -0
- package/examples/ionic/README.md +0 -2
- package/examples/ionic/config.xml +1 -1
- package/examples/ionic/index.tsx +3 -8
- package/examples/ionic/package-lock.json +7536 -6029
- package/examples/ionic/package.json +33 -24
- package/examples/ionic/scripts/android.sh +2 -0
- package/examples/ionic/scripts/ios.sh +2 -0
- package/examples/ionic/scripts/setup.sh +2 -0
- package/examples/ionic/tsconfig.json +1 -0
- package/examples/react_native/README.md +0 -2
- package/examples/react_native/app.config.ts +2 -1
- package/examples/react_native/package-lock.json +4015 -2002
- package/examples/react_native/package.json +19 -14
- package/examples/react_native/scripts/android.sh +3 -3
- package/examples/react_native/scripts/ios.sh +3 -3
- package/examples/react_native/scripts/setup.sh +3 -4
- package/examples/react_native/vendor/image-size-metro-compat/index.cjs +16 -0
- package/examples/react_native/vendor/image-size-metro-compat/package.json +8 -0
- package/package.json +1 -1
- package/plugin.xml +12 -12
- package/test/package-lock.json +2 -5
- package/Package.swift +0 -28
- package/android/build.gradle.kts +0 -37
- package/android/cordova.gradle.kts +0 -13
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +0 -5
- package/examples/capacitor/capacitor.config.json +0 -15
- package/examples/capacitor/ios/App/App/SceneDelegate.swift +0 -23
- package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +0 -1
- package/examples/capacitor-cocoapods/README.md +0 -22
- package/examples/capacitor-cocoapods/android/app/build.gradle +0 -50
- package/examples/capacitor-cocoapods/android/app/proguard-rules.pro +0 -21
- package/examples/capacitor-cocoapods/android/app/src/main/AndroidManifest.xml +0 -27
- package/examples/capacitor-cocoapods/android/app/src/main/assets/Regula/.gitkeep +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/java/com/regula/example/dr/capacitor/MainActivity.java +0 -5
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/ic_launcher.png +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/ic_launcher_foreground.png +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/ic_launcher_round.png +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/launcher.xml +0 -4
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/launcher_round.xml +0 -4
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/splash.png +0 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/layout/activity_main.xml +0 -12
- package/examples/capacitor-cocoapods/android/app/src/main/res/values/styles.xml +0 -22
- package/examples/capacitor-cocoapods/android/build.gradle +0 -30
- package/examples/capacitor-cocoapods/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor-cocoapods/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/examples/capacitor-cocoapods/android/gradle.properties +0 -22
- package/examples/capacitor-cocoapods/android/gradlew +0 -251
- package/examples/capacitor-cocoapods/android/gradlew.bat +0 -94
- package/examples/capacitor-cocoapods/android/settings.gradle +0 -5
- package/examples/capacitor-cocoapods/android/variables.gradle +0 -16
- package/examples/capacitor-cocoapods/index.html +0 -5
- package/examples/capacitor-cocoapods/index.tsx +0 -39
- package/examples/capacitor-cocoapods/ios/App/App/App.entitlements +0 -10
- package/examples/capacitor-cocoapods/ios/App/App/AppDelegate.swift +0 -49
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -14
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Contents.json +0 -6
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +0 -23
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/examples/capacitor-cocoapods/ios/App/App/Base.lproj/LaunchScreen.storyboard +0 -32
- package/examples/capacitor-cocoapods/ios/App/App/Info.plist +0 -69
- package/examples/capacitor-cocoapods/ios/App/App.xcodeproj/project.pbxproj +0 -430
- package/examples/capacitor-cocoapods/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/examples/capacitor-cocoapods/package.json +0 -30
- package/examples/capacitor-cocoapods/public/assets/.gitkeep +0 -0
- package/examples/capacitor-cocoapods/public/images/document.png +0 -0
- package/examples/capacitor-cocoapods/public/images/portrait.png +0 -0
- package/examples/capacitor-cocoapods/scripts/android.sh +0 -11
- package/examples/capacitor-cocoapods/scripts/ios.sh +0 -10
- package/examples/capacitor-cocoapods/scripts/setup.sh +0 -14
- package/examples/capacitor-cocoapods/src/extra/bt_device.tsx +0 -33
- package/examples/capacitor-cocoapods/src/extra/custom_rfid.tsx +0 -61
- package/examples/capacitor-cocoapods/src/main.css +0 -148
- package/examples/capacitor-cocoapods/src/main.html +0 -38
- package/examples/capacitor-cocoapods/src/main.tsx +0 -172
- package/examples/capacitor-cocoapods/tsconfig.json +0 -5
- package/examples/capacitor-cocoapods/vite.config.ts +0 -17
- package/examples/ionic-cocoapods/README.md +0 -22
- package/examples/ionic-cocoapods/angular.json +0 -39
- package/examples/ionic-cocoapods/assets/.gitkeep +0 -0
- package/examples/ionic-cocoapods/config.xml +0 -63
- package/examples/ionic-cocoapods/images/document.png +0 -0
- package/examples/ionic-cocoapods/images/icon.png +0 -0
- package/examples/ionic-cocoapods/images/portrait.png +0 -0
- package/examples/ionic-cocoapods/index.html +0 -19
- package/examples/ionic-cocoapods/index.tsx +0 -58
- package/examples/ionic-cocoapods/ionic.config.json +0 -7
- package/examples/ionic-cocoapods/package-lock.json +0 -16579
- package/examples/ionic-cocoapods/package.json +0 -58
- package/examples/ionic-cocoapods/scripts/android.sh +0 -8
- package/examples/ionic-cocoapods/scripts/ios.sh +0 -8
- package/examples/ionic-cocoapods/scripts/setup.sh +0 -8
- package/examples/ionic-cocoapods/src/extra/bt_device.tsx +0 -33
- package/examples/ionic-cocoapods/src/extra/custom_rfid.tsx +0 -61
- package/examples/ionic-cocoapods/src/main.css +0 -148
- package/examples/ionic-cocoapods/src/main.html +0 -38
- package/examples/ionic-cocoapods/src/main.tsx +0 -172
- package/examples/ionic-cocoapods/tsconfig.json +0 -14
- package/ios/module.modulemap +0 -7
- package/react-native-document-reader.podspec +0 -14
- /package/examples/{capacitor-cocoapods → capacitor}/android/app/capacitor.build.gradle +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/android/capacitor.settings.gradle +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ionic.config.json +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/App/Base.lproj/Main.storyboard +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/App.xcworkspace/contents.xcworkspacedata +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/Podfile +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/ios/App/Podfile.lock +0 -0
- /package/examples/{capacitor-cocoapods → capacitor}/package-lock.json +0 -0
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
// !$*UTF8*$!
|
|
2
|
-
{
|
|
3
|
-
archiveVersion = 1;
|
|
4
|
-
classes = {
|
|
5
|
-
};
|
|
6
|
-
objectVersion = 48;
|
|
7
|
-
objects = {
|
|
8
|
-
|
|
9
|
-
/* Begin PBXBuildFile section */
|
|
10
|
-
2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
|
|
11
|
-
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
|
|
12
|
-
504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
|
|
13
|
-
504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };
|
|
14
|
-
504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };
|
|
15
|
-
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
|
|
16
|
-
50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
|
|
17
|
-
A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */; };
|
|
18
|
-
C3C12F0D2DEDD3AA0068B75D /* db.dat in Resources */ = {isa = PBXBuildFile; fileRef = C3C12F0C2DEDD3AA0068B75D /* db.dat */; };
|
|
19
|
-
/* End PBXBuildFile section */
|
|
20
|
-
|
|
21
|
-
/* Begin PBXFileReference section */
|
|
22
|
-
2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
|
|
23
|
-
34ADEF8A2B6C25C900B38C44 /* App.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = App.entitlements; sourceTree = "<group>"; };
|
|
24
|
-
50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
|
|
25
|
-
504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
26
|
-
504EC3071FED79650016851F /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
|
|
27
|
-
504EC30C1FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
|
|
28
|
-
504EC30E1FED79650016851F /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
|
29
|
-
504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
|
30
|
-
504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
31
|
-
50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
|
|
32
|
-
AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_App.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
33
|
-
AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.release.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.release.xcconfig"; sourceTree = "<group>"; };
|
|
34
|
-
C3C12F0C2DEDD3AA0068B75D /* db.dat */ = {isa = PBXFileReference; lastKnownFileType = file; path = db.dat; sourceTree = "<group>"; };
|
|
35
|
-
FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-App.debug.xcconfig"; path = "Pods/Target Support Files/Pods-App/Pods-App.debug.xcconfig"; sourceTree = "<group>"; };
|
|
36
|
-
/* End PBXFileReference section */
|
|
37
|
-
|
|
38
|
-
/* Begin PBXFrameworksBuildPhase section */
|
|
39
|
-
504EC3011FED79650016851F /* Frameworks */ = {
|
|
40
|
-
isa = PBXFrameworksBuildPhase;
|
|
41
|
-
buildActionMask = 2147483647;
|
|
42
|
-
files = (
|
|
43
|
-
A084ECDBA7D38E1E42DFC39D /* Pods_App.framework in Frameworks */,
|
|
44
|
-
);
|
|
45
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
46
|
-
};
|
|
47
|
-
/* End PBXFrameworksBuildPhase section */
|
|
48
|
-
|
|
49
|
-
/* Begin PBXGroup section */
|
|
50
|
-
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */ = {
|
|
51
|
-
isa = PBXGroup;
|
|
52
|
-
children = (
|
|
53
|
-
AF277DCFFFF123FFC6DF26C7 /* Pods_App.framework */,
|
|
54
|
-
);
|
|
55
|
-
name = Frameworks;
|
|
56
|
-
sourceTree = "<group>";
|
|
57
|
-
};
|
|
58
|
-
504EC2FB1FED79650016851F = {
|
|
59
|
-
isa = PBXGroup;
|
|
60
|
-
children = (
|
|
61
|
-
504EC3061FED79650016851F /* App */,
|
|
62
|
-
504EC3051FED79650016851F /* Products */,
|
|
63
|
-
7F8756D8B27F46E3366F6CEA /* Pods */,
|
|
64
|
-
27E2DDA53C4D2A4D1A88CE4A /* Frameworks */,
|
|
65
|
-
);
|
|
66
|
-
sourceTree = "<group>";
|
|
67
|
-
};
|
|
68
|
-
504EC3051FED79650016851F /* Products */ = {
|
|
69
|
-
isa = PBXGroup;
|
|
70
|
-
children = (
|
|
71
|
-
504EC3041FED79650016851F /* App.app */,
|
|
72
|
-
);
|
|
73
|
-
name = Products;
|
|
74
|
-
sourceTree = "<group>";
|
|
75
|
-
};
|
|
76
|
-
504EC3061FED79650016851F /* App */ = {
|
|
77
|
-
isa = PBXGroup;
|
|
78
|
-
children = (
|
|
79
|
-
34ADEF8A2B6C25C900B38C44 /* App.entitlements */,
|
|
80
|
-
50379B222058CBB4000EE86E /* capacitor.config.json */,
|
|
81
|
-
504EC3071FED79650016851F /* AppDelegate.swift */,
|
|
82
|
-
504EC30B1FED79650016851F /* Main.storyboard */,
|
|
83
|
-
504EC30E1FED79650016851F /* Assets.xcassets */,
|
|
84
|
-
504EC3101FED79650016851F /* LaunchScreen.storyboard */,
|
|
85
|
-
504EC3131FED79650016851F /* Info.plist */,
|
|
86
|
-
2FAD9762203C412B000D30F8 /* config.xml */,
|
|
87
|
-
50B271D01FEDC1A000F3C39B /* public */,
|
|
88
|
-
C3C12F0C2DEDD3AA0068B75D /* db.dat */,
|
|
89
|
-
);
|
|
90
|
-
path = App;
|
|
91
|
-
sourceTree = "<group>";
|
|
92
|
-
};
|
|
93
|
-
7F8756D8B27F46E3366F6CEA /* Pods */ = {
|
|
94
|
-
isa = PBXGroup;
|
|
95
|
-
children = (
|
|
96
|
-
FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */,
|
|
97
|
-
AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */,
|
|
98
|
-
);
|
|
99
|
-
name = Pods;
|
|
100
|
-
sourceTree = "<group>";
|
|
101
|
-
};
|
|
102
|
-
/* End PBXGroup section */
|
|
103
|
-
|
|
104
|
-
/* Begin PBXNativeTarget section */
|
|
105
|
-
504EC3031FED79650016851F /* App */ = {
|
|
106
|
-
isa = PBXNativeTarget;
|
|
107
|
-
buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */;
|
|
108
|
-
buildPhases = (
|
|
109
|
-
6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */,
|
|
110
|
-
504EC3001FED79650016851F /* Sources */,
|
|
111
|
-
504EC3011FED79650016851F /* Frameworks */,
|
|
112
|
-
504EC3021FED79650016851F /* Resources */,
|
|
113
|
-
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */,
|
|
114
|
-
2D88F7C878728A28B89ACF35 /* [CP] Copy Pods Resources */,
|
|
115
|
-
);
|
|
116
|
-
buildRules = (
|
|
117
|
-
);
|
|
118
|
-
dependencies = (
|
|
119
|
-
);
|
|
120
|
-
name = App;
|
|
121
|
-
productName = App;
|
|
122
|
-
productReference = 504EC3041FED79650016851F /* App.app */;
|
|
123
|
-
productType = "com.apple.product-type.application";
|
|
124
|
-
};
|
|
125
|
-
/* End PBXNativeTarget section */
|
|
126
|
-
|
|
127
|
-
/* Begin PBXProject section */
|
|
128
|
-
504EC2FC1FED79650016851F /* Project object */ = {
|
|
129
|
-
isa = PBXProject;
|
|
130
|
-
attributes = {
|
|
131
|
-
LastSwiftUpdateCheck = 0920;
|
|
132
|
-
LastUpgradeCheck = 0920;
|
|
133
|
-
TargetAttributes = {
|
|
134
|
-
504EC3031FED79650016851F = {
|
|
135
|
-
CreatedOnToolsVersion = 9.2;
|
|
136
|
-
LastSwiftMigration = 1100;
|
|
137
|
-
ProvisioningStyle = Automatic;
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
buildConfigurationList = 504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */;
|
|
142
|
-
compatibilityVersion = "Xcode 8.0";
|
|
143
|
-
developmentRegion = en;
|
|
144
|
-
hasScannedForEncodings = 0;
|
|
145
|
-
knownRegions = (
|
|
146
|
-
en,
|
|
147
|
-
Base,
|
|
148
|
-
);
|
|
149
|
-
mainGroup = 504EC2FB1FED79650016851F;
|
|
150
|
-
productRefGroup = 504EC3051FED79650016851F /* Products */;
|
|
151
|
-
projectDirPath = "";
|
|
152
|
-
projectRoot = "";
|
|
153
|
-
targets = (
|
|
154
|
-
504EC3031FED79650016851F /* App */,
|
|
155
|
-
);
|
|
156
|
-
};
|
|
157
|
-
/* End PBXProject section */
|
|
158
|
-
|
|
159
|
-
/* Begin PBXResourcesBuildPhase section */
|
|
160
|
-
504EC3021FED79650016851F /* Resources */ = {
|
|
161
|
-
isa = PBXResourcesBuildPhase;
|
|
162
|
-
buildActionMask = 2147483647;
|
|
163
|
-
files = (
|
|
164
|
-
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */,
|
|
165
|
-
50B271D11FEDC1A000F3C39B /* public in Resources */,
|
|
166
|
-
504EC30F1FED79650016851F /* Assets.xcassets in Resources */,
|
|
167
|
-
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */,
|
|
168
|
-
504EC30D1FED79650016851F /* Main.storyboard in Resources */,
|
|
169
|
-
2FAD9763203C412B000D30F8 /* config.xml in Resources */,
|
|
170
|
-
C3C12F0D2DEDD3AA0068B75D /* db.dat in Resources */,
|
|
171
|
-
);
|
|
172
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
173
|
-
};
|
|
174
|
-
/* End PBXResourcesBuildPhase section */
|
|
175
|
-
|
|
176
|
-
/* Begin PBXShellScriptBuildPhase section */
|
|
177
|
-
2D88F7C878728A28B89ACF35 /* [CP] Copy Pods Resources */ = {
|
|
178
|
-
isa = PBXShellScriptBuildPhase;
|
|
179
|
-
buildActionMask = 2147483647;
|
|
180
|
-
files = (
|
|
181
|
-
);
|
|
182
|
-
inputPaths = (
|
|
183
|
-
);
|
|
184
|
-
name = "[CP] Copy Pods Resources";
|
|
185
|
-
outputPaths = (
|
|
186
|
-
);
|
|
187
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
188
|
-
shellPath = /bin/sh;
|
|
189
|
-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-resources.sh\"\n";
|
|
190
|
-
showEnvVarsInLog = 0;
|
|
191
|
-
};
|
|
192
|
-
6634F4EFEBD30273BCE97C65 /* [CP] Check Pods Manifest.lock */ = {
|
|
193
|
-
isa = PBXShellScriptBuildPhase;
|
|
194
|
-
buildActionMask = 2147483647;
|
|
195
|
-
files = (
|
|
196
|
-
);
|
|
197
|
-
inputPaths = (
|
|
198
|
-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
|
199
|
-
"${PODS_ROOT}/Manifest.lock",
|
|
200
|
-
);
|
|
201
|
-
name = "[CP] Check Pods Manifest.lock";
|
|
202
|
-
outputPaths = (
|
|
203
|
-
"$(DERIVED_FILE_DIR)/Pods-App-checkManifestLockResult.txt",
|
|
204
|
-
);
|
|
205
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
206
|
-
shellPath = /bin/sh;
|
|
207
|
-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
|
208
|
-
showEnvVarsInLog = 0;
|
|
209
|
-
};
|
|
210
|
-
9592DBEFFC6D2A0C8D5DEB22 /* [CP] Embed Pods Frameworks */ = {
|
|
211
|
-
isa = PBXShellScriptBuildPhase;
|
|
212
|
-
buildActionMask = 2147483647;
|
|
213
|
-
files = (
|
|
214
|
-
);
|
|
215
|
-
inputPaths = (
|
|
216
|
-
);
|
|
217
|
-
name = "[CP] Embed Pods Frameworks";
|
|
218
|
-
outputPaths = (
|
|
219
|
-
);
|
|
220
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
221
|
-
shellPath = /bin/sh;
|
|
222
|
-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-App/Pods-App-frameworks.sh\"\n";
|
|
223
|
-
showEnvVarsInLog = 0;
|
|
224
|
-
};
|
|
225
|
-
/* End PBXShellScriptBuildPhase section */
|
|
226
|
-
|
|
227
|
-
/* Begin PBXSourcesBuildPhase section */
|
|
228
|
-
504EC3001FED79650016851F /* Sources */ = {
|
|
229
|
-
isa = PBXSourcesBuildPhase;
|
|
230
|
-
buildActionMask = 2147483647;
|
|
231
|
-
files = (
|
|
232
|
-
504EC3081FED79650016851F /* AppDelegate.swift in Sources */,
|
|
233
|
-
);
|
|
234
|
-
runOnlyForDeploymentPostprocessing = 0;
|
|
235
|
-
};
|
|
236
|
-
/* End PBXSourcesBuildPhase section */
|
|
237
|
-
|
|
238
|
-
/* Begin PBXVariantGroup section */
|
|
239
|
-
504EC30B1FED79650016851F /* Main.storyboard */ = {
|
|
240
|
-
isa = PBXVariantGroup;
|
|
241
|
-
children = (
|
|
242
|
-
504EC30C1FED79650016851F /* Base */,
|
|
243
|
-
);
|
|
244
|
-
name = Main.storyboard;
|
|
245
|
-
sourceTree = "<group>";
|
|
246
|
-
};
|
|
247
|
-
504EC3101FED79650016851F /* LaunchScreen.storyboard */ = {
|
|
248
|
-
isa = PBXVariantGroup;
|
|
249
|
-
children = (
|
|
250
|
-
504EC3111FED79650016851F /* Base */,
|
|
251
|
-
);
|
|
252
|
-
name = LaunchScreen.storyboard;
|
|
253
|
-
sourceTree = "<group>";
|
|
254
|
-
};
|
|
255
|
-
/* End PBXVariantGroup section */
|
|
256
|
-
|
|
257
|
-
/* Begin XCBuildConfiguration section */
|
|
258
|
-
504EC3141FED79650016851F /* Debug */ = {
|
|
259
|
-
isa = XCBuildConfiguration;
|
|
260
|
-
buildSettings = {
|
|
261
|
-
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
262
|
-
CLANG_ANALYZER_NONNULL = YES;
|
|
263
|
-
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
264
|
-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
265
|
-
CLANG_CXX_LIBRARY = "libc++";
|
|
266
|
-
CLANG_ENABLE_MODULES = YES;
|
|
267
|
-
CLANG_ENABLE_OBJC_ARC = YES;
|
|
268
|
-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
269
|
-
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
270
|
-
CLANG_WARN_COMMA = YES;
|
|
271
|
-
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
272
|
-
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
273
|
-
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
274
|
-
CLANG_WARN_EMPTY_BODY = YES;
|
|
275
|
-
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
276
|
-
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
277
|
-
CLANG_WARN_INT_CONVERSION = YES;
|
|
278
|
-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
279
|
-
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
280
|
-
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
281
|
-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
282
|
-
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
283
|
-
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
284
|
-
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
285
|
-
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
286
|
-
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
287
|
-
CODE_SIGN_IDENTITY = "iPhone Developer";
|
|
288
|
-
COPY_PHASE_STRIP = NO;
|
|
289
|
-
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
290
|
-
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
291
|
-
ENABLE_TESTABILITY = YES;
|
|
292
|
-
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
293
|
-
GCC_DYNAMIC_NO_PIC = NO;
|
|
294
|
-
GCC_NO_COMMON_BLOCKS = YES;
|
|
295
|
-
GCC_OPTIMIZATION_LEVEL = 0;
|
|
296
|
-
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
297
|
-
"DEBUG=1",
|
|
298
|
-
"$(inherited)",
|
|
299
|
-
);
|
|
300
|
-
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
301
|
-
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
302
|
-
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
303
|
-
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
304
|
-
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
305
|
-
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
306
|
-
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
|
307
|
-
MTL_ENABLE_DEBUG_INFO = YES;
|
|
308
|
-
ONLY_ACTIVE_ARCH = YES;
|
|
309
|
-
SDKROOT = iphoneos;
|
|
310
|
-
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
|
311
|
-
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
312
|
-
};
|
|
313
|
-
name = Debug;
|
|
314
|
-
};
|
|
315
|
-
504EC3151FED79650016851F /* Release */ = {
|
|
316
|
-
isa = XCBuildConfiguration;
|
|
317
|
-
buildSettings = {
|
|
318
|
-
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
319
|
-
CLANG_ANALYZER_NONNULL = YES;
|
|
320
|
-
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
321
|
-
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
322
|
-
CLANG_CXX_LIBRARY = "libc++";
|
|
323
|
-
CLANG_ENABLE_MODULES = YES;
|
|
324
|
-
CLANG_ENABLE_OBJC_ARC = YES;
|
|
325
|
-
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
326
|
-
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
327
|
-
CLANG_WARN_COMMA = YES;
|
|
328
|
-
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
329
|
-
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
330
|
-
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
331
|
-
CLANG_WARN_EMPTY_BODY = YES;
|
|
332
|
-
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
333
|
-
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
334
|
-
CLANG_WARN_INT_CONVERSION = YES;
|
|
335
|
-
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
336
|
-
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
337
|
-
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
338
|
-
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
339
|
-
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
340
|
-
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
341
|
-
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
342
|
-
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
343
|
-
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
344
|
-
CODE_SIGN_IDENTITY = "iPhone Developer";
|
|
345
|
-
COPY_PHASE_STRIP = NO;
|
|
346
|
-
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
347
|
-
ENABLE_NS_ASSERTIONS = NO;
|
|
348
|
-
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
349
|
-
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
350
|
-
GCC_NO_COMMON_BLOCKS = YES;
|
|
351
|
-
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
352
|
-
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
353
|
-
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
354
|
-
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
355
|
-
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
356
|
-
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
357
|
-
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
|
358
|
-
MTL_ENABLE_DEBUG_INFO = NO;
|
|
359
|
-
SDKROOT = iphoneos;
|
|
360
|
-
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
|
361
|
-
VALIDATE_PRODUCT = YES;
|
|
362
|
-
};
|
|
363
|
-
name = Release;
|
|
364
|
-
};
|
|
365
|
-
504EC3171FED79650016851F /* Debug */ = {
|
|
366
|
-
isa = XCBuildConfiguration;
|
|
367
|
-
baseConfigurationReference = FC68EB0AF532CFC21C3344DD /* Pods-App.debug.xcconfig */;
|
|
368
|
-
buildSettings = {
|
|
369
|
-
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
370
|
-
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
|
371
|
-
CODE_SIGN_STYLE = Automatic;
|
|
372
|
-
CURRENT_PROJECT_VERSION = 1;
|
|
373
|
-
INFOPLIST_FILE = App/Info.plist;
|
|
374
|
-
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
|
375
|
-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
376
|
-
MARKETING_VERSION = 1.0;
|
|
377
|
-
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
|
|
378
|
-
PRODUCT_BUNDLE_IDENTIFIER = com.regula.example.dr.capacitor;
|
|
379
|
-
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
380
|
-
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
|
|
381
|
-
SWIFT_VERSION = 5.0;
|
|
382
|
-
TARGETED_DEVICE_FAMILY = "1,2";
|
|
383
|
-
};
|
|
384
|
-
name = Debug;
|
|
385
|
-
};
|
|
386
|
-
504EC3181FED79650016851F /* Release */ = {
|
|
387
|
-
isa = XCBuildConfiguration;
|
|
388
|
-
baseConfigurationReference = AF51FD2D460BCFE21FA515B2 /* Pods-App.release.xcconfig */;
|
|
389
|
-
buildSettings = {
|
|
390
|
-
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
391
|
-
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
|
|
392
|
-
CODE_SIGN_STYLE = Automatic;
|
|
393
|
-
CURRENT_PROJECT_VERSION = 1;
|
|
394
|
-
INFOPLIST_FILE = App/Info.plist;
|
|
395
|
-
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
|
|
396
|
-
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
397
|
-
MARKETING_VERSION = 1.0;
|
|
398
|
-
PRODUCT_BUNDLE_IDENTIFIER = com.regula.example.dr.capacitor;
|
|
399
|
-
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
400
|
-
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
|
|
401
|
-
SWIFT_VERSION = 5.0;
|
|
402
|
-
TARGETED_DEVICE_FAMILY = "1,2";
|
|
403
|
-
};
|
|
404
|
-
name = Release;
|
|
405
|
-
};
|
|
406
|
-
/* End XCBuildConfiguration section */
|
|
407
|
-
|
|
408
|
-
/* Begin XCConfigurationList section */
|
|
409
|
-
504EC2FF1FED79650016851F /* Build configuration list for PBXProject "App" */ = {
|
|
410
|
-
isa = XCConfigurationList;
|
|
411
|
-
buildConfigurations = (
|
|
412
|
-
504EC3141FED79650016851F /* Debug */,
|
|
413
|
-
504EC3151FED79650016851F /* Release */,
|
|
414
|
-
);
|
|
415
|
-
defaultConfigurationIsVisible = 0;
|
|
416
|
-
defaultConfigurationName = Release;
|
|
417
|
-
};
|
|
418
|
-
504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */ = {
|
|
419
|
-
isa = XCConfigurationList;
|
|
420
|
-
buildConfigurations = (
|
|
421
|
-
504EC3171FED79650016851F /* Debug */,
|
|
422
|
-
504EC3181FED79650016851F /* Release */,
|
|
423
|
-
);
|
|
424
|
-
defaultConfigurationIsVisible = 0;
|
|
425
|
-
defaultConfigurationName = Release;
|
|
426
|
-
};
|
|
427
|
-
/* End XCConfigurationList section */
|
|
428
|
-
};
|
|
429
|
-
rootObject = 504EC2FC1FED79650016851F /* Project object */;
|
|
430
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "document-reader",
|
|
3
|
-
"scripts": {
|
|
4
|
-
"setup": "scripts/setup.sh",
|
|
5
|
-
"ios": "scripts/ios.sh",
|
|
6
|
-
"android": "scripts/android.sh"
|
|
7
|
-
},
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"@regulaforensics/document-reader": "file:../api",
|
|
10
|
-
"@regulaforensics/document-reader-core-fullauthrfid": "file:../ftp_1",
|
|
11
|
-
"@regulaforensics/document-reader-btdevice": "file:../ftp_2",
|
|
12
|
-
"@awesome-cordova-plugins/file": "^8.1.0",
|
|
13
|
-
"@awesome-cordova-plugins/camera": "^8.1.0",
|
|
14
|
-
"cordova-plugin-file": "^8.1.3",
|
|
15
|
-
"cordova-plugin-camera": "^8.0.0",
|
|
16
|
-
"@capacitor/cli": "^8.0.2",
|
|
17
|
-
"@capacitor/core": "^8.0.2",
|
|
18
|
-
"@capacitor/app": "^8.0.0",
|
|
19
|
-
"@capacitor/ios": "^8.0.2",
|
|
20
|
-
"@capacitor/android": "^8.0.2",
|
|
21
|
-
"@capacitor/status-bar": "^8.0.0",
|
|
22
|
-
"@ionic/react": "^8.7.17",
|
|
23
|
-
"@vitejs/plugin-react": "^5.1.2",
|
|
24
|
-
"vite-plugin-static-copy": "^3.2.0",
|
|
25
|
-
"@types/react-router-dom": "^5.3.3"
|
|
26
|
-
},
|
|
27
|
-
"overrides": {
|
|
28
|
-
"esbuild": "^0.28.1"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DocumentReader, InitConfig } from "@regulaforensics/document-reader"
|
|
2
|
-
import { handleException, init, setStatus } from "../main"
|
|
3
|
-
|
|
4
|
-
export const useBtDevice = false
|
|
5
|
-
export const btDeviceName = "Regula 0000"
|
|
6
|
-
|
|
7
|
-
export function setupBTDevice() {
|
|
8
|
-
var connectButton = document.getElementById("connect")!
|
|
9
|
-
connectButton.style.display = "flex"
|
|
10
|
-
connectButton.onclick = () => connect()
|
|
11
|
-
setStatus("Connect to a bluetooth device")
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
async function connect() {
|
|
15
|
-
setStatus("Searching for devices...")
|
|
16
|
-
if (await DocumentReader.instance.connectBluetoothDevice(btDeviceName)) {
|
|
17
|
-
await init()
|
|
18
|
-
DocumentReader.instance.functionality.useAuthenticator = true
|
|
19
|
-
document.getElementById("connect")!.style.display = "none"
|
|
20
|
-
} else
|
|
21
|
-
setStatus("Failed to connect")
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export async function initializeWithBTDevice() {
|
|
25
|
-
setStatus("Initializing...")
|
|
26
|
-
|
|
27
|
-
var initConfig = InitConfig.withBleDevice()
|
|
28
|
-
initConfig.delayedNNLoad = true
|
|
29
|
-
var [success, error] = await DocumentReader.instance.initialize(initConfig)
|
|
30
|
-
|
|
31
|
-
handleException(error)
|
|
32
|
-
return success
|
|
33
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { DocReaderAction, DocumentReader, RFIDConfig, RFIDDataFileType, RFIDNotificationCodes } from "@regulaforensics/document-reader"
|
|
2
|
-
import { displayResults, setStatus } from "../main"
|
|
3
|
-
|
|
4
|
-
export const useRfidSelfHostedUI = false
|
|
5
|
-
|
|
6
|
-
export function rfidSelfHostedUI() {
|
|
7
|
-
var config = RFIDConfig.withoutUI((action, results, _) => {
|
|
8
|
-
if (DocReaderAction.stopped(action)) stop()
|
|
9
|
-
if (DocReaderAction.finished(action)) displayResults(results)
|
|
10
|
-
if (DocReaderAction.interrupted(action)) setStatus("Error reading RFID")
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
config.onProgress = async (notification) => {
|
|
14
|
-
if (notification.progress == 1) return
|
|
15
|
-
if (notification.notificationCode == RFIDNotificationCodes.PCSC_READING_DATAGROUP)
|
|
16
|
-
setDescription(await RFIDDataFileType.getTranslation(notification.dataFileType))
|
|
17
|
-
setStatus("Reading RFID")
|
|
18
|
-
setProgress(notification.progress)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
setup()
|
|
22
|
-
DocumentReader.instance.rfid(config)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function setup() {
|
|
26
|
-
setStatus("Reading RFID")
|
|
27
|
-
setDescription("Place your phone on top of the NFC tag")
|
|
28
|
-
setProgress(-1)
|
|
29
|
-
currentProgress = -1
|
|
30
|
-
setShowing(true)
|
|
31
|
-
document.getElementById("cancel-rfid")!.onclick = () => stop()
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function stop() {
|
|
35
|
-
DocumentReader.instance.stopRFIDReader()
|
|
36
|
-
displayResults(null)
|
|
37
|
-
setShowing(false)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function setDescription(data: string) {
|
|
41
|
-
document.getElementById("rfid-description")!.innerHTML = data
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
var currentProgress = -1
|
|
45
|
-
function setProgress(next: number) {
|
|
46
|
-
var progress = document.getElementById("progress")!
|
|
47
|
-
// make progress bar look better
|
|
48
|
-
if (next == 0) return // ignore idle 0s, leave progress at 100 while its not moving
|
|
49
|
-
if (next < currentProgress) next = 0 // move to 0 if progress finaly started moving
|
|
50
|
-
if (next >= 95) next = 100 // rfid never returns 100 and it looks ugly, fix it
|
|
51
|
-
if (next < currentProgress) progress.style.transition = 'none' // instantly reset progress
|
|
52
|
-
else progress.style.transition = 'width 0.5s' // smoothly increase progress
|
|
53
|
-
|
|
54
|
-
progress.style.width = next + "%"
|
|
55
|
-
currentProgress = next
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function setShowing(data: boolean) {
|
|
59
|
-
document.getElementById("main")!.style.display = data ? "none" : "flex"
|
|
60
|
-
document.getElementById("custom-rfid")!.style.display = data ? "flex" : "none"
|
|
61
|
-
}
|