@regulaforensics/document-reader 9.9.1147-nightly → 9.9.1155-beta
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/Package.swift +28 -0
- package/README.md +3 -1
- package/android/CVDDocumentReader.kt +4 -3
- package/android/build.gradle.kts +37 -0
- package/android/cordova.gradle.kts +13 -0
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/BluetoothUtil.kt +1 -1
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Config.kt +3 -3
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/JSONConstructor.kt +4 -4
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Main.kt +3 -3
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/RNDocumentReaderModule.kt +4 -3
- package/android/src/main/kotlin/com/regula/plugin/{documentreader → document/reader}/Utils.kt +1 -1
- package/app.plugin.js +10 -7
- package/examples/capacitor/README.md +2 -0
- package/examples/capacitor/android/app/build.gradle +1 -10
- package/examples/capacitor/android/app/src/main/AndroidManifest.xml +9 -0
- package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/examples/capacitor/android/build.gradle +12 -3
- 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 +4 -0
- package/examples/capacitor/android/gradlew +4 -7
- package/examples/capacitor/android/gradlew.bat +12 -24
- package/examples/capacitor/android/variables.gradle +13 -9
- package/examples/capacitor/capacitor.config.json +15 -0
- package/examples/capacitor/index.tsx +15 -23
- package/examples/capacitor/ios/App/App/AppDelegate.swift +5 -40
- package/examples/capacitor/ios/App/App/Info.plist +19 -2
- package/examples/capacitor/ios/App/App/SceneDelegate.swift +23 -0
- package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +30 -86
- package/examples/capacitor/ios/App/CapApp-SPM/Sources/CapApp-SPM/CapApp-SPM.swift +1 -0
- package/examples/capacitor/package.json +13 -18
- package/examples/capacitor/scripts/android.sh +5 -8
- package/examples/capacitor/scripts/ios.sh +5 -7
- package/examples/capacitor/scripts/setup.sh +2 -7
- package/examples/capacitor/src/main.css +5 -0
- package/examples/capacitor/vite.config.ts +0 -12
- package/examples/capacitor-cocoapods/README.md +22 -0
- package/examples/capacitor-cocoapods/android/app/build.gradle +50 -0
- package/examples/capacitor-cocoapods/android/app/proguard-rules.pro +21 -0
- package/examples/capacitor-cocoapods/android/app/src/main/AndroidManifest.xml +27 -0
- 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 +5 -0
- 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 +4 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/drawable/launcher_round.xml +4 -0
- 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 +12 -0
- package/examples/capacitor-cocoapods/android/app/src/main/res/values/styles.xml +22 -0
- package/examples/capacitor-cocoapods/android/build.gradle +30 -0
- package/examples/capacitor-cocoapods/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/examples/capacitor-cocoapods/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/examples/capacitor-cocoapods/android/gradle.properties +22 -0
- package/examples/capacitor-cocoapods/android/gradlew +251 -0
- package/examples/capacitor-cocoapods/android/gradlew.bat +94 -0
- package/examples/capacitor-cocoapods/android/settings.gradle +5 -0
- package/examples/capacitor-cocoapods/android/variables.gradle +16 -0
- package/examples/capacitor-cocoapods/index.html +5 -0
- package/examples/capacitor-cocoapods/index.tsx +39 -0
- package/examples/capacitor-cocoapods/ios/App/App/App.entitlements +10 -0
- package/examples/capacitor-cocoapods/ios/App/App/AppDelegate.swift +49 -0
- 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 +14 -0
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/examples/capacitor-cocoapods/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- 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 +32 -0
- package/examples/capacitor-cocoapods/ios/App/App/Info.plist +69 -0
- package/examples/capacitor-cocoapods/ios/App/App.xcodeproj/project.pbxproj +430 -0
- package/examples/capacitor-cocoapods/ios/App/App.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/examples/capacitor-cocoapods/package.json +30 -0
- 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 +11 -0
- package/examples/capacitor-cocoapods/scripts/ios.sh +10 -0
- package/examples/capacitor-cocoapods/scripts/setup.sh +14 -0
- package/examples/capacitor-cocoapods/src/extra/bt_device.tsx +33 -0
- package/examples/capacitor-cocoapods/src/extra/custom_rfid.tsx +61 -0
- package/examples/capacitor-cocoapods/src/main.css +148 -0
- package/examples/capacitor-cocoapods/src/main.html +38 -0
- package/examples/capacitor-cocoapods/src/main.tsx +172 -0
- package/examples/capacitor-cocoapods/tsconfig.json +5 -0
- package/examples/capacitor-cocoapods/vite.config.ts +17 -0
- package/examples/ionic/README.md +2 -0
- package/examples/ionic/config.xml +1 -1
- package/examples/ionic/index.tsx +8 -3
- package/examples/ionic/package-lock.json +6014 -7521
- package/examples/ionic/package.json +24 -33
- package/examples/ionic/scripts/android.sh +0 -2
- package/examples/ionic/scripts/ios.sh +0 -2
- package/examples/ionic/scripts/setup.sh +0 -2
- package/examples/ionic/tsconfig.json +0 -1
- package/examples/ionic-cocoapods/README.md +22 -0
- package/examples/ionic-cocoapods/angular.json +39 -0
- package/examples/ionic-cocoapods/assets/.gitkeep +0 -0
- package/examples/ionic-cocoapods/config.xml +63 -0
- 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 +19 -0
- package/examples/ionic-cocoapods/index.tsx +58 -0
- package/examples/ionic-cocoapods/ionic.config.json +7 -0
- package/examples/ionic-cocoapods/package-lock.json +16579 -0
- package/examples/ionic-cocoapods/package.json +58 -0
- package/examples/ionic-cocoapods/scripts/android.sh +8 -0
- package/examples/ionic-cocoapods/scripts/ios.sh +8 -0
- package/examples/ionic-cocoapods/scripts/setup.sh +8 -0
- package/examples/ionic-cocoapods/src/extra/bt_device.tsx +33 -0
- package/examples/ionic-cocoapods/src/extra/custom_rfid.tsx +61 -0
- package/examples/ionic-cocoapods/src/main.css +148 -0
- package/examples/ionic-cocoapods/src/main.html +38 -0
- package/examples/ionic-cocoapods/src/main.tsx +172 -0
- package/examples/ionic-cocoapods/tsconfig.json +14 -0
- package/examples/react_native/README.md +2 -0
- package/examples/react_native/app.config.ts +1 -2
- package/examples/react_native/package-lock.json +2018 -4031
- package/examples/react_native/package.json +14 -19
- 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 +4 -3
- package/ios/module.modulemap +7 -0
- package/package.json +1 -1
- package/plugin.xml +12 -12
- package/react-native-document-reader.podspec +14 -0
- package/test/package-lock.json +5 -2
- package/RNDocumentReader.podspec +0 -21
- package/android/build.gradle +0 -36
- package/android/cordova.gradle +0 -12
- package/examples/react_native/vendor/image-size-metro-compat/index.cjs +0 -16
- package/examples/react_native/vendor/image-size-metro-compat/package.json +0 -8
- /package/examples/{capacitor → capacitor-cocoapods}/android/app/capacitor.build.gradle +0 -0
- /package/examples/{capacitor → capacitor-cocoapods}/android/capacitor.settings.gradle +0 -0
- /package/examples/{capacitor → capacitor-cocoapods}/ionic.config.json +0 -0
- /package/examples/{capacitor → capacitor-cocoapods}/ios/App/App/Base.lproj/Main.storyboard +0 -0
- /package/examples/{capacitor → capacitor-cocoapods}/ios/App/App.xcworkspace/contents.xcworkspacedata +0 -0
- /package/examples/{capacitor → capacitor-cocoapods}/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- /package/examples/{capacitor → capacitor-cocoapods}/ios/App/Podfile +0 -0
- /package/examples/{capacitor → capacitor-cocoapods}/ios/App/Podfile.lock +0 -0
- /package/examples/{capacitor → capacitor-cocoapods}/package-lock.json +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>en</string>
|
|
7
|
+
<key>CFBundleDisplayName</key>
|
|
8
|
+
<string>Document</string>
|
|
9
|
+
<key>CFBundleExecutable</key>
|
|
10
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
11
|
+
<key>CFBundleIdentifier</key>
|
|
12
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
+
<string>6.0</string>
|
|
15
|
+
<key>CFBundleName</key>
|
|
16
|
+
<string>$(PRODUCT_NAME)</string>
|
|
17
|
+
<key>CFBundlePackageType</key>
|
|
18
|
+
<string>APPL</string>
|
|
19
|
+
<key>CFBundleShortVersionString</key>
|
|
20
|
+
<string>$(MARKETING_VERSION)</string>
|
|
21
|
+
<key>CFBundleVersion</key>
|
|
22
|
+
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
23
|
+
<key>LSRequiresIPhoneOS</key>
|
|
24
|
+
<true/>
|
|
25
|
+
<key>NFCReaderUsageDescription</key>
|
|
26
|
+
<string>To use NFC</string>
|
|
27
|
+
<key>NSAppTransportSecurity</key>
|
|
28
|
+
<dict>
|
|
29
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
30
|
+
<true/>
|
|
31
|
+
</dict>
|
|
32
|
+
<key>NSBluetoothAlwaysUsageDescription</key>
|
|
33
|
+
<string></string>
|
|
34
|
+
<key>NSCameraUsageDescription</key>
|
|
35
|
+
<string></string>
|
|
36
|
+
<key>NSPhotoLibraryUsageDescription</key>
|
|
37
|
+
<string></string>
|
|
38
|
+
<key>UILaunchStoryboardName</key>
|
|
39
|
+
<string>LaunchScreen</string>
|
|
40
|
+
<key>UIMainStoryboardFile</key>
|
|
41
|
+
<string>Main</string>
|
|
42
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
43
|
+
<array>
|
|
44
|
+
<string>armv7</string>
|
|
45
|
+
</array>
|
|
46
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
47
|
+
<array>
|
|
48
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
49
|
+
</array>
|
|
50
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
51
|
+
<array>
|
|
52
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
53
|
+
</array>
|
|
54
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
55
|
+
<true/>
|
|
56
|
+
<key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
|
|
57
|
+
<array>
|
|
58
|
+
<string>A0000002471001</string>
|
|
59
|
+
<string>E80704007F00070302</string>
|
|
60
|
+
<string>A000000167455349474E</string>
|
|
61
|
+
<string>A0000002480100</string>
|
|
62
|
+
<string>A0000002480200</string>
|
|
63
|
+
<string>A0000002480300</string>
|
|
64
|
+
<string>A0000002480400</string>
|
|
65
|
+
<string>A00000045645444C2D3031</string>
|
|
66
|
+
<string>D2760000850101</string>
|
|
67
|
+
</array>
|
|
68
|
+
</dict>
|
|
69
|
+
</plist>
|
|
@@ -0,0 +1,430 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
}
|