@regulaforensics/face-sdk 7.1.210-rc → 7.1.252-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.
Files changed (305) hide show
  1. package/README.md +1 -1
  2. package/RNFaceSDK.podspec +3 -3
  3. package/android/CVDFaceSDK.kt +22 -8
  4. package/android/build.gradle +1 -1
  5. package/android/cordova.gradle +1 -1
  6. package/android/src/main/java/com/regula/plugin/facesdk/Config.kt +9 -1
  7. package/android/src/main/java/com/regula/plugin/facesdk/JSONConstructor.kt +2 -0
  8. package/android/src/main/java/com/regula/plugin/facesdk/Main.kt +15 -9
  9. package/android/src/main/java/com/regula/plugin/facesdk/RNFaceApiModule.kt +16 -6
  10. package/android/src/main/java/com/regula/plugin/facesdk/Utils.kt +32 -2
  11. package/examples/capacitor/README.md +3 -8
  12. package/examples/capacitor/android/app/build.gradle +2 -6
  13. package/examples/capacitor/android/app/capacitor.build.gradle +4 -4
  14. package/examples/capacitor/android/app/src/main/AndroidManifest.xml +3 -16
  15. package/examples/capacitor/android/app/src/main/java/com/regula/{faceapi → documentreader}/MainActivity.java +1 -1
  16. package/examples/capacitor/android/app/src/main/res/values/strings.xml +2 -2
  17. package/examples/capacitor/android/build.gradle +1 -1
  18. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  19. package/examples/capacitor/android/gradle/wrapper/gradle-wrapper.properties +2 -1
  20. package/examples/capacitor/android/gradlew +21 -13
  21. package/examples/capacitor/android/gradlew.bat +12 -10
  22. package/examples/capacitor/android/variables.gradle +11 -11
  23. package/examples/capacitor/index.html +8 -104
  24. package/examples/capacitor/ios/App/App.xcodeproj/project.pbxproj +4 -4
  25. package/examples/capacitor/ios/App/Podfile +2 -3
  26. package/examples/capacitor/ios/App/Podfile.lock +57 -0
  27. package/examples/capacitor/package-lock.json +3536 -0
  28. package/examples/capacitor/package.json +19 -56
  29. package/examples/capacitor/public/images/portrait.png +0 -0
  30. package/examples/capacitor/scripts/setup.sh +2 -0
  31. package/examples/capacitor/src/main.css +77 -0
  32. package/examples/capacitor/src/main.html +22 -0
  33. package/examples/capacitor/src/main.tsx +152 -11
  34. package/examples/capacitor/tsconfig.json +1 -17
  35. package/examples/capacitor/vite.config.ts +10 -9
  36. package/examples/cordova/README.md +4 -6
  37. package/examples/cordova/config.xml +4 -15
  38. package/examples/cordova/package-lock.json +1333 -0
  39. package/examples/cordova/package.json +8 -12
  40. package/examples/cordova/scripts/setup.sh +4 -1
  41. package/examples/cordova/www/images/portrait.png +0 -0
  42. package/examples/cordova/www/index.html +19 -92
  43. package/examples/cordova/www/src/main.css +77 -0
  44. package/examples/cordova/www/src/main.html +22 -0
  45. package/examples/cordova/www/{js/index.js → src/main.js} +41 -43
  46. package/examples/ionic/README.md +3 -6
  47. package/examples/ionic/angular.json +6 -154
  48. package/examples/ionic/config.xml +4 -93
  49. package/examples/ionic/index.html +19 -0
  50. package/examples/ionic/index.ts +17 -0
  51. package/examples/ionic/package-lock.json +13777 -0
  52. package/examples/ionic/package.json +24 -75
  53. package/examples/ionic/scripts/setup.sh +4 -1
  54. package/examples/ionic/src/images/portrait.png +0 -0
  55. package/examples/ionic/src/main.css +77 -0
  56. package/examples/ionic/src/main.html +22 -0
  57. package/examples/ionic/src/main.ts +157 -8
  58. package/examples/ionic/tsconfig.json +6 -20
  59. package/examples/react-native/Gemfile +7 -0
  60. package/examples/react-native/Gemfile.lock +28 -21
  61. package/examples/react-native/README.md +4 -10
  62. package/examples/react-native/android/app/build.gradle +2 -70
  63. package/examples/react-native/android/app/src/main/AndroidManifest.xml +21 -21
  64. package/examples/react-native/android/app/src/main/java/com/regula/{face/api → documentreader}/MainActivity.kt +2 -2
  65. package/examples/react-native/android/app/src/main/java/com/regula/{face/api → documentreader}/MainApplication.kt +1 -1
  66. package/examples/react-native/android/build.gradle +3 -3
  67. package/examples/react-native/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  68. package/examples/react-native/android/gradle.properties +0 -34
  69. package/examples/react-native/android/gradlew +1 -2
  70. package/examples/react-native/android/settings.gradle +1 -1
  71. package/examples/react-native/images/portrait.png +0 -0
  72. package/examples/react-native/index.html +11 -0
  73. package/examples/react-native/index.tsx +51 -0
  74. package/examples/react-native/ios/{FaceSDK → App}/AppDelegate.mm +1 -1
  75. package/examples/react-native/ios/{FaceSDK.xcodeproj → App.xcodeproj}/project.pbxproj +52 -269
  76. package/examples/react-native/ios/{FaceSDK.xcodeproj/xcshareddata/xcschemes/FaceSDK.xcscheme → App.xcodeproj/xcshareddata/xcschemes/App.xcscheme} +9 -27
  77. package/examples/react-native/ios/{FaceSDK.xcworkspace → App.xcworkspace}/contents.xcworkspacedata +1 -1
  78. package/examples/react-native/ios/Podfile +3 -6
  79. package/examples/react-native/ios/Podfile.lock +565 -512
  80. package/examples/react-native/metro.config.js +16 -11
  81. package/examples/react-native/package-lock.json +2121 -6901
  82. package/examples/react-native/package.json +12 -34
  83. package/examples/react-native/patches/react-native-webview+13.13.5.patch +36 -0
  84. package/examples/react-native/scripts/android.sh +5 -0
  85. package/examples/react-native/scripts/ios.sh +5 -1
  86. package/examples/react-native/src/main.css +77 -0
  87. package/examples/react-native/src/main.html +22 -0
  88. package/examples/react-native/{App.tsx → src/main.tsx} +19 -86
  89. package/ios/RFSWConfig.m +7 -1
  90. package/ios/RFSWJSONConstructor.h +2 -0
  91. package/ios/RFSWJSONConstructor.m +32 -15
  92. package/ios/RFSWMain.m +1 -1
  93. package/package.json +1 -1
  94. package/plugin.xml +4 -4
  95. package/www/capacitor/detect_faces/detect_faces_request.js +2 -0
  96. package/www/capacitor/face_capture/face_capture_config.js +6 -2
  97. package/www/capacitor/image_quality/image_quality_characteristic.js +2 -0
  98. package/www/capacitor/image_quality/image_quality_group.js +1 -0
  99. package/www/capacitor/init/init_config.js +8 -0
  100. package/www/capacitor/internal/bridge.js +8 -7
  101. package/www/capacitor/liveness/liveness_backend_exception.js +8 -0
  102. package/www/capacitor/liveness/liveness_config.js +3 -3
  103. package/www/capacitor/person_database/person_database.js +1 -1
  104. package/www/cordova.js +109 -80
  105. package/www/react-native/detect_faces/detect_faces_request.js +2 -0
  106. package/www/react-native/face_capture/face_capture_config.js +6 -2
  107. package/www/react-native/image_quality/image_quality_characteristic.js +2 -0
  108. package/www/react-native/image_quality/image_quality_group.js +1 -0
  109. package/www/react-native/init/init_config.js +8 -0
  110. package/www/react-native/internal/bridge.js +8 -7
  111. package/www/react-native/liveness/liveness_backend_exception.js +8 -0
  112. package/www/react-native/liveness/liveness_config.js +3 -3
  113. package/www/react-native/person_database/person_database.js +1 -1
  114. package/www/types/face_capture/face_capture_config.d.ts +6 -1
  115. package/www/types/init/init_config.d.ts +7 -1
  116. package/www/types/liveness/liveness_backend_exception.d.ts +9 -1
  117. package/www/types/liveness/liveness_config.d.ts +1 -1
  118. package/www/types/person_database/person_database.d.ts +1 -1
  119. package/.gitlab/report.yaml +0 -75
  120. package/.gitlab-ci.yml +0 -49
  121. package/examples/capacitor/.browserslistrc +0 -6
  122. package/examples/capacitor/.eslintrc.js +0 -17
  123. package/examples/capacitor/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +0 -26
  124. package/examples/capacitor/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -170
  125. package/examples/capacitor/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
  126. package/examples/capacitor/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
  127. package/examples/capacitor/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
  128. package/examples/capacitor/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
  129. package/examples/capacitor/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
  130. package/examples/capacitor/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
  131. package/examples/capacitor/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
  132. package/examples/capacitor/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
  133. package/examples/capacitor/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
  134. package/examples/capacitor/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
  135. package/examples/capacitor/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +0 -34
  136. package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
  137. package/examples/capacitor/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
  138. package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  139. package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
  140. package/examples/capacitor/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  141. package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  142. package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
  143. package/examples/capacitor/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  144. package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  145. package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
  146. package/examples/capacitor/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  147. package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  148. package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
  149. package/examples/capacitor/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  150. package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
  151. package/examples/capacitor/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  152. package/examples/capacitor/android/app/src/main/res/values/ic_launcher_background.xml +0 -4
  153. package/examples/capacitor/android/app/src/main/res/xml/file_paths.xml +0 -5
  154. package/examples/capacitor/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +0 -18
  155. package/examples/capacitor/capacitor.config.ts +0 -12
  156. package/examples/capacitor/cypress/e2e/test.cy.ts +0 -6
  157. package/examples/capacitor/cypress/fixtures/example.json +0 -5
  158. package/examples/capacitor/cypress/support/commands.ts +0 -37
  159. package/examples/capacitor/cypress/support/e2e.ts +0 -20
  160. package/examples/capacitor/cypress.config.ts +0 -10
  161. package/examples/capacitor/public/assets/img/id.png +0 -0
  162. package/examples/capacitor/public/assets/img/portrait.png +0 -0
  163. package/examples/capacitor/public/favicon.png +0 -0
  164. package/examples/capacitor/public/manifest.json +0 -21
  165. package/examples/capacitor/src/App.test.tsx +0 -8
  166. package/examples/capacitor/src/App.tsx +0 -42
  167. package/examples/capacitor/src/components/ExploreContainer.css +0 -24
  168. package/examples/capacitor/src/components/ExploreContainer.tsx +0 -14
  169. package/examples/capacitor/src/pages/Home.tsx +0 -159
  170. package/examples/capacitor/src/setupTests.ts +0 -14
  171. package/examples/capacitor/src/theme/variables.css +0 -242
  172. package/examples/capacitor/src/vite-env.d.ts +0 -1
  173. package/examples/capacitor/tsconfig.node.json +0 -9
  174. package/examples/cordova/jsconfig.json +0 -1
  175. package/examples/cordova/www/css/index.css +0 -107
  176. package/examples/cordova/www/img/id.png +0 -0
  177. package/examples/cordova/www/img/portrait.png +0 -0
  178. package/examples/ionic/browserslist +0 -12
  179. package/examples/ionic/e2e/protractor.conf.js +0 -28
  180. package/examples/ionic/e2e/src/app.e2e-spec.ts +0 -14
  181. package/examples/ionic/e2e/src/app.po.ts +0 -11
  182. package/examples/ionic/e2e/tsconfig.json +0 -13
  183. package/examples/ionic/karma.conf.js +0 -31
  184. package/examples/ionic/resources/README.md +0 -8
  185. package/examples/ionic/resources/android/icon/drawable-hdpi-icon.png +0 -0
  186. package/examples/ionic/resources/android/icon/drawable-ldpi-icon.png +0 -0
  187. package/examples/ionic/resources/android/icon/drawable-mdpi-icon.png +0 -0
  188. package/examples/ionic/resources/android/icon/drawable-xhdpi-icon.png +0 -0
  189. package/examples/ionic/resources/android/icon/drawable-xxhdpi-icon.png +0 -0
  190. package/examples/ionic/resources/android/icon/drawable-xxxhdpi-icon.png +0 -0
  191. package/examples/ionic/resources/android/splash/drawable-land-hdpi-screen.png +0 -0
  192. package/examples/ionic/resources/android/splash/drawable-land-ldpi-screen.png +0 -0
  193. package/examples/ionic/resources/android/splash/drawable-land-mdpi-screen.png +0 -0
  194. package/examples/ionic/resources/android/splash/drawable-land-xhdpi-screen.png +0 -0
  195. package/examples/ionic/resources/android/splash/drawable-land-xxhdpi-screen.png +0 -0
  196. package/examples/ionic/resources/android/splash/drawable-land-xxxhdpi-screen.png +0 -0
  197. package/examples/ionic/resources/android/splash/drawable-port-hdpi-screen.png +0 -0
  198. package/examples/ionic/resources/android/splash/drawable-port-ldpi-screen.png +0 -0
  199. package/examples/ionic/resources/android/splash/drawable-port-mdpi-screen.png +0 -0
  200. package/examples/ionic/resources/android/splash/drawable-port-xhdpi-screen.png +0 -0
  201. package/examples/ionic/resources/android/splash/drawable-port-xxhdpi-screen.png +0 -0
  202. package/examples/ionic/resources/android/splash/drawable-port-xxxhdpi-screen.png +0 -0
  203. package/examples/ionic/resources/android/xml/network_security_config.xml +0 -6
  204. package/examples/ionic/resources/ios/icon/icon-1024.png +0 -0
  205. package/examples/ionic/resources/ios/icon/icon-20.png +0 -0
  206. package/examples/ionic/resources/ios/icon/icon-20@2x.png +0 -0
  207. package/examples/ionic/resources/ios/icon/icon-20@3x.png +0 -0
  208. package/examples/ionic/resources/ios/icon/icon-24@2x.png +0 -0
  209. package/examples/ionic/resources/ios/icon/icon-27.5@2x.png +0 -0
  210. package/examples/ionic/resources/ios/icon/icon-29.png +0 -0
  211. package/examples/ionic/resources/ios/icon/icon-29@2x.png +0 -0
  212. package/examples/ionic/resources/ios/icon/icon-29@3x.png +0 -0
  213. package/examples/ionic/resources/ios/icon/icon-40.png +0 -0
  214. package/examples/ionic/resources/ios/icon/icon-40@2x.png +0 -0
  215. package/examples/ionic/resources/ios/icon/icon-40@3x.png +0 -0
  216. package/examples/ionic/resources/ios/icon/icon-44@2x.png +0 -0
  217. package/examples/ionic/resources/ios/icon/icon-50.png +0 -0
  218. package/examples/ionic/resources/ios/icon/icon-50@2x.png +0 -0
  219. package/examples/ionic/resources/ios/icon/icon-60.png +0 -0
  220. package/examples/ionic/resources/ios/icon/icon-60@2x.png +0 -0
  221. package/examples/ionic/resources/ios/icon/icon-60@3x.png +0 -0
  222. package/examples/ionic/resources/ios/icon/icon-72.png +0 -0
  223. package/examples/ionic/resources/ios/icon/icon-72@2x.png +0 -0
  224. package/examples/ionic/resources/ios/icon/icon-76.png +0 -0
  225. package/examples/ionic/resources/ios/icon/icon-76@2x.png +0 -0
  226. package/examples/ionic/resources/ios/icon/icon-83.5@2x.png +0 -0
  227. package/examples/ionic/resources/ios/icon/icon-86@2x.png +0 -0
  228. package/examples/ionic/resources/ios/icon/icon-98@2x.png +0 -0
  229. package/examples/ionic/resources/ios/icon/icon-small.png +0 -0
  230. package/examples/ionic/resources/ios/icon/icon-small@2x.png +0 -0
  231. package/examples/ionic/resources/ios/icon/icon-small@3x.png +0 -0
  232. package/examples/ionic/resources/ios/icon/icon.png +0 -0
  233. package/examples/ionic/resources/ios/icon/icon@2x.png +0 -0
  234. package/examples/ionic/resources/ios/splash/Default-2436h.png +0 -0
  235. package/examples/ionic/resources/ios/splash/Default-568h@2x~iphone.png +0 -0
  236. package/examples/ionic/resources/ios/splash/Default-667h.png +0 -0
  237. package/examples/ionic/resources/ios/splash/Default-736h.png +0 -0
  238. package/examples/ionic/resources/ios/splash/Default-Landscape-2436h.png +0 -0
  239. package/examples/ionic/resources/ios/splash/Default-Landscape-736h.png +0 -0
  240. package/examples/ionic/resources/ios/splash/Default-Landscape@2x~ipad.png +0 -0
  241. package/examples/ionic/resources/ios/splash/Default-Landscape@~ipadpro.png +0 -0
  242. package/examples/ionic/resources/ios/splash/Default-Landscape~ipad.png +0 -0
  243. package/examples/ionic/resources/ios/splash/Default-Portrait@2x~ipad.png +0 -0
  244. package/examples/ionic/resources/ios/splash/Default-Portrait@~ipadpro.png +0 -0
  245. package/examples/ionic/resources/ios/splash/Default-Portrait~ipad.png +0 -0
  246. package/examples/ionic/resources/ios/splash/Default@2x~iphone.png +0 -0
  247. package/examples/ionic/resources/ios/splash/Default@2x~universal~anyany.png +0 -0
  248. package/examples/ionic/resources/ios/splash/Default~iphone.png +0 -0
  249. package/examples/ionic/resources/splash.png +0 -0
  250. package/examples/ionic/src/app/app-routing.module.ts +0 -15
  251. package/examples/ionic/src/app/app.component.html +0 -3
  252. package/examples/ionic/src/app/app.component.spec.ts +0 -47
  253. package/examples/ionic/src/app/app.component.ts +0 -27
  254. package/examples/ionic/src/app/app.module.ts +0 -23
  255. package/examples/ionic/src/app/home/home.module.ts +0 -29
  256. package/examples/ionic/src/app/home/home.page.html +0 -75
  257. package/examples/ionic/src/app/home/home.page.scss +0 -1
  258. package/examples/ionic/src/app/home/home.page.spec.ts +0 -24
  259. package/examples/ionic/src/app/home/home.page.ts +0 -166
  260. package/examples/ionic/src/assets/icon/favicon.png +0 -0
  261. package/examples/ionic/src/assets/img/portrait.png +0 -0
  262. package/examples/ionic/src/assets/shapes.svg +0 -1
  263. package/examples/ionic/src/environments/environment.prod.ts +0 -3
  264. package/examples/ionic/src/environments/environment.ts +0 -16
  265. package/examples/ionic/src/global.scss +0 -31
  266. package/examples/ionic/src/index.html +0 -25
  267. package/examples/ionic/src/polyfills.ts +0 -66
  268. package/examples/ionic/src/test.ts +0 -20
  269. package/examples/ionic/src/theme/variables.scss +0 -77
  270. package/examples/ionic/src/zone-flags.ts +0 -5
  271. package/examples/ionic/tsconfig.app.json +0 -14
  272. package/examples/ionic/tsconfig.spec.json +0 -19
  273. package/examples/ionic/tslint.json +0 -88
  274. package/examples/react-native/.watchmanconfig +0 -1
  275. package/examples/react-native/android/app/proguard-rules.pro +0 -10
  276. package/examples/react-native/android/app/src/debug/AndroidManifest.xml +0 -9
  277. package/examples/react-native/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  278. package/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  279. package/examples/react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  280. package/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  281. package/examples/react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  282. package/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  283. package/examples/react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  284. package/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  285. package/examples/react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  286. package/examples/react-native/android/app/src/main/res/values/strings.xml +0 -3
  287. package/examples/react-native/android/app/src/main/res/values/styles.xml +0 -9
  288. package/examples/react-native/app.json +0 -5
  289. package/examples/react-native/index.js +0 -5
  290. package/examples/react-native/ios/FaceSDKTests/FaceSDKTests.m +0 -66
  291. package/examples/react-native/ios/FaceSDKTests/Info.plist +0 -24
  292. /package/examples/capacitor/android/app/src/main/res/{mipmap-xxxhdpi → drawable}/ic_launcher.png +0 -0
  293. /package/examples/cordova/www/{img → images}/logo.png +0 -0
  294. /package/examples/ionic/src/{app/app.component.scss → assets/.gitkeep} +0 -0
  295. /package/examples/ionic/{resources → src/images}/icon.png +0 -0
  296. /package/examples/react-native/android/app/src/main/res/{mipmap-xxxhdpi → drawable}/ic_launcher.png +0 -0
  297. /package/examples/react-native/android/app/src/main/res/{mipmap-xxxhdpi → drawable}/ic_launcher_round.png +0 -0
  298. /package/examples/react-native/ios/{FaceSDK → App}/AppDelegate.h +0 -0
  299. /package/examples/react-native/ios/{FaceSDK → App}/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
  300. /package/examples/react-native/ios/{FaceSDK → App}/Images.xcassets/Contents.json +0 -0
  301. /package/examples/react-native/ios/{FaceSDK → App}/Info.plist +0 -0
  302. /package/examples/react-native/ios/{FaceSDK → App}/LaunchScreen.storyboard +0 -0
  303. /package/examples/react-native/ios/{FaceSDK → App}/PrivacyInfo.xcprivacy +0 -0
  304. /package/examples/react-native/ios/{FaceSDK → App}/main.m +0 -0
  305. /package/examples/react-native/ios/{FaceSDK.xcworkspace → App.xcworkspace}/xcshareddata/IDEWorkspaceChecks.plist +0 -0
Binary file
@@ -1,15 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
3
-
4
- const routes: Routes = [
5
- { path: '', redirectTo: 'home', pathMatch: 'full' },
6
- { path: 'home', loadChildren: () => import('./home/home.module').then( m => m.HomePageModule)},
7
- ];
8
-
9
- @NgModule({
10
- imports: [
11
- RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
12
- ],
13
- exports: [RouterModule]
14
- })
15
- export class AppRoutingModule { }
@@ -1,3 +0,0 @@
1
- <ion-app>
2
- <ion-router-outlet></ion-router-outlet>
3
- </ion-app>
@@ -1,47 +0,0 @@
1
- import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
- import { TestBed, async } from '@angular/core/testing';
3
-
4
- import { Platform } from '@ionic/angular';
5
- import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
6
- import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
7
-
8
- import { AppComponent } from './app.component';
9
-
10
- describe('AppComponent', () => {
11
-
12
- let statusBarSpy, splashScreenSpy, platformReadySpy, platformSpy;
13
-
14
- beforeEach(async(() => {
15
- statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']);
16
- splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']);
17
- platformReadySpy = Promise.resolve();
18
- platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy });
19
-
20
- TestBed.configureTestingModule({
21
- declarations: [AppComponent],
22
- schemas: [CUSTOM_ELEMENTS_SCHEMA],
23
- providers: [
24
- { provide: StatusBar, useValue: statusBarSpy },
25
- { provide: SplashScreen, useValue: splashScreenSpy },
26
- { provide: Platform, useValue: platformSpy },
27
- ],
28
- }).compileComponents();
29
- }));
30
-
31
- it('should create the app', () => {
32
- const fixture = TestBed.createComponent(AppComponent);
33
- const app = fixture.debugElement.componentInstance;
34
- expect(app).toBeTruthy();
35
- });
36
-
37
- it('should initialize the app', async () => {
38
- TestBed.createComponent(AppComponent);
39
- expect(platformSpy.ready).toHaveBeenCalled();
40
- await platformReadySpy;
41
- expect(statusBarSpy.styleDefault).toHaveBeenCalled();
42
- expect(splashScreenSpy.hide).toHaveBeenCalled();
43
- });
44
-
45
- // TODO: add more tests!
46
-
47
- });
@@ -1,27 +0,0 @@
1
- import { Component } from '@angular/core';
2
-
3
- import { Platform } from '@ionic/angular';
4
- import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
5
- import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
6
-
7
- @Component({
8
- selector: 'app-root',
9
- templateUrl: 'app.component.html',
10
- styleUrls: ['app.component.scss']
11
- })
12
- export class AppComponent {
13
- constructor(
14
- private platform: Platform,
15
- private splashScreen: SplashScreen,
16
- private statusBar: StatusBar
17
- ) {
18
- this.initializeApp();
19
- }
20
-
21
- initializeApp() {
22
- this.platform.ready().then(() => {
23
- this.statusBar.styleDefault();
24
- this.splashScreen.hide();
25
- });
26
- }
27
- }
@@ -1,23 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { BrowserModule } from '@angular/platform-browser';
3
- import { RouteReuseStrategy } from '@angular/router';
4
-
5
- import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
6
- import { SplashScreen } from '@awesome-cordova-plugins/splash-screen/ngx';
7
- import { StatusBar } from '@awesome-cordova-plugins/status-bar/ngx';
8
-
9
- import { AppComponent } from './app.component';
10
- import { AppRoutingModule } from './app-routing.module';
11
-
12
- @NgModule({
13
- declarations: [AppComponent],
14
- entryComponents: [],
15
- imports: [BrowserModule, IonicModule.forRoot(), AppRoutingModule],
16
- providers: [
17
- StatusBar,
18
- SplashScreen,
19
- { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
20
- ],
21
- bootstrap: [AppComponent]
22
- })
23
- export class AppModule {}
@@ -1,29 +0,0 @@
1
- import { NgModule } from '@angular/core'
2
- import { CommonModule } from '@angular/common'
3
- import { IonicModule } from '@ionic/angular'
4
- import { FormsModule } from '@angular/forms'
5
- import { RouterModule } from '@angular/router'
6
- import { Dialogs } from "@awesome-cordova-plugins/dialogs/ngx"
7
- import { Camera } from "@awesome-cordova-plugins/camera/ngx"
8
-
9
- import { HomePage } from './home.page'
10
-
11
- @NgModule({
12
- imports: [
13
- CommonModule,
14
- FormsModule,
15
- IonicModule,
16
- RouterModule.forChild([
17
- {
18
- path: '',
19
- component: HomePage
20
- }
21
- ])
22
- ],
23
- providers: [
24
- Dialogs,
25
- Camera
26
- ],
27
- declarations: [HomePage]
28
- })
29
- export class HomePageModule { }
@@ -1,75 +0,0 @@
1
- <ion-header>
2
- </ion-header>
3
-
4
- <ion-content>
5
- <div #mainUI style="
6
- text-align: center;
7
- background-color: #F5FCFF;
8
- height: 100%;">
9
- <br>
10
- <h1><span #status></span></h1>
11
- <br>
12
- <div>
13
- <img style="width: 150px" src="assets/img/portrait.png" #img1/><br>
14
- <img style="width: 150px" src="assets/img/portrait.png" #img2/>
15
- </div>
16
-
17
- <div>
18
- <br>
19
- <button #matchFacesButton style="margin: 3px; width:75%">Match</button>
20
- <br>
21
- <button #livenessButton style="margin: 3px; width:75%">Liveness</button>
22
- <br>
23
- <button #clearResultsButton style="margin: 3px; width:75%">Clear</button>
24
- </div>
25
- <br>
26
- <div>
27
- Similarity: <span style="margin-right: 15px" #similarityResult>nil</span> Liveness: <span #livenessResult>nil</span>
28
- </div>
29
- </div>
30
-
31
- <style type="text/css">
32
- button {
33
- width: 40%;
34
- -moz-box-shadow: inset 0px -3px 7px 0px #29bbff;
35
- -webkit-box-shadow: inset 0px -3px 7px 0px #29bbff;
36
- box-shadow: inset 0px -3px 7px 0px #29bbff;
37
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #2dabf9), color-stop(1, #0688fa));
38
- background: -moz-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
39
- background: -webkit-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
40
- background: -o-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
41
- background: -ms-linear-gradient(top, #2dabf9 5%, #0688fa 100%);
42
- background: linear-gradient(to bottom, #2dabf9 5%, #0688fa 100%);
43
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2dabf9', endColorstr='#0688fa', GradientType=0);
44
- background-color: #2dabf9;
45
- -moz-border-radius: 3px;
46
- -webkit-border-radius: 3px;
47
- border-radius: 3px;
48
- border: 1px solid #0b0e07;
49
- display: inline-block;
50
- cursor: pointer;
51
- color: #ffffff;
52
- font-family: Arial;
53
- font-size: 15px;
54
- padding: 9px 23px;
55
- text-decoration: none;
56
- text-shadow: 0px 1px 0px #263666;
57
- }
58
-
59
- button:hover {
60
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #0688fa), color-stop(1, #2dabf9));
61
- background: -moz-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
62
- background: -webkit-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
63
- background: -o-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
64
- background: -ms-linear-gradient(top, #0688fa 5%, #2dabf9 100%);
65
- background: linear-gradient(to bottom, #0688fa 5%, #2dabf9 100%);
66
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0688fa', endColorstr='#2dabf9', GradientType=0);
67
- background-color: #0688fa;
68
- }
69
-
70
- button:active {
71
- position: relative;
72
- top: 1px;
73
- }
74
- </style>
75
- </ion-content>
@@ -1,24 +0,0 @@
1
- import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
- import { IonicModule } from '@ionic/angular';
3
-
4
- import { HomePage } from './home.page';
5
-
6
- describe('HomePage', () => {
7
- let component: HomePage;
8
- let fixture: ComponentFixture<HomePage>;
9
-
10
- beforeEach(async(() => {
11
- TestBed.configureTestingModule({
12
- declarations: [ HomePage ],
13
- imports: [IonicModule.forRoot()]
14
- }).compileComponents();
15
-
16
- fixture = TestBed.createComponent(HomePage);
17
- component = fixture.componentInstance;
18
- fixture.detectChanges();
19
- }));
20
-
21
- it('should create', () => {
22
- expect(component).toBeTruthy();
23
- });
24
- });
@@ -1,166 +0,0 @@
1
- import { Component, ViewChild, ElementRef } from '@angular/core'
2
- import { Dialogs } from '@awesome-cordova-plugins/dialogs/ngx'
3
- import { File } from '@awesome-cordova-plugins/file'
4
- import { Camera, DestinationType, MediaType, PictureSourceType } from '@awesome-cordova-plugins/camera/ngx'
5
- import { Platform } from '@ionic/angular'
6
- import { FaceSDK, MatchFacesRequest, MatchFacesImage, InitConfig, LivenessSkipStep, ImageType, LivenessStatus, LivenessConfig } from '@regulaforensics/face-sdk'
7
-
8
- async function init() {
9
- if (!await initialize()) return
10
- setStatus("Ready")
11
- }
12
-
13
- async function startLiveness() {
14
- var response = await faceSdk.startLiveness({
15
- config: new LivenessConfig({
16
- skipStep: [LivenessSkipStep.ONBOARDING_STEP]
17
- }),
18
- notificationCompletion: (notification) => {
19
- console.log("LivenessStatus: " + notification.status)
20
- }
21
- })
22
- if (response.image == null) return
23
- setImage(response.image, ImageType.LIVE, 1)
24
- setLivenessStatus(response.liveness == LivenessStatus.PASSED ? "passed" : "unknown")
25
- }
26
-
27
- async function matchFaces() {
28
- if (image1 == null || image2 == null) {
29
- setStatus("Both images required!")
30
- return
31
- }
32
- setStatus("Processing...")
33
- var request = new MatchFacesRequest([image1, image2])
34
- var response = await faceSdk.matchFaces(request)
35
- var split = await faceSdk.splitComparedFaces(response.results, 0.75)
36
- var match = split.matchedFaces
37
- setSimilarityStatus("failed")
38
- if (match.length > 0)
39
- setSimilarityStatus((match[0].similarity * 100).toFixed(2) + "%")
40
- setStatus("Ready")
41
- }
42
-
43
- function clearResults() {
44
- setStatus("Ready")
45
- setSimilarityStatus("null")
46
- setLivenessStatus("null")
47
- resetImages()
48
- image1 = null
49
- image2 = null
50
- }
51
-
52
- // If 'regula.license' exists, init using license(enables offline match)
53
- // otherwise init without license.
54
- async function initialize() {
55
- setStatus("Initializing...")
56
- var license = await loadAssetIfExists("regula.license")
57
- var config: InitConfig | undefined
58
- if (license != null) config = new InitConfig(license)
59
- var [success, error] = await faceSdk.initialize({ config: config })
60
- if (!success && error != null) {
61
- setStatus(error.message)
62
- console.log(error.code + ": " + error.message)
63
- }
64
- return success
65
- }
66
-
67
- function setImage(base64: string, type: number, position: number) {
68
- setSimilarityStatus("null")
69
- var mfImage = new MatchFacesImage(base64, type)
70
- if (position == 1) {
71
- image1 = mfImage
72
- setUiImage1("data:image/png;base64," + base64)
73
- setLivenessStatus("null")
74
- }
75
- if (position == 2) {
76
- image2 = mfImage
77
- setUiImage2("data:image/png;base64," + base64)
78
- }
79
- }
80
-
81
- async function useCamera(position: number) {
82
- var response = await faceSdk.startFaceCapture()
83
- if (response.image == null) return
84
- var image = response.image
85
- setImage(image.image, image.imageType, position)
86
- }
87
-
88
- function useGallery(position: number) {
89
- app.camera.getPicture({
90
- destinationType: DestinationType.DATA_URL,
91
- mediaType: MediaType.PICTURE,
92
- sourceType: PictureSourceType.PHOTOLIBRARY
93
- }).then((result: string) => setImage(result, ImageType.PRINTED, position))
94
- }
95
-
96
- function pickImage(position: number) {
97
- app.dialogs.confirm("", "Select option", ["Use gallery", "Use camera"]).then(button => {
98
- if (button == 1) useGallery(position)
99
- else useCamera(position)
100
- })
101
- }
102
-
103
- async function loadAssetIfExists(path: string): Promise<string | null> {
104
- try {
105
- var dir = await File.resolveDirectoryUrl(File.applicationDirectory + "www/assets")
106
- var fileEntry = await File.getFile(dir, path, null)
107
- var result = await new Promise<string | null>((resolve, _) => {
108
- fileEntry.file(file => {
109
- var reader = new FileReader()
110
- reader.onloadend = (_) => resolve(reader.result as string)
111
- reader.readAsDataURL(file)
112
- }, _ => resolve(null))
113
- })
114
- return result
115
- } catch (_) {
116
- return null
117
- }
118
- }
119
-
120
- var app: HomePage
121
- var faceSdk = FaceSDK.instance
122
-
123
- var image1: MatchFacesImage | null
124
- var image2: MatchFacesImage | null
125
-
126
- var setStatus = (data: string) => app.status.nativeElement.innerHTML = data
127
- var setSimilarityStatus = (data: string) => app.similarityResult.nativeElement.innerHTML = data
128
- var setLivenessStatus = (data: string) => app.livenessResult.nativeElement.innerHTML = data
129
- var setUiImage1 = (data: string) => app.img1.nativeElement.src = data
130
- var setUiImage2 = (data: string) => app.img2.nativeElement.src = data
131
- var resetImages = () => {
132
- setUiImage1("assets/img/portrait.png")
133
- setUiImage2("assets/img/portrait.png")
134
- }
135
-
136
- @Component({
137
- selector: 'app-home',
138
- templateUrl: 'home.page.html',
139
- styleUrls: ['home.page.scss'],
140
- })
141
- export class HomePage {
142
- @ViewChild('status', { static: true }) status: ElementRef
143
- @ViewChild('similarityResult', { static: true }) similarityResult: ElementRef
144
- @ViewChild('livenessResult', { static: true }) livenessResult: ElementRef
145
- @ViewChild('img1', { static: true }) img1: ElementRef
146
- @ViewChild('img2', { static: true }) img2: ElementRef
147
- @ViewChild('matchFacesButton', { static: true }) matchFacesButton: ElementRef
148
- @ViewChild('livenessButton', { static: true }) livenessButton: ElementRef
149
- @ViewChild('clearResultsButton', { static: true }) clearResultsButton: ElementRef
150
-
151
- constructor(private platform: Platform, public dialogs: Dialogs, public camera: Camera) {
152
- }
153
-
154
- async ionViewDidEnter() {
155
- app = this
156
-
157
- app.img1.nativeElement.onclick = () => pickImage(1)
158
- app.img2.nativeElement.onclick = () => pickImage(2)
159
- app.matchFacesButton.nativeElement.addEventListener("click", matchFaces)
160
- app.livenessButton.nativeElement.addEventListener("click", startLiveness)
161
- app.clearResultsButton.nativeElement.addEventListener("click", clearResults)
162
-
163
- await app.platform.ready()
164
- init()
165
- }
166
- }
@@ -1 +0,0 @@
1
- <svg width="350" height="140" xmlns="http://www.w3.org/2000/svg" style="background:#f6f7f9"><g fill="none" fill-rule="evenodd"><path fill="#F04141" style="mix-blend-mode:multiply" d="M61.905-34.23l96.194 54.51-66.982 54.512L22 34.887z"/><circle fill="#10DC60" style="mix-blend-mode:multiply" cx="155.5" cy="135.5" r="57.5"/><path fill="#3880FF" style="mix-blend-mode:multiply" d="M208.538 9.513l84.417 15.392L223.93 93.93z"/><path fill="#FFCE00" style="mix-blend-mode:multiply" d="M268.625 106.557l46.332-26.75 46.332 26.75v53.5l-46.332 26.75-46.332-26.75z"/><circle fill="#7044FF" style="mix-blend-mode:multiply" cx="299.5" cy="9.5" r="38.5"/><rect fill="#11D3EA" style="mix-blend-mode:multiply" transform="rotate(-60 148.47 37.886)" x="143.372" y="-7.056" width="10.196" height="89.884" rx="5.098"/><path d="M-25.389 74.253l84.86 8.107c5.498.525 9.53 5.407 9.004 10.905a10 10 0 0 1-.057.477l-12.36 85.671a10.002 10.002 0 0 1-11.634 8.42l-86.351-15.226c-5.44-.959-9.07-6.145-8.112-11.584l13.851-78.551a10 10 0 0 1 10.799-8.219z" fill="#7044FF" style="mix-blend-mode:multiply"/><circle fill="#0CD1E8" style="mix-blend-mode:multiply" cx="273.5" cy="106.5" r="20.5"/></g></svg>
@@ -1,3 +0,0 @@
1
- export const environment = {
2
- production: true
3
- };
@@ -1,16 +0,0 @@
1
- // This file can be replaced during build by using the `fileReplacements` array.
2
- // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
3
- // The list of file replacements can be found in `angular.json`.
4
-
5
- export const environment = {
6
- production: false
7
- };
8
-
9
- /*
10
- * For easier debugging in development mode, you can import the following file
11
- * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
12
- *
13
- * This import should be commented out in production mode because it will have a negative impact
14
- * on performance if an error is thrown.
15
- */
16
- // import 'zone.js/dist/zone-error'; // Included with Angular CLI.
@@ -1,31 +0,0 @@
1
- /*
2
- * App Global CSS
3
- * ----------------------------------------------------------------------------
4
- * Put style rules here that you want to apply globally. These styles are for
5
- * the entire app and not just one component. Additionally, this file can be
6
- * used as an entry point to import other CSS/Sass files to be included in the
7
- * output CSS.
8
- * For more information on global stylesheets, visit the documentation:
9
- * https://ionicframework.com/docs/layout/global-stylesheets
10
- */
11
-
12
- /* Core CSS required for Ionic components to work properly */
13
- @import "~@ionic/angular/css/core.css";
14
-
15
- /* Basic CSS for apps built with Ionic */
16
- @import "~@ionic/angular/css/normalize.css";
17
- @import "~@ionic/angular/css/structure.css";
18
- @import "~@ionic/angular/css/typography.css";
19
- @import '~@ionic/angular/css/display.css';
20
-
21
- /* Optional CSS utils that can be commented out */
22
- @import "~@ionic/angular/css/padding.css";
23
- @import "~@ionic/angular/css/float-elements.css";
24
- @import "~@ionic/angular/css/text-alignment.css";
25
- @import "~@ionic/angular/css/text-transformation.css";
26
- @import "~@ionic/angular/css/flex-utils.css";
27
-
28
- body {
29
- margin-top: constant(safe-area-inset-top);
30
- margin-top: env(safe-area-inset-top);
31
- }
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="utf-8" />
6
- <title>Ionic App</title>
7
-
8
- <base href="/" />
9
-
10
- <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
11
- <meta name="format-detection" content="telephone=no" />
12
- <meta name="msapplication-tap-highlight" content="no" />
13
-
14
- <link rel="icon" type="image/png" href="assets/icon/favicon.png" />
15
-
16
- <!-- add to homescreen for ios -->
17
- <meta name="apple-mobile-web-app-capable" content="yes" />
18
- <meta name="apple-mobile-web-app-status-bar-style" content="black" />
19
- </head>
20
-
21
- <body>
22
- <app-root></app-root>
23
- </body>
24
-
25
- </html>
@@ -1,66 +0,0 @@
1
- /**
2
- * This file includes polyfills needed by Angular and is loaded before the app.
3
- * You can add your own extra polyfills to this file.
4
- *
5
- * This file is divided into 2 sections:
6
- * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
7
- * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
8
- * file.
9
- *
10
- * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11
- * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12
- * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
13
- *
14
- * Learn more in https://angular.io/guide/browser-support
15
- */
16
-
17
- /***************************************************************************************************
18
- * BROWSER POLYFILLS
19
- */
20
-
21
- /** IE10 and IE11 requires the following for NgClass support on SVG elements */
22
- // import 'classlist.js'; // Run `npm install --save classlist.js`.
23
-
24
- /**
25
- * Web Animations `@angular/platform-browser/animations`
26
- * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
27
- * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
28
- */
29
- // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
30
-
31
- /**
32
- * By default, zone.js will patch all possible macroTask and DomEvents
33
- * user can disable parts of macroTask/DomEvents patch by setting following flags
34
- * because those flags need to be set before `zone.js` being loaded, and webpack
35
- * will put import in the top of bundle, so user need to create a separate file
36
- * in this directory (for example: zone-flags.ts), and put the following flags
37
- * into that file, and then add the following code before importing zone.js.
38
- * import './zone-flags.ts';
39
- *
40
- * The flags allowed in zone-flags.ts are listed here.
41
- *
42
- * The following flags will work for all browsers.
43
- *
44
- * (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
45
- * (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
46
- * (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
47
- *
48
- * in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
49
- * with the following flag, it will bypass `zone.js` patch for IE/Edge
50
- *
51
- * (window as any).__Zone_enable_cross_context_check = true;
52
- *
53
- */
54
-
55
- import './zone-flags.ts';
56
-
57
- /***************************************************************************************************
58
- * Zone JS is required by default for Angular itself.
59
- */
60
-
61
- import 'zone.js/dist/zone'; // Included with Angular CLI.
62
-
63
-
64
- /***************************************************************************************************
65
- * APPLICATION IMPORTS
66
- */
@@ -1,20 +0,0 @@
1
- // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2
-
3
- import 'zone.js/dist/zone-testing';
4
- import { getTestBed } from '@angular/core/testing';
5
- import {
6
- BrowserDynamicTestingModule,
7
- platformBrowserDynamicTesting
8
- } from '@angular/platform-browser-dynamic/testing';
9
-
10
- declare const require: any;
11
-
12
- // First, initialize the Angular testing environment.
13
- getTestBed().initTestEnvironment(
14
- BrowserDynamicTestingModule,
15
- platformBrowserDynamicTesting()
16
- );
17
- // Then we find all the tests.
18
- const context = require.context('./', true, /\.spec\.ts$/);
19
- // And load the modules.
20
- context.keys().map(context);