@sumsub/cordova-idensic-mobile-sdk-plugin 1.18.4 → 1.19.2

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 (835) hide show
  1. package/package.json +1 -1
  2. package/plugin.xml +5 -2
  3. package/scripts/ios/before_plugin_install.js +32 -0
  4. package/scripts/ios/before_plugin_uninstall.js +20 -0
  5. package/src/android/build-extras.gradle +2 -2
  6. package/src/android/build.gradle +4 -4
  7. package/www/SNSMobileSDK.js +265 -0
  8. package/demo/Gemfile +0 -4
  9. package/demo/Gemfile.lock +0 -279
  10. package/demo/README.md +0 -61
  11. package/demo/config.xml +0 -47
  12. package/demo/fastlane/Appfile +0 -8
  13. package/demo/fastlane/Fastfile +0 -142
  14. package/demo/fastlane/README.md +0 -34
  15. package/demo/fastlane/helpers +0 -109
  16. package/demo/hooks/README.md +0 -23
  17. package/demo/package-lock.json +0 -3642
  18. package/demo/package.json +0 -57
  19. package/demo/platforms/android/CordovaLib/AndroidManifest.xml +0 -22
  20. package/demo/platforms/android/CordovaLib/build.gradle +0 -148
  21. package/demo/platforms/android/CordovaLib/cordova.gradle +0 -205
  22. package/demo/platforms/android/CordovaLib/project.properties +0 -11
  23. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/AuthenticationToken.java +0 -69
  24. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/BuildHelper.java +0 -70
  25. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CallbackContext.java +0 -142
  26. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CallbackMap.java +0 -65
  27. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/Config.java +0 -71
  28. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/ConfigXmlParser.java +0 -145
  29. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaActivity.java +0 -521
  30. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaArgs.java +0 -113
  31. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaBridge.java +0 -187
  32. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaClientCertRequest.java +0 -105
  33. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaDialogsHelper.java +0 -152
  34. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaHttpAuthHandler.java +0 -51
  35. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaInterface.java +0 -97
  36. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaInterfaceImpl.java +0 -249
  37. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaPlugin.java +0 -422
  38. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaPreferences.java +0 -101
  39. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaResourceApi.java +0 -472
  40. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebView.java +0 -142
  41. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewEngine.java +0 -85
  42. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CordovaWebViewImpl.java +0 -617
  43. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/CoreAndroid.java +0 -407
  44. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/ExposedJsApi.java +0 -31
  45. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/ICordovaClientCertRequest.java +0 -66
  46. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/ICordovaCookieManager.java +0 -33
  47. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/ICordovaHttpAuthHandler.java +0 -38
  48. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/LOG.java +0 -244
  49. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/NativeToJsMessageQueue.java +0 -542
  50. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/PermissionHelper.java +0 -87
  51. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/PluginEntry.java +0 -70
  52. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/PluginManager.java +0 -526
  53. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/PluginResult.java +0 -198
  54. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/ResumeCallback.java +0 -76
  55. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/Whitelist.java +0 -170
  56. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemCookieManager.java +0 -74
  57. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemExposedJsApi.java +0 -53
  58. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebChromeClient.java +0 -301
  59. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebView.java +0 -88
  60. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewClient.java +0 -370
  61. package/demo/platforms/android/CordovaLib/src/org/apache/cordova/engine/SystemWebViewEngine.java +0 -319
  62. package/demo/platforms/android/android.json +0 -440
  63. package/demo/platforms/android/app/build.gradle +0 -363
  64. package/demo/platforms/android/app/libs/barcodescanner-release-2.1.5.aar +0 -0
  65. package/demo/platforms/android/app/src/main/AndroidManifest.xml +0 -23
  66. package/demo/platforms/android/app/src/main/java/com/applurk/nativetimer/Consumer.java +0 -22
  67. package/demo/platforms/android/app/src/main/java/com/applurk/nativetimer/NativeTimerAdapter.java +0 -27
  68. package/demo/platforms/android/app/src/main/java/com/applurk/nativetimer/NativeTimerAdapterImpl.java +0 -123
  69. package/demo/platforms/android/app/src/main/java/com/applurk/nativetimer/NativeTimerPlugin.java +0 -163
  70. package/demo/platforms/android/app/src/main/java/com/phonegap/plugins/barcodescanner/BarcodeScanner.java +0 -328
  71. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaClientAuth.java +0 -113
  72. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaHttpBase.java +0 -225
  73. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaHttpDownload.java +0 -41
  74. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaHttpOperation.java +0 -24
  75. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaHttpPlugin.java +0 -240
  76. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaHttpResponse.java +0 -100
  77. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaHttpUpload.java +0 -91
  78. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaObservableCallbackContext.java +0 -58
  79. package/demo/platforms/android/app/src/main/java/com/silkimen/cordovahttp/CordovaServerTrust.java +0 -124
  80. package/demo/platforms/android/app/src/main/java/com/silkimen/http/HttpBodyDecoder.java +0 -55
  81. package/demo/platforms/android/app/src/main/java/com/silkimen/http/HttpRequest.java +0 -3095
  82. package/demo/platforms/android/app/src/main/java/com/silkimen/http/JsonUtils.java +0 -58
  83. package/demo/platforms/android/app/src/main/java/com/silkimen/http/KeyChainKeyManager.java +0 -57
  84. package/demo/platforms/android/app/src/main/java/com/silkimen/http/TLSConfiguration.java +0 -63
  85. package/demo/platforms/android/app/src/main/java/com/silkimen/http/TLSSocketFactory.java +0 -63
  86. package/demo/platforms/android/app/src/main/java/com/sumsub/SumSubCordova/MainActivity.java +0 -41
  87. package/demo/platforms/android/app/src/main/java/main/java/com/sumsub/msdk/plugins/cordova/SNSMobileSdkCordovaPlugin.java +0 -349
  88. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/AssetFilesystem.java +0 -294
  89. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/ContentFilesystem.java +0 -223
  90. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/DirectoryManager.java +0 -134
  91. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/EncodingException.java +0 -29
  92. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/FileExistsException.java +0 -29
  93. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/FileUtils.java +0 -1225
  94. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/Filesystem.java +0 -331
  95. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/InvalidModificationException.java +0 -30
  96. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/LocalFilesystem.java +0 -513
  97. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/LocalFilesystemURL.java +0 -64
  98. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/NoModificationAllowedException.java +0 -29
  99. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/PendingRequests.java +0 -94
  100. package/demo/platforms/android/app/src/main/java/org/apache/cordova/file/TypeMismatchException.java +0 -30
  101. package/demo/platforms/android/app/src/main/java/org/apache/cordova/whitelist/WhitelistPlugin.java +0 -161
  102. package/demo/platforms/android/app/src/main/res/drawable-land-hdpi/screen.png +0 -0
  103. package/demo/platforms/android/app/src/main/res/drawable-land-ldpi/screen.png +0 -0
  104. package/demo/platforms/android/app/src/main/res/drawable-land-mdpi/screen.png +0 -0
  105. package/demo/platforms/android/app/src/main/res/drawable-land-xhdpi/screen.png +0 -0
  106. package/demo/platforms/android/app/src/main/res/drawable-land-xxhdpi/screen.png +0 -0
  107. package/demo/platforms/android/app/src/main/res/drawable-land-xxxhdpi/screen.png +0 -0
  108. package/demo/platforms/android/app/src/main/res/drawable-port-hdpi/screen.png +0 -0
  109. package/demo/platforms/android/app/src/main/res/drawable-port-ldpi/screen.png +0 -0
  110. package/demo/platforms/android/app/src/main/res/drawable-port-mdpi/screen.png +0 -0
  111. package/demo/platforms/android/app/src/main/res/drawable-port-xhdpi/screen.png +0 -0
  112. package/demo/platforms/android/app/src/main/res/drawable-port-xxhdpi/screen.png +0 -0
  113. package/demo/platforms/android/app/src/main/res/drawable-port-xxxhdpi/screen.png +0 -0
  114. package/demo/platforms/android/app/src/main/res/mipmap-ldpi/ic_launcher.png +0 -0
  115. package/demo/platforms/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  116. package/demo/platforms/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  117. package/demo/platforms/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  118. package/demo/platforms/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  119. package/demo/platforms/android/app/src/main/res/values/strings.xml +0 -7
  120. package/demo/platforms/android/app/src/main/res/xml/config.xml +0 -45
  121. package/demo/platforms/android/build.gradle +0 -54
  122. package/demo/platforms/android/cordova/Api.js +0 -368
  123. package/demo/platforms/android/cordova/android_sdk_version +0 -27
  124. package/demo/platforms/android/cordova/android_sdk_version.bat +0 -26
  125. package/demo/platforms/android/cordova/build +0 -51
  126. package/demo/platforms/android/cordova/build.bat +0 -26
  127. package/demo/platforms/android/cordova/check_reqs +0 -32
  128. package/demo/platforms/android/cordova/check_reqs.bat +0 -26
  129. package/demo/platforms/android/cordova/clean +0 -51
  130. package/demo/platforms/android/cordova/clean.bat +0 -26
  131. package/demo/platforms/android/cordova/defaults.xml +0 -26
  132. package/demo/platforms/android/cordova/lib/Adb.js +0 -101
  133. package/demo/platforms/android/cordova/lib/AndroidManifest.js +0 -126
  134. package/demo/platforms/android/cordova/lib/AndroidProject.js +0 -202
  135. package/demo/platforms/android/cordova/lib/PackageType.js +0 -25
  136. package/demo/platforms/android/cordova/lib/android_sdk.js +0 -101
  137. package/demo/platforms/android/cordova/lib/build.js +0 -321
  138. package/demo/platforms/android/cordova/lib/builders/ProjectBuilder.js +0 -412
  139. package/demo/platforms/android/cordova/lib/builders/builders.js +0 -34
  140. package/demo/platforms/android/cordova/lib/check_reqs.js +0 -436
  141. package/demo/platforms/android/cordova/lib/config/GradlePropertiesParser.js +0 -114
  142. package/demo/platforms/android/cordova/lib/device.js +0 -111
  143. package/demo/platforms/android/cordova/lib/emulator.js +0 -530
  144. package/demo/platforms/android/cordova/lib/getASPath.bat +0 -3
  145. package/demo/platforms/android/cordova/lib/install-device +0 -42
  146. package/demo/platforms/android/cordova/lib/install-device.bat +0 -26
  147. package/demo/platforms/android/cordova/lib/install-emulator +0 -38
  148. package/demo/platforms/android/cordova/lib/install-emulator.bat +0 -26
  149. package/demo/platforms/android/cordova/lib/list-devices +0 -34
  150. package/demo/platforms/android/cordova/lib/list-devices.bat +0 -26
  151. package/demo/platforms/android/cordova/lib/list-emulator-images +0 -34
  152. package/demo/platforms/android/cordova/lib/list-emulator-images.bat +0 -26
  153. package/demo/platforms/android/cordova/lib/list-started-emulators +0 -34
  154. package/demo/platforms/android/cordova/lib/list-started-emulators.bat +0 -26
  155. package/demo/platforms/android/cordova/lib/log.js +0 -56
  156. package/demo/platforms/android/cordova/lib/plugin-build.gradle +0 -69
  157. package/demo/platforms/android/cordova/lib/pluginHandlers.js +0 -334
  158. package/demo/platforms/android/cordova/lib/prepare.js +0 -702
  159. package/demo/platforms/android/cordova/lib/retry.js +0 -64
  160. package/demo/platforms/android/cordova/lib/run.js +0 -140
  161. package/demo/platforms/android/cordova/lib/start-emulator +0 -38
  162. package/demo/platforms/android/cordova/lib/start-emulator.bat +0 -26
  163. package/demo/platforms/android/cordova/log +0 -36
  164. package/demo/platforms/android/cordova/log.bat +0 -26
  165. package/demo/platforms/android/cordova/loggingHelper.js +0 -18
  166. package/demo/platforms/android/cordova/run +0 -54
  167. package/demo/platforms/android/cordova/run.bat +0 -26
  168. package/demo/platforms/android/cordova/version +0 -29
  169. package/demo/platforms/android/cordova/version.bat +0 -26
  170. package/demo/platforms/android/cordova-idensic-mobile-sdk-plugin/SumSubCordova-build-extras.gradle +0 -22
  171. package/demo/platforms/android/cordova-plugin-enable-multidex/SumSubCordova-build.gradle +0 -9
  172. package/demo/platforms/android/cordova-plugin-qr-barcode-scanner/SumSubCordova-barcodescanner.gradle +0 -17
  173. package/demo/platforms/android/gradle.properties +0 -7
  174. package/demo/platforms/android/platform_www/cordova-js-src/android/nativeapiprovider.js +0 -36
  175. package/demo/platforms/android/platform_www/cordova-js-src/android/promptbasednativeapi.js +0 -35
  176. package/demo/platforms/android/platform_www/cordova-js-src/exec.js +0 -286
  177. package/demo/platforms/android/platform_www/cordova-js-src/platform.js +0 -125
  178. package/demo/platforms/android/platform_www/cordova-js-src/plugin/android/app.js +0 -108
  179. package/demo/platforms/android/platform_www/cordova.js +0 -1935
  180. package/demo/platforms/android/platform_www/cordova_plugins.js +0 -287
  181. package/demo/platforms/android/platform_www/plugins/cordova-idensic-mobile-sdk-plugin/dist/SNSMobileSDK.js +0 -3
  182. package/demo/platforms/android/project.properties +0 -17
  183. package/demo/platforms/android/settings.gradle +0 -4
  184. package/demo/platforms/android/wrapper.gradle +0 -1
  185. package/demo/platforms/ios/CordovaLib/Classes/Private/CDVDebug.h +0 -25
  186. package/demo/platforms/ios/CordovaLib/Classes/Private/CDVJSON_private.h +0 -31
  187. package/demo/platforms/ios/CordovaLib/Classes/Private/CDVJSON_private.m +0 -99
  188. package/demo/platforms/ios/CordovaLib/Classes/Private/CDVPlugin+Private.h +0 -24
  189. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVGestureHandler/CDVGestureHandler.h +0 -26
  190. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVGestureHandler/CDVGestureHandler.m +0 -70
  191. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVHandleOpenURL/CDVHandleOpenURL.h +0 -27
  192. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVHandleOpenURL/CDVHandleOpenURL.m +0 -86
  193. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.h +0 -40
  194. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m +0 -150
  195. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVLocalStorage/CDVLocalStorage.h +0 -50
  196. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVLocalStorage/CDVLocalStorage.m +0 -493
  197. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVLogger/CDVLogger.h +0 -26
  198. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVLogger/CDVLogger.m +0 -37
  199. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.h +0 -45
  200. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.m +0 -408
  201. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewEngine.h +0 -29
  202. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewEngine.m +0 -206
  203. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.h +0 -33
  204. package/demo/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m +0 -157
  205. package/demo/platforms/ios/CordovaLib/Classes/Public/CDV.h +0 -32
  206. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVAppDelegate.h +0 -28
  207. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVAppDelegate.m +0 -118
  208. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVAvailability.h +0 -115
  209. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVAvailabilityDeprecated.h +0 -26
  210. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVCommandDelegate.h +0 -51
  211. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVCommandDelegateImpl.h +0 -36
  212. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVCommandDelegateImpl.m +0 -186
  213. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVCommandQueue.h +0 -39
  214. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVCommandQueue.m +0 -194
  215. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVConfigParser.h +0 -30
  216. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVConfigParser.m +0 -81
  217. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVInvokedUrlCommand.h +0 -52
  218. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVInvokedUrlCommand.m +0 -116
  219. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVPlugin+Resources.h +0 -39
  220. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVPlugin+Resources.m +0 -38
  221. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVPlugin.h +0 -74
  222. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVPlugin.m +0 -199
  223. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVPluginResult.h +0 -83
  224. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVPluginResult.m +0 -203
  225. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVScreenOrientationDelegate.h +0 -33
  226. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVTimer.h +0 -27
  227. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVTimer.m +0 -123
  228. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.h +0 -27
  229. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVURLProtocol.m +0 -113
  230. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVUserAgentUtil.h +0 -27
  231. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVUserAgentUtil.m +0 -162
  232. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVViewController.h +0 -92
  233. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVViewController.m +0 -810
  234. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVWebViewEngineProtocol.h +0 -42
  235. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVWhitelist.h +0 -34
  236. package/demo/platforms/ios/CordovaLib/Classes/Public/CDVWhitelist.m +0 -285
  237. package/demo/platforms/ios/CordovaLib/Classes/Public/NSDictionary+CordovaPreferences.h +0 -35
  238. package/demo/platforms/ios/CordovaLib/Classes/Public/NSDictionary+CordovaPreferences.m +0 -63
  239. package/demo/platforms/ios/CordovaLib/Classes/Public/NSMutableArray+QueueAdditions.h +0 -29
  240. package/demo/platforms/ios/CordovaLib/Classes/Public/NSMutableArray+QueueAdditions.m +0 -58
  241. package/demo/platforms/ios/CordovaLib/CordovaLib.xcodeproj/project.pbxproj +0 -797
  242. package/demo/platforms/ios/CordovaLib/CordovaLib_Prefix.pch +0 -22
  243. package/demo/platforms/ios/CordovaLib/VERSION +0 -1
  244. package/demo/platforms/ios/CordovaLib/cordova.js +0 -2188
  245. package/demo/platforms/ios/Podfile +0 -9
  246. package/demo/platforms/ios/Podfile.lock +0 -20
  247. package/demo/platforms/ios/SumSubCordova/Bridging-Header.h +0 -28
  248. package/demo/platforms/ios/SumSubCordova/CDVLaunchScreen.storyboard +0 -60
  249. package/demo/platforms/ios/SumSubCordova/Classes/AppDelegate.h +0 -33
  250. package/demo/platforms/ios/SumSubCordova/Classes/AppDelegate.m +0 -39
  251. package/demo/platforms/ios/SumSubCordova/Classes/MainViewController.h +0 -40
  252. package/demo/platforms/ios/SumSubCordova/Classes/MainViewController.m +0 -148
  253. package/demo/platforms/ios/SumSubCordova/Classes/MainViewController.xib +0 -138
  254. package/demo/platforms/ios/SumSubCordova/Entitlements-Debug.plist +0 -24
  255. package/demo/platforms/ios/SumSubCordova/Entitlements-Release.plist +0 -24
  256. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/Contents.json +0 -116
  257. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-1024.png +0 -0
  258. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20.png +0 -0
  259. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20@2x.png +0 -0
  260. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-20@3x.png +0 -0
  261. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29.png +0 -0
  262. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29@2x.png +0 -0
  263. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-29@3x.png +0 -0
  264. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40.png +0 -0
  265. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40@2x.png +0 -0
  266. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-40@3x.png +0 -0
  267. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-60@2x.png +0 -0
  268. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-60@3x.png +0 -0
  269. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-76.png +0 -0
  270. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-76@2x.png +0 -0
  271. package/demo/platforms/ios/SumSubCordova/Images.xcassets/AppIcon.appiconset/cordova_icon-83.5@2x.png +0 -0
  272. package/demo/platforms/ios/SumSubCordova/Images.xcassets/Contents.json +0 -6
  273. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Contents.json +0 -176
  274. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-2436h.png +0 -0
  275. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-568h@2x~iphone.png +0 -0
  276. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-667h.png +0 -0
  277. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-736h.png +0 -0
  278. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-Landscape-2436h.png +0 -0
  279. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-Landscape-736h.png +0 -0
  280. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-Landscape@2x~ipad.png +0 -0
  281. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-Landscape~ipad.png +0 -0
  282. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-Portrait@2x~ipad.png +0 -0
  283. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default-Portrait~ipad.png +0 -0
  284. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default@2x~iphone.png +0 -0
  285. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchImage.launchimage/Default~iphone.png +0 -0
  286. package/demo/platforms/ios/SumSubCordova/Images.xcassets/LaunchStoryboard.imageset/Contents.json +0 -168
  287. package/demo/platforms/ios/SumSubCordova/Plugins/README +0 -20
  288. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-idensic-mobile-sdk-plugin/SNSMobileSdkCordovaPlugin.h +0 -12
  289. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-idensic-mobile-sdk-plugin/SNSMobileSdkCordovaPlugin.m +0 -273
  290. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFHTTPSessionManager.h +0 -353
  291. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFHTTPSessionManager.m +0 -464
  292. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFNetworkReachabilityManager.h +0 -206
  293. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFNetworkReachabilityManager.m +0 -263
  294. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFNetworking.h +0 -41
  295. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFSecurityPolicy.h +0 -154
  296. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFSecurityPolicy.m +0 -353
  297. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFURLRequestSerialization.h +0 -479
  298. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFURLRequestSerialization.m +0 -1355
  299. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFURLResponseSerialization.h +0 -318
  300. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFURLResponseSerialization.m +0 -806
  301. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFURLSessionManager.h +0 -500
  302. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/AFURLSessionManager.m +0 -1239
  303. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/BinaryRequestSerializer.h +0 -8
  304. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/BinaryRequestSerializer.m +0 -53
  305. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/BinaryResponseSerializer.h +0 -8
  306. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/BinaryResponseSerializer.m +0 -126
  307. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/CordovaHttpPlugin.h +0 -20
  308. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/CordovaHttpPlugin.m +0 -639
  309. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/SDNetworkActivityIndicator.h +0 -18
  310. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/SDNetworkActivityIndicator.m +0 -70
  311. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/TextRequestSerializer.h +0 -8
  312. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/TextRequestSerializer.m +0 -53
  313. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/TextResponseSerializer.h +0 -8
  314. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-advanced-http/TextResponseSerializer.m +0 -145
  315. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-file/CDVAssetLibraryFilesystem.h +0 -30
  316. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-file/CDVAssetLibraryFilesystem.m +0 -253
  317. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-file/CDVFile.h +0 -157
  318. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-file/CDVFile.m +0 -1119
  319. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-file/CDVLocalFilesystem.h +0 -32
  320. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-file/CDVLocalFilesystem.m +0 -750
  321. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-qr-barcode-scanner/CDVBarcodeScanner.mm +0 -1067
  322. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-timer/NativeTimerAdapter.h +0 -35
  323. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-timer/NativeTimerAdapter.m +0 -76
  324. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-timer/NativeTimerPlugin.h +0 -28
  325. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-timer/NativeTimerPlugin.m +0 -158
  326. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-wkwebview-engine/CDVWKProcessPoolFactory.h +0 -27
  327. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-wkwebview-engine/CDVWKProcessPoolFactory.m +0 -49
  328. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.h +0 -29
  329. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewEngine.m +0 -494
  330. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewUIDelegate.h +0 -28
  331. package/demo/platforms/ios/SumSubCordova/Plugins/cordova-plugin-wkwebview-engine/CDVWKWebViewUIDelegate.m +0 -123
  332. package/demo/platforms/ios/SumSubCordova/Resources/CDVBarcodeScanner.bundle/beep.caf +0 -0
  333. package/demo/platforms/ios/SumSubCordova/Resources/CDVBarcodeScanner.bundle/torch.png +0 -0
  334. package/demo/platforms/ios/SumSubCordova/Resources/CDVBarcodeScanner.bundle/torch@2x.png +0 -0
  335. package/demo/platforms/ios/SumSubCordova/Resources/CDVBarcodeScanner.bundle/torch@3x.png +0 -0
  336. package/demo/platforms/ios/SumSubCordova/Resources/scannerOverlay.xib +0 -185
  337. package/demo/platforms/ios/SumSubCordova/Scripts/copy-www-build-step.sh +0 -63
  338. package/demo/platforms/ios/SumSubCordova/SumSubCordova-Info.plist +0 -60
  339. package/demo/platforms/ios/SumSubCordova/SumSubCordova-Prefix.pch +0 -26
  340. package/demo/platforms/ios/SumSubCordova/config.xml +0 -74
  341. package/demo/platforms/ios/SumSubCordova/main.m +0 -35
  342. package/demo/platforms/ios/SumSubCordova.xcodeproj/project.pbxproj +0 -698
  343. package/demo/platforms/ios/SumSubCordova.xcworkspace/contents.xcworkspacedata +0 -10
  344. package/demo/platforms/ios/SumSubCordova.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  345. package/demo/platforms/ios/SumSubCordova.xcworkspace/xcshareddata/xcschemes/SumSubCordova.xcscheme +0 -91
  346. package/demo/platforms/ios/cordova/Api.js +0 -715
  347. package/demo/platforms/ios/cordova/apple_ios_version +0 -27
  348. package/demo/platforms/ios/cordova/apple_osx_version +0 -27
  349. package/demo/platforms/ios/cordova/apple_xcode_version +0 -29
  350. package/demo/platforms/ios/cordova/build +0 -63
  351. package/demo/platforms/ios/cordova/build-debug.xcconfig +0 -32
  352. package/demo/platforms/ios/cordova/build-extras.xcconfig +0 -0
  353. package/demo/platforms/ios/cordova/build-release.xcconfig +0 -33
  354. package/demo/platforms/ios/cordova/build.bat +0 -19
  355. package/demo/platforms/ios/cordova/build.xcconfig +0 -45
  356. package/demo/platforms/ios/cordova/check_reqs +0 -32
  357. package/demo/platforms/ios/cordova/check_reqs.bat +0 -25
  358. package/demo/platforms/ios/cordova/clean +0 -49
  359. package/demo/platforms/ios/cordova/clean.bat +0 -19
  360. package/demo/platforms/ios/cordova/defaults.xml +0 -59
  361. package/demo/platforms/ios/cordova/lib/BridgingHeader.js +0 -125
  362. package/demo/platforms/ios/cordova/lib/Podfile.js +0 -424
  363. package/demo/platforms/ios/cordova/lib/PodsJson.js +0 -209
  364. package/demo/platforms/ios/cordova/lib/build.js +0 -464
  365. package/demo/platforms/ios/cordova/lib/check_reqs.js +0 -235
  366. package/demo/platforms/ios/cordova/lib/clean.js +0 -42
  367. package/demo/platforms/ios/cordova/lib/list-devices +0 -66
  368. package/demo/platforms/ios/cordova/lib/list-emulator-build-targets +0 -108
  369. package/demo/platforms/ios/cordova/lib/list-emulator-images +0 -43
  370. package/demo/platforms/ios/cordova/lib/list-started-emulators +0 -49
  371. package/demo/platforms/ios/cordova/lib/plugman/pluginHandlers.js +0 -391
  372. package/demo/platforms/ios/cordova/lib/prepare.js +0 -1190
  373. package/demo/platforms/ios/cordova/lib/projectFile.js +0 -134
  374. package/demo/platforms/ios/cordova/lib/run.js +0 -263
  375. package/demo/platforms/ios/cordova/lib/spawn.js +0 -51
  376. package/demo/platforms/ios/cordova/lib/start-emulator +0 -30
  377. package/demo/platforms/ios/cordova/lib/versions.js +0 -179
  378. package/demo/platforms/ios/cordova/log +0 -23
  379. package/demo/platforms/ios/cordova/log.bat +0 -19
  380. package/demo/platforms/ios/cordova/loggingHelper.js +0 -30
  381. package/demo/platforms/ios/cordova/run +0 -63
  382. package/demo/platforms/ios/cordova/run.bat +0 -19
  383. package/demo/platforms/ios/cordova/version +0 -35
  384. package/demo/platforms/ios/cordova/version.bat +0 -26
  385. package/demo/platforms/ios/frameworks.json +0 -7
  386. package/demo/platforms/ios/ios.json +0 -402
  387. package/demo/platforms/ios/platform_www/cordova-js-src/.eslintrc.yml +0 -4
  388. package/demo/platforms/ios/platform_www/cordova-js-src/exec.js +0 -262
  389. package/demo/platforms/ios/platform_www/cordova-js-src/platform.js +0 -31
  390. package/demo/platforms/ios/platform_www/cordova-js-src/plugin/ios/console.js +0 -186
  391. package/demo/platforms/ios/platform_www/cordova-js-src/plugin/ios/logger.js +0 -349
  392. package/demo/platforms/ios/platform_www/cordova.js +0 -2188
  393. package/demo/platforms/ios/platform_www/cordova_plugins.js +0 -302
  394. package/demo/platforms/ios/platform_www/plugins/cordova-idensic-mobile-sdk-plugin/dist/SNSMobileSDK.js +0 -3
  395. package/demo/platforms/ios/pods-debug.xcconfig +0 -2
  396. package/demo/platforms/ios/pods-release.xcconfig +0 -2
  397. package/demo/platforms/ios/pods.json +0 -20
  398. package/demo/plugins/android.json +0 -47
  399. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/dist/SNSMobileSDK.js +0 -1
  400. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/package.json +0 -48
  401. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/plugin.xml +0 -82
  402. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/build-extras.gradle +0 -22
  403. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/build.gradle +0 -55
  404. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/gradlew +0 -172
  405. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/gradlew.bat +0 -84
  406. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/android/src/main/java/com/sumsub/msdk/plugins/cordova/SNSMobileSdkCordovaPlugin.java +0 -349
  407. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/ios/SNSMobileSdkCordovaPlugin.h +0 -12
  408. package/demo/plugins/cordova-idensic-mobile-sdk-plugin/src/ios/SNSMobileSdkCordovaPlugin.m +0 -273
  409. package/demo/plugins/cordova-plugin-advanced-http/.editorconfig +0 -19
  410. package/demo/plugins/cordova-plugin-advanced-http/.github/ISSUE_TEMPLATE/--bug-report.md +0 -33
  411. package/demo/plugins/cordova-plugin-advanced-http/.github/ISSUE_TEMPLATE/--feature-request.md +0 -21
  412. package/demo/plugins/cordova-plugin-advanced-http/.github/ISSUE_TEMPLATE/--support-question.md +0 -18
  413. package/demo/plugins/cordova-plugin-advanced-http/.github/workflows/ci.yml +0 -65
  414. package/demo/plugins/cordova-plugin-advanced-http/.travis.yml +0 -61
  415. package/demo/plugins/cordova-plugin-advanced-http/.vscode/settings.json +0 -3
  416. package/demo/plugins/cordova-plugin-advanced-http/CHANGELOG.md +0 -347
  417. package/demo/plugins/cordova-plugin-advanced-http/CONTRIBUTING.md +0 -82
  418. package/demo/plugins/cordova-plugin-advanced-http/LICENSE +0 -23
  419. package/demo/plugins/cordova-plugin-advanced-http/README.md +0 -483
  420. package/demo/plugins/cordova-plugin-advanced-http/package.json +0 -114
  421. package/demo/plugins/cordova-plugin-advanced-http/plugin.xml +0 -96
  422. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaClientAuth.java +0 -113
  423. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaHttpBase.java +0 -225
  424. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaHttpDownload.java +0 -41
  425. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaHttpOperation.java +0 -24
  426. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaHttpPlugin.java +0 -240
  427. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaHttpResponse.java +0 -100
  428. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaHttpUpload.java +0 -91
  429. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaObservableCallbackContext.java +0 -58
  430. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/cordovahttp/CordovaServerTrust.java +0 -124
  431. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/http/HttpBodyDecoder.java +0 -55
  432. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/http/HttpRequest.java +0 -3095
  433. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/http/JsonUtils.java +0 -58
  434. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/http/KeyChainKeyManager.java +0 -57
  435. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/http/TLSConfiguration.java +0 -63
  436. package/demo/plugins/cordova-plugin-advanced-http/src/android/com/silkimen/http/TLSSocketFactory.java +0 -63
  437. package/demo/plugins/cordova-plugin-advanced-http/src/browser/cordova-http-plugin.js +0 -323
  438. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFHTTPSessionManager.h +0 -353
  439. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFHTTPSessionManager.m +0 -464
  440. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFNetworkReachabilityManager.h +0 -206
  441. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFNetworkReachabilityManager.m +0 -263
  442. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFNetworking.h +0 -41
  443. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFSecurityPolicy.h +0 -154
  444. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFSecurityPolicy.m +0 -353
  445. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFURLRequestSerialization.h +0 -479
  446. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFURLRequestSerialization.m +0 -1355
  447. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFURLResponseSerialization.h +0 -318
  448. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFURLResponseSerialization.m +0 -806
  449. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFURLSessionManager.h +0 -500
  450. package/demo/plugins/cordova-plugin-advanced-http/src/ios/AFNetworking/AFURLSessionManager.m +0 -1239
  451. package/demo/plugins/cordova-plugin-advanced-http/src/ios/BinaryRequestSerializer.h +0 -8
  452. package/demo/plugins/cordova-plugin-advanced-http/src/ios/BinaryRequestSerializer.m +0 -53
  453. package/demo/plugins/cordova-plugin-advanced-http/src/ios/BinaryResponseSerializer.h +0 -8
  454. package/demo/plugins/cordova-plugin-advanced-http/src/ios/BinaryResponseSerializer.m +0 -126
  455. package/demo/plugins/cordova-plugin-advanced-http/src/ios/CordovaHttpPlugin.h +0 -20
  456. package/demo/plugins/cordova-plugin-advanced-http/src/ios/CordovaHttpPlugin.m +0 -639
  457. package/demo/plugins/cordova-plugin-advanced-http/src/ios/SDNetworkActivityIndicator/LICENSE +0 -20
  458. package/demo/plugins/cordova-plugin-advanced-http/src/ios/SDNetworkActivityIndicator/README.md +0 -52
  459. package/demo/plugins/cordova-plugin-advanced-http/src/ios/SDNetworkActivityIndicator/SDNetworkActivityIndicator.h +0 -18
  460. package/demo/plugins/cordova-plugin-advanced-http/src/ios/SDNetworkActivityIndicator/SDNetworkActivityIndicator.m +0 -70
  461. package/demo/plugins/cordova-plugin-advanced-http/src/ios/TextRequestSerializer.h +0 -8
  462. package/demo/plugins/cordova-plugin-advanced-http/src/ios/TextRequestSerializer.m +0 -53
  463. package/demo/plugins/cordova-plugin-advanced-http/src/ios/TextResponseSerializer.h +0 -8
  464. package/demo/plugins/cordova-plugin-advanced-http/src/ios/TextResponseSerializer.m +0 -145
  465. package/demo/plugins/cordova-plugin-androidx/README.md +0 -55
  466. package/demo/plugins/cordova-plugin-androidx/package.json +0 -47
  467. package/demo/plugins/cordova-plugin-androidx/plugin.xml +0 -20
  468. package/demo/plugins/cordova-plugin-androidx/scripts/apply-to-gradle.properties.js +0 -49
  469. package/demo/plugins/cordova-plugin-androidx-adapter/README.md +0 -67
  470. package/demo/plugins/cordova-plugin-androidx-adapter/apply.js +0 -101
  471. package/demo/plugins/cordova-plugin-androidx-adapter/artifact-mappings.json +0 -105
  472. package/demo/plugins/cordova-plugin-androidx-adapter/class-mappings.json +0 -1938
  473. package/demo/plugins/cordova-plugin-androidx-adapter/package.json +0 -43
  474. package/demo/plugins/cordova-plugin-androidx-adapter/plugin.xml +0 -20
  475. package/demo/plugins/cordova-plugin-console/.appveyor.yml +0 -29
  476. package/demo/plugins/cordova-plugin-console/.github/PULL_REQUEST_TEMPLATE.md +0 -22
  477. package/demo/plugins/cordova-plugin-console/.jshintrc +0 -17
  478. package/demo/plugins/cordova-plugin-console/.travis.yml +0 -82
  479. package/demo/plugins/cordova-plugin-console/CONTRIBUTING.md +0 -37
  480. package/demo/plugins/cordova-plugin-console/LICENSE +0 -202
  481. package/demo/plugins/cordova-plugin-console/NOTICE +0 -5
  482. package/demo/plugins/cordova-plugin-console/README.md +0 -116
  483. package/demo/plugins/cordova-plugin-console/RELEASENOTES.md +0 -126
  484. package/demo/plugins/cordova-plugin-console/doc/de/README.md +0 -43
  485. package/demo/plugins/cordova-plugin-console/doc/de/index.md +0 -41
  486. package/demo/plugins/cordova-plugin-console/doc/es/README.md +0 -41
  487. package/demo/plugins/cordova-plugin-console/doc/es/index.md +0 -39
  488. package/demo/plugins/cordova-plugin-console/doc/fr/README.md +0 -41
  489. package/demo/plugins/cordova-plugin-console/doc/fr/index.md +0 -39
  490. package/demo/plugins/cordova-plugin-console/doc/it/README.md +0 -43
  491. package/demo/plugins/cordova-plugin-console/doc/it/index.md +0 -41
  492. package/demo/plugins/cordova-plugin-console/doc/ja/README.md +0 -43
  493. package/demo/plugins/cordova-plugin-console/doc/ja/index.md +0 -41
  494. package/demo/plugins/cordova-plugin-console/doc/ko/README.md +0 -43
  495. package/demo/plugins/cordova-plugin-console/doc/ko/index.md +0 -41
  496. package/demo/plugins/cordova-plugin-console/doc/pl/README.md +0 -43
  497. package/demo/plugins/cordova-plugin-console/doc/pl/index.md +0 -41
  498. package/demo/plugins/cordova-plugin-console/doc/ru/index.md +0 -31
  499. package/demo/plugins/cordova-plugin-console/doc/zh/README.md +0 -43
  500. package/demo/plugins/cordova-plugin-console/doc/zh/index.md +0 -41
  501. package/demo/plugins/cordova-plugin-console/package.json +0 -82
  502. package/demo/plugins/cordova-plugin-console/plugin.xml +0 -132
  503. package/demo/plugins/cordova-plugin-console/src/ios/CDVLogger.h +0 -26
  504. package/demo/plugins/cordova-plugin-console/src/ios/CDVLogger.m +0 -38
  505. package/demo/plugins/cordova-plugin-console/src/ubuntu/console.cpp +0 -29
  506. package/demo/plugins/cordova-plugin-console/src/ubuntu/console.h +0 -43
  507. package/demo/plugins/cordova-plugin-console/src/wp/DebugConsole.cs +0 -47
  508. package/demo/plugins/cordova-plugin-console/tests/package.json +0 -14
  509. package/demo/plugins/cordova-plugin-console/tests/plugin.xml +0 -31
  510. package/demo/plugins/cordova-plugin-console/tests/tests.js +0 -43
  511. package/demo/plugins/cordova-plugin-enable-multidex/.editorconfig +0 -20
  512. package/demo/plugins/cordova-plugin-enable-multidex/.eslintrc.json +0 -11
  513. package/demo/plugins/cordova-plugin-enable-multidex/.prettierrc.json +0 -10
  514. package/demo/plugins/cordova-plugin-enable-multidex/.travis.yml +0 -52
  515. package/demo/plugins/cordova-plugin-enable-multidex/LICENSE +0 -21
  516. package/demo/plugins/cordova-plugin-enable-multidex/README.md +0 -25
  517. package/demo/plugins/cordova-plugin-enable-multidex/package.json +0 -79
  518. package/demo/plugins/cordova-plugin-enable-multidex/plugin.xml +0 -18
  519. package/demo/plugins/cordova-plugin-enable-multidex/scripts/android/editManifest.js +0 -38
  520. package/demo/plugins/cordova-plugin-enable-multidex/src/android/build.gradle +0 -9
  521. package/demo/plugins/cordova-plugin-file/.jshintrc +0 -30
  522. package/demo/plugins/cordova-plugin-file/.ratignore +0 -1
  523. package/demo/plugins/cordova-plugin-file/CONTRIBUTING.md +0 -37
  524. package/demo/plugins/cordova-plugin-file/LICENSE +0 -202
  525. package/demo/plugins/cordova-plugin-file/NOTICE +0 -5
  526. package/demo/plugins/cordova-plugin-file/README.md +0 -833
  527. package/demo/plugins/cordova-plugin-file/RELEASENOTES.md +0 -496
  528. package/demo/plugins/cordova-plugin-file/doc/plugins.md +0 -120
  529. package/demo/plugins/cordova-plugin-file/package.json +0 -86
  530. package/demo/plugins/cordova-plugin-file/plugin.xml +0 -260
  531. package/demo/plugins/cordova-plugin-file/src/android/AssetFilesystem.java +0 -294
  532. package/demo/plugins/cordova-plugin-file/src/android/ContentFilesystem.java +0 -223
  533. package/demo/plugins/cordova-plugin-file/src/android/DirectoryManager.java +0 -134
  534. package/demo/plugins/cordova-plugin-file/src/android/EncodingException.java +0 -29
  535. package/demo/plugins/cordova-plugin-file/src/android/FileExistsException.java +0 -29
  536. package/demo/plugins/cordova-plugin-file/src/android/FileUtils.java +0 -1225
  537. package/demo/plugins/cordova-plugin-file/src/android/Filesystem.java +0 -331
  538. package/demo/plugins/cordova-plugin-file/src/android/InvalidModificationException.java +0 -30
  539. package/demo/plugins/cordova-plugin-file/src/android/LocalFilesystem.java +0 -513
  540. package/demo/plugins/cordova-plugin-file/src/android/LocalFilesystemURL.java +0 -64
  541. package/demo/plugins/cordova-plugin-file/src/android/NoModificationAllowedException.java +0 -29
  542. package/demo/plugins/cordova-plugin-file/src/android/PendingRequests.java +0 -94
  543. package/demo/plugins/cordova-plugin-file/src/android/TypeMismatchException.java +0 -30
  544. package/demo/plugins/cordova-plugin-file/src/android/build-extras.gradle +0 -47
  545. package/demo/plugins/cordova-plugin-file/src/browser/FileProxy.js +0 -1059
  546. package/demo/plugins/cordova-plugin-file/src/ios/CDVAssetLibraryFilesystem.h +0 -30
  547. package/demo/plugins/cordova-plugin-file/src/ios/CDVAssetLibraryFilesystem.m +0 -253
  548. package/demo/plugins/cordova-plugin-file/src/ios/CDVFile.h +0 -157
  549. package/demo/plugins/cordova-plugin-file/src/ios/CDVFile.m +0 -1119
  550. package/demo/plugins/cordova-plugin-file/src/ios/CDVLocalFilesystem.h +0 -32
  551. package/demo/plugins/cordova-plugin-file/src/ios/CDVLocalFilesystem.m +0 -750
  552. package/demo/plugins/cordova-plugin-file/src/osx/CDVFile.h +0 -189
  553. package/demo/plugins/cordova-plugin-file/src/osx/CDVFile.m +0 -1056
  554. package/demo/plugins/cordova-plugin-file/src/osx/CDVLocalFilesystem.h +0 -32
  555. package/demo/plugins/cordova-plugin-file/src/osx/CDVLocalFilesystem.m +0 -733
  556. package/demo/plugins/cordova-plugin-file/src/windows/FileProxy.js +0 -1190
  557. package/demo/plugins/cordova-plugin-file/tests/package.json +0 -17
  558. package/demo/plugins/cordova-plugin-file/tests/plugin.xml +0 -43
  559. package/demo/plugins/cordova-plugin-file/tests/src/android/TestContentProvider.java +0 -93
  560. package/demo/plugins/cordova-plugin-file/tests/tests.js +0 -4163
  561. package/demo/plugins/cordova-plugin-file/types/index.d.ts +0 -378
  562. package/demo/plugins/cordova-plugin-qr-barcode-scanner/.editorconfig +0 -16
  563. package/demo/plugins/cordova-plugin-qr-barcode-scanner/.github/CONTRIBUTING.md +0 -72
  564. package/demo/plugins/cordova-plugin-qr-barcode-scanner/.github/ISSUE_TEMPLATE.md +0 -24
  565. package/demo/plugins/cordova-plugin-qr-barcode-scanner/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  566. package/demo/plugins/cordova-plugin-qr-barcode-scanner/.github/lock.yml +0 -25
  567. package/demo/plugins/cordova-plugin-qr-barcode-scanner/.github/stale.yml +0 -20
  568. package/demo/plugins/cordova-plugin-qr-barcode-scanner/.travis.yml +0 -11
  569. package/demo/plugins/cordova-plugin-qr-barcode-scanner/CHANGELOG.md +0 -448
  570. package/demo/plugins/cordova-plugin-qr-barcode-scanner/LICENSE.txt +0 -22
  571. package/demo/plugins/cordova-plugin-qr-barcode-scanner/README.md +0 -197
  572. package/demo/plugins/cordova-plugin-qr-barcode-scanner/buttons.psd +0 -0
  573. package/demo/plugins/cordova-plugin-qr-barcode-scanner/hooks/windows/check-arch.js +0 -52
  574. package/demo/plugins/cordova-plugin-qr-barcode-scanner/package.json +0 -89
  575. package/demo/plugins/cordova-plugin-qr-barcode-scanner/plugin.xml +0 -74
  576. package/demo/plugins/cordova-plugin-qr-barcode-scanner/spec/helper/cordova.js +0 -83
  577. package/demo/plugins/cordova-plugin-qr-barcode-scanner/spec/index.spec.js +0 -78
  578. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/README.md +0 -1
  579. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/AndroidManifest.xml +0 -14
  580. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/R.txt +0 -1398
  581. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/aapt/AndroidManifest.xml +0 -14
  582. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html/apache-license.txt +0 -201
  583. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-de/about1d.html +0 -15
  584. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-de/about2d.html +0 -28
  585. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-de/index.html +0 -23
  586. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-de/license.html +0 -30
  587. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-de/scanning.html +0 -19
  588. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-de/sharing.html +0 -14
  589. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-de/whatsnew.html +0 -14
  590. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-en/about1d.html +0 -15
  591. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-en/about2d.html +0 -28
  592. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-en/index.html +0 -23
  593. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-en/license.html +0 -42
  594. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-en/scanning.html +0 -19
  595. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-en/sharing.html +0 -14
  596. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-en/whatsnew.html +0 -14
  597. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-es/about1d.html +0 -18
  598. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-es/about2d.html +0 -30
  599. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-es/index.html +0 -24
  600. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-es/license.html +0 -39
  601. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-es/scanning.html +0 -18
  602. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-es/sharing.html +0 -13
  603. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-es/whatsnew.html +0 -14
  604. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-fr/about1d.html +0 -15
  605. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-fr/about2d.html +0 -26
  606. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-fr/index.html +0 -23
  607. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-fr/license.html +0 -30
  608. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-fr/scanning.html +0 -19
  609. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-fr/sharing.html +0 -14
  610. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-fr/whatsnew.html +0 -14
  611. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-it/about1d.html +0 -15
  612. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-it/about2d.html +0 -28
  613. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-it/index.html +0 -23
  614. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-it/license.html +0 -30
  615. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-it/scanning.html +0 -19
  616. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-it/sharing.html +0 -14
  617. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-it/whatsnew.html +0 -14
  618. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ja/about1d.html +0 -15
  619. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ja/about2d.html +0 -28
  620. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ja/index.html +0 -22
  621. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ja/license.html +0 -29
  622. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ja/scanning.html +0 -19
  623. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ja/sharing.html +0 -14
  624. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ja/whatsnew.html +0 -14
  625. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ko/about1d.html +0 -15
  626. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ko/about2d.html +0 -28
  627. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ko/index.html +0 -23
  628. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ko/license.html +0 -30
  629. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ko/scanning.html +0 -19
  630. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ko/sharing.html +0 -14
  631. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ko/whatsnew.html +0 -14
  632. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-nl/about1d.html +0 -15
  633. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-nl/about2d.html +0 -28
  634. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-nl/index.html +0 -23
  635. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-nl/license.html +0 -30
  636. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-nl/scanning.html +0 -19
  637. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-nl/sharing.html +0 -14
  638. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-nl/whatsnew.html +0 -14
  639. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-pt/about1d.html +0 -15
  640. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-pt/about2d.html +0 -28
  641. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-pt/index.html +0 -23
  642. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-pt/license.html +0 -30
  643. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-pt/scanning.html +0 -19
  644. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-pt/sharing.html +0 -14
  645. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-pt/whatsnew.html +0 -14
  646. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ru/about1d.html +0 -15
  647. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ru/about2d.html +0 -28
  648. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ru/index.html +0 -23
  649. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ru/license.html +0 -30
  650. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ru/scanning.html +0 -19
  651. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ru/sharing.html +0 -14
  652. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-ru/whatsnew.html +0 -14
  653. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-uk/about1d.html +0 -15
  654. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-uk/about2d.html +0 -28
  655. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-uk/index.html +0 -23
  656. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-uk/license.html +0 -29
  657. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-uk/scanning.html +0 -19
  658. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-uk/sharing.html +0 -14
  659. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-uk/whatsnew.html +0 -14
  660. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rCN/about1d.html +0 -15
  661. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rCN/about2d.html +0 -29
  662. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rCN/index.html +0 -23
  663. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rCN/license.html +0 -30
  664. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rCN/scanning.html +0 -19
  665. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rCN/sharing.html +0 -13
  666. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rCN/whatsnew.html +0 -14
  667. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rHK/about1d.html +0 -15
  668. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rHK/about2d.html +0 -28
  669. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rHK/index.html +0 -23
  670. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rHK/license.html +0 -31
  671. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rHK/scanning.html +0 -21
  672. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rHK/sharing.html +0 -14
  673. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rHK/whatsnew.html +0 -14
  674. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rTW/about1d.html +0 -15
  675. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rTW/about2d.html +0 -28
  676. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rTW/index.html +0 -23
  677. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rTW/license.html +0 -31
  678. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rTW/scanning.html +0 -21
  679. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rTW/sharing.html +0 -14
  680. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/html-zh-rTW/whatsnew.html +0 -14
  681. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/big-1d.png +0 -0
  682. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/big-aztec.png +0 -0
  683. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/big-datamatrix.png +0 -0
  684. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/big-pdf417.png +0 -0
  685. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/big-qr.png +0 -0
  686. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/contact-results-screen.jpg +0 -0
  687. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/demo-no.png +0 -0
  688. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/demo-yes.png +0 -0
  689. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/scan-example.png +0 -0
  690. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/scan-from-phone.png +0 -0
  691. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/images/search-book-contents.jpg +0 -0
  692. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/assets/style.css +0 -28
  693. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/classes.jar +0 -0
  694. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/drawable/flip_camera.png +0 -0
  695. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/drawable/launcher_icon.png +0 -0
  696. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/drawable/share_via_barcode.png +0 -0
  697. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/drawable/toggle_torch.png +0 -0
  698. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/drawable-hdpi/launcher_icon.png +0 -0
  699. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/drawable-xhdpi/launcher_icon.png +0 -0
  700. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/drawable-xxhdpi/launcher_icon.png +0 -0
  701. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/app_picker_list_item.xml +0 -39
  702. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/bookmark_picker_list_item.xml +0 -39
  703. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/capture.xml +0 -229
  704. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/encode.xml +0 -54
  705. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/help.xml +0 -21
  706. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/history_list_item.xml +0 -38
  707. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/search_book_contents.xml +0 -55
  708. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/search_book_contents_header.xml +0 -25
  709. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/search_book_contents_list_item.xml +0 -41
  710. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout/share.xml +0 -95
  711. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout-land/encode.xml +0 -53
  712. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout-land/share.xml +0 -91
  713. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/layout-ldpi/capture.xml +0 -219
  714. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/menu/capture.xml +0 -38
  715. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/menu/encode.xml +0 -28
  716. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/menu/history.xml +0 -28
  717. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/raw/beep.ogg +0 -0
  718. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values/values.xml +0 -221
  719. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-ar/values-ar.xml +0 -129
  720. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-bg/values-bg.xml +0 -129
  721. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-ca/values-ca.xml +0 -129
  722. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-cs/values-cs.xml +0 -129
  723. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-da/values-da.xml +0 -129
  724. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-de/values-de.xml +0 -129
  725. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-el/values-el.xml +0 -129
  726. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-es/values-es.xml +0 -129
  727. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-eu/values-eu.xml +0 -129
  728. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-fi/values-fi.xml +0 -129
  729. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-fr/values-fr.xml +0 -129
  730. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-he/values-he.xml +0 -129
  731. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-hi/values-hi.xml +0 -129
  732. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-hu/values-hu.xml +0 -129
  733. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-id/values-id.xml +0 -129
  734. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-it/values-it.xml +0 -129
  735. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-iw/values-iw.xml +0 -129
  736. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-ja/values-ja.xml +0 -129
  737. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-ko/values-ko.xml +0 -129
  738. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-nl/values-nl.xml +0 -129
  739. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-pl/values-pl.xml +0 -129
  740. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-pt/values-pt.xml +0 -129
  741. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-ro/values-ro.xml +0 -129
  742. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-ru/values-ru.xml +0 -129
  743. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-sk/values-sk.xml +0 -129
  744. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-sl/values-sl.xml +0 -129
  745. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-sv/values-sv.xml +0 -129
  746. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-th/values-th.xml +0 -129
  747. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-tr/values-tr.xml +0 -129
  748. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-uk/values-uk.xml +0 -129
  749. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-zh-rCN/values-zh-rCN.xml +0 -129
  750. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-zh-rHK/values-zh-rHK.xml +0 -129
  751. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/values-zh-rTW/values-zh-rTW.xml +0 -129
  752. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5/res/xml/preferences.xml +0 -136
  753. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner-release-2.1.5.aar +0 -0
  754. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/barcodescanner.gradle +0 -17
  755. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/android/com/phonegap/plugins/barcodescanner/BarcodeScanner.java +0 -328
  756. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/browser/BarcodeScannerProxy.js +0 -24
  757. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/ios/CDVBarcodeScanner.bundle/beep.caf +0 -0
  758. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/ios/CDVBarcodeScanner.bundle/torch.png +0 -0
  759. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/ios/CDVBarcodeScanner.bundle/torch@2x.png +0 -0
  760. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/ios/CDVBarcodeScanner.bundle/torch@3x.png +0 -0
  761. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/ios/CDVBarcodeScanner.mm +0 -1067
  762. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/ios/scannerOverlay.xib +0 -185
  763. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/BarcodeScannerProxy.js +0 -738
  764. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/assets/plugin-barcodeScanner.css +0 -89
  765. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/lib/Properties/AssemblyInfo.cs +0 -39
  766. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/lib/Reader.cs +0 -173
  767. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/lib/WinRTBarcodeReader.csproj +0 -137
  768. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/lib/ZXing.winmd +0 -0
  769. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/lib.UW/ANY/ZXing.winmd +0 -0
  770. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/lib.UW/ARM/ZXing.winmd +0 -0
  771. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/lib.UW/x64/ZXing.winmd +0 -0
  772. package/demo/plugins/cordova-plugin-qr-barcode-scanner/src/windows/lib.UW/x86/ZXing.winmd +0 -0
  773. package/demo/plugins/cordova-plugin-timer/.appveyor.yml +0 -28
  774. package/demo/plugins/cordova-plugin-timer/.github/PULL_REQUEST_TEMPLATE.md +0 -22
  775. package/demo/plugins/cordova-plugin-timer/.jshintignore +0 -1
  776. package/demo/plugins/cordova-plugin-timer/.jshintrc +0 -16
  777. package/demo/plugins/cordova-plugin-timer/.travis.yml +0 -98
  778. package/demo/plugins/cordova-plugin-timer/LICENSE +0 -204
  779. package/demo/plugins/cordova-plugin-timer/README.md +0 -88
  780. package/demo/plugins/cordova-plugin-timer/RELEASENOTES.md +0 -0
  781. package/demo/plugins/cordova-plugin-timer/package.json +0 -87
  782. package/demo/plugins/cordova-plugin-timer/plugin.xml +0 -68
  783. package/demo/plugins/cordova-plugin-timer/src/android/Consumer.java +0 -22
  784. package/demo/plugins/cordova-plugin-timer/src/android/NativeTimerAdapter.java +0 -27
  785. package/demo/plugins/cordova-plugin-timer/src/android/NativeTimerAdapterImpl.java +0 -123
  786. package/demo/plugins/cordova-plugin-timer/src/android/NativeTimerPlugin.java +0 -163
  787. package/demo/plugins/cordova-plugin-timer/src/ios/NativeTimerAdapter.h +0 -35
  788. package/demo/plugins/cordova-plugin-timer/src/ios/NativeTimerAdapter.m +0 -76
  789. package/demo/plugins/cordova-plugin-timer/src/ios/NativeTimerPlugin.h +0 -28
  790. package/demo/plugins/cordova-plugin-timer/src/ios/NativeTimerPlugin.m +0 -158
  791. package/demo/plugins/cordova-plugin-timer/types/index.d.ts +0 -21
  792. package/demo/plugins/cordova-plugin-whitelist/CONTRIBUTING.md +0 -37
  793. package/demo/plugins/cordova-plugin-whitelist/LICENSE +0 -202
  794. package/demo/plugins/cordova-plugin-whitelist/NOTICE +0 -5
  795. package/demo/plugins/cordova-plugin-whitelist/README.md +0 -167
  796. package/demo/plugins/cordova-plugin-whitelist/RELEASENOTES.md +0 -87
  797. package/demo/plugins/cordova-plugin-whitelist/package.json +0 -70
  798. package/demo/plugins/cordova-plugin-whitelist/plugin.xml +0 -44
  799. package/demo/plugins/cordova-plugin-whitelist/src/android/WhitelistPlugin.java +0 -161
  800. package/demo/plugins/cordova-plugin-whitelist/tests/README.md +0 -53
  801. package/demo/plugins/cordova-plugin-whitelist/tests/package.json +0 -15
  802. package/demo/plugins/cordova-plugin-whitelist/tests/plugin.xml +0 -56
  803. package/demo/plugins/cordova-plugin-whitelist/tests/scripts/remove-access.js +0 -19
  804. package/demo/plugins/cordova-plugin-whitelist/tests/src/android/WhitelistAPI.java +0 -90
  805. package/demo/plugins/cordova-plugin-whitelist/tests/tests.js +0 -214
  806. package/demo/plugins/cordova-plugin-wkwebview-engine/CONTRIBUTING.md +0 -32
  807. package/demo/plugins/cordova-plugin-wkwebview-engine/LICENSE +0 -202
  808. package/demo/plugins/cordova-plugin-wkwebview-engine/NOTICE +0 -5
  809. package/demo/plugins/cordova-plugin-wkwebview-engine/README.md +0 -123
  810. package/demo/plugins/cordova-plugin-wkwebview-engine/RELEASENOTES.md +0 -121
  811. package/demo/plugins/cordova-plugin-wkwebview-engine/package.json +0 -72
  812. package/demo/plugins/cordova-plugin-wkwebview-engine/plugin.xml +0 -63
  813. package/demo/plugins/cordova-plugin-wkwebview-engine/src/ios/CDVWKProcessPoolFactory.h +0 -27
  814. package/demo/plugins/cordova-plugin-wkwebview-engine/src/ios/CDVWKProcessPoolFactory.m +0 -49
  815. package/demo/plugins/cordova-plugin-wkwebview-engine/src/ios/CDVWKWebViewEngine.h +0 -29
  816. package/demo/plugins/cordova-plugin-wkwebview-engine/src/ios/CDVWKWebViewEngine.m +0 -494
  817. package/demo/plugins/cordova-plugin-wkwebview-engine/src/ios/CDVWKWebViewUIDelegate.h +0 -28
  818. package/demo/plugins/cordova-plugin-wkwebview-engine/src/ios/CDVWKWebViewUIDelegate.m +0 -123
  819. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineLibTests/CDVWKWebViewEngineTest.m +0 -240
  820. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineLibTests/Info.plist +0 -24
  821. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/project.pbxproj +0 -559
  822. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  823. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/project.xcworkspace/xcshareddata/CDVWKWebViewEngineTest.xccheckout +0 -41
  824. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/xcshareddata/xcschemes/CDVWKWebViewEngineLib.xcscheme +0 -80
  825. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest/CDVWKWebViewEngineTest.xcodeproj/xcshareddata/xcschemes/CDVWKWebViewEngineLibTests.xcscheme +0 -104
  826. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest.xcworkspace/contents.xcworkspacedata +0 -7
  827. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest.xcworkspace/xcshareddata/CDVWKWebViewEngineTest.xccheckout +0 -41
  828. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/CDVWKWebViewEngineTest.xcworkspace/xcshareddata/xcschemes/CordovaLib.xcscheme +0 -80
  829. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/README.md +0 -40
  830. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/package.json +0 -13
  831. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/ios/test.xcconfig +0 -20
  832. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/package.json +0 -14
  833. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/plugin.xml +0 -29
  834. package/demo/plugins/cordova-plugin-wkwebview-engine/tests/tests.js +0 -44
  835. package/demo/plugins/ios.json +0 -46
@@ -1,1225 +0,0 @@
1
- /*
2
- Licensed to the Apache Software Foundation (ASF) under one
3
- or more contributor license agreements. See the NOTICE file
4
- distributed with this work for additional information
5
- regarding copyright ownership. The ASF licenses this file
6
- to you under the Apache License, Version 2.0 (the
7
- "License"); you may not use this file except in compliance
8
- with the License. You may obtain a copy of the License at
9
-
10
- http://www.apache.org/licenses/LICENSE-2.0
11
-
12
- Unless required by applicable law or agreed to in writing,
13
- software distributed under the License is distributed on an
14
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
- KIND, either express or implied. See the License for the
16
- specific language governing permissions and limitations
17
- under the License.
18
- */
19
- package org.apache.cordova.file;
20
-
21
- import android.Manifest;
22
- import android.app.Activity;
23
- import android.content.Context;
24
- import android.content.pm.PackageManager;
25
- import android.net.Uri;
26
- import android.os.Build;
27
- import android.os.Environment;
28
- import android.util.Base64;
29
-
30
- import org.apache.cordova.CallbackContext;
31
- import org.apache.cordova.CordovaInterface;
32
- import org.apache.cordova.CordovaPlugin;
33
- import org.apache.cordova.CordovaWebView;
34
- import org.apache.cordova.LOG;
35
- import org.apache.cordova.PermissionHelper;
36
- import org.apache.cordova.PluginResult;
37
-
38
- import org.json.JSONArray;
39
- import org.json.JSONException;
40
- import org.json.JSONObject;
41
-
42
- import java.io.ByteArrayOutputStream;
43
- import java.io.File;
44
- import java.io.FileNotFoundException;
45
- import java.io.IOException;
46
- import java.io.InputStream;
47
- import java.net.MalformedURLException;
48
- import java.security.Permission;
49
- import java.util.ArrayList;
50
- import java.util.HashMap;
51
- import java.util.HashSet;
52
-
53
- /**
54
- * This class provides file and directory services to JavaScript.
55
- */
56
- public class FileUtils extends CordovaPlugin {
57
- private static final String LOG_TAG = "FileUtils";
58
-
59
- public static int NOT_FOUND_ERR = 1;
60
- public static int SECURITY_ERR = 2;
61
- public static int ABORT_ERR = 3;
62
-
63
- public static int NOT_READABLE_ERR = 4;
64
- public static int ENCODING_ERR = 5;
65
- public static int NO_MODIFICATION_ALLOWED_ERR = 6;
66
- public static int INVALID_STATE_ERR = 7;
67
- public static int SYNTAX_ERR = 8;
68
- public static int INVALID_MODIFICATION_ERR = 9;
69
- public static int QUOTA_EXCEEDED_ERR = 10;
70
- public static int TYPE_MISMATCH_ERR = 11;
71
- public static int PATH_EXISTS_ERR = 12;
72
-
73
- /*
74
- * Permission callback codes
75
- */
76
-
77
- public static final int ACTION_GET_FILE = 0;
78
- public static final int ACTION_WRITE = 1;
79
- public static final int ACTION_GET_DIRECTORY = 2;
80
-
81
- public static final int WRITE = 3;
82
- public static final int READ = 4;
83
-
84
- public static int UNKNOWN_ERR = 1000;
85
-
86
- private boolean configured = false;
87
-
88
- private PendingRequests pendingRequests;
89
-
90
-
91
-
92
- /*
93
- * We need both read and write when accessing the storage, I think.
94
- */
95
-
96
- private String [] permissions = {
97
- Manifest.permission.READ_EXTERNAL_STORAGE,
98
- Manifest.permission.WRITE_EXTERNAL_STORAGE };
99
-
100
- // This field exists only to support getEntry, below, which has been deprecated
101
- private static FileUtils filePlugin;
102
-
103
- private interface FileOp {
104
- void run(JSONArray args) throws Exception;
105
- }
106
-
107
- private ArrayList<Filesystem> filesystems;
108
-
109
- public void registerFilesystem(Filesystem fs) {
110
- if (fs != null && filesystemForName(fs.name)== null) {
111
- this.filesystems.add(fs);
112
- }
113
- }
114
-
115
- private Filesystem filesystemForName(String name) {
116
- for (Filesystem fs:filesystems) {
117
- if (fs != null && fs.name != null && fs.name.equals(name)) {
118
- return fs;
119
- }
120
- }
121
- return null;
122
- }
123
-
124
- protected String[] getExtraFileSystemsPreference(Activity activity) {
125
- String fileSystemsStr = preferences.getString("androidextrafilesystems", "files,files-external,documents,sdcard,cache,cache-external,assets,root");
126
- return fileSystemsStr.split(",");
127
- }
128
-
129
- protected void registerExtraFileSystems(String[] filesystems, HashMap<String, String> availableFileSystems) {
130
- HashSet<String> installedFileSystems = new HashSet<String>();
131
-
132
- /* Register filesystems in order */
133
- for (String fsName : filesystems) {
134
- if (!installedFileSystems.contains(fsName)) {
135
- String fsRoot = availableFileSystems.get(fsName);
136
- if (fsRoot != null) {
137
- File newRoot = new File(fsRoot);
138
- if (newRoot.mkdirs() || newRoot.isDirectory()) {
139
- registerFilesystem(new LocalFilesystem(fsName, webView.getContext(), webView.getResourceApi(), newRoot));
140
- installedFileSystems.add(fsName);
141
- } else {
142
- LOG.d(LOG_TAG, "Unable to create root dir for filesystem \"" + fsName + "\", skipping");
143
- }
144
- } else {
145
- LOG.d(LOG_TAG, "Unrecognized extra filesystem identifier: " + fsName);
146
- }
147
- }
148
- }
149
- }
150
-
151
- protected HashMap<String, String> getAvailableFileSystems(Activity activity) {
152
- Context context = activity.getApplicationContext();
153
- HashMap<String, String> availableFileSystems = new HashMap<String,String>();
154
-
155
- availableFileSystems.put("files", context.getFilesDir().getAbsolutePath());
156
- availableFileSystems.put("documents", new File(context.getFilesDir(), "Documents").getAbsolutePath());
157
- availableFileSystems.put("cache", context.getCacheDir().getAbsolutePath());
158
- availableFileSystems.put("root", "/");
159
- if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
160
- try {
161
- availableFileSystems.put("files-external", context.getExternalFilesDir(null).getAbsolutePath());
162
- availableFileSystems.put("sdcard", Environment.getExternalStorageDirectory().getAbsolutePath());
163
- availableFileSystems.put("cache-external", context.getExternalCacheDir().getAbsolutePath());
164
- }
165
- catch(NullPointerException e) {
166
- LOG.d(LOG_TAG, "External storage unavailable, check to see if USB Mass Storage Mode is on");
167
- }
168
- }
169
-
170
- return availableFileSystems;
171
- }
172
-
173
- @Override
174
- public void initialize(CordovaInterface cordova, CordovaWebView webView) {
175
- super.initialize(cordova, webView);
176
- this.filesystems = new ArrayList<Filesystem>();
177
- this.pendingRequests = new PendingRequests();
178
-
179
- String tempRoot = null;
180
- String persistentRoot = null;
181
-
182
- Activity activity = cordova.getActivity();
183
- String packageName = activity.getPackageName();
184
-
185
- String location = preferences.getString("androidpersistentfilelocation", "internal");
186
-
187
- tempRoot = activity.getCacheDir().getAbsolutePath();
188
- if ("internal".equalsIgnoreCase(location)) {
189
- persistentRoot = activity.getFilesDir().getAbsolutePath() + "/files/";
190
- this.configured = true;
191
- } else if ("compatibility".equalsIgnoreCase(location)) {
192
- /*
193
- * Fall-back to compatibility mode -- this is the logic implemented in
194
- * earlier versions of this plugin, and should be maintained here so
195
- * that apps which were originally deployed with older versions of the
196
- * plugin can continue to provide access to files stored under those
197
- * versions.
198
- */
199
- if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
200
- persistentRoot = Environment.getExternalStorageDirectory().getAbsolutePath();
201
- tempRoot = Environment.getExternalStorageDirectory().getAbsolutePath() +
202
- "/Android/data/" + packageName + "/cache/";
203
- } else {
204
- persistentRoot = "/data/data/" + packageName;
205
- }
206
- this.configured = true;
207
- }
208
-
209
- if (this.configured) {
210
- // Create the directories if they don't exist.
211
- File tmpRootFile = new File(tempRoot);
212
- File persistentRootFile = new File(persistentRoot);
213
- tmpRootFile.mkdirs();
214
- persistentRootFile.mkdirs();
215
-
216
- // Register initial filesystems
217
- // Note: The temporary and persistent filesystems need to be the first two
218
- // registered, so that they will match window.TEMPORARY and window.PERSISTENT,
219
- // per spec.
220
- this.registerFilesystem(new LocalFilesystem("temporary", webView.getContext(), webView.getResourceApi(), tmpRootFile));
221
- this.registerFilesystem(new LocalFilesystem("persistent", webView.getContext(), webView.getResourceApi(), persistentRootFile));
222
- this.registerFilesystem(new ContentFilesystem(webView.getContext(), webView.getResourceApi()));
223
- this.registerFilesystem(new AssetFilesystem(webView.getContext().getAssets(), webView.getResourceApi()));
224
-
225
- registerExtraFileSystems(getExtraFileSystemsPreference(activity), getAvailableFileSystems(activity));
226
-
227
- // Initialize static plugin reference for deprecated getEntry method
228
- if (filePlugin == null) {
229
- FileUtils.filePlugin = this;
230
- }
231
- } else {
232
- LOG.e(LOG_TAG, "File plugin configuration error: Please set AndroidPersistentFileLocation in config.xml to one of \"internal\" (for new applications) or \"compatibility\" (for compatibility with previous versions)");
233
- activity.finish();
234
- }
235
- }
236
-
237
- public static FileUtils getFilePlugin() {
238
- return filePlugin;
239
- }
240
-
241
- private Filesystem filesystemForURL(LocalFilesystemURL localURL) {
242
- if (localURL == null) return null;
243
- return filesystemForName(localURL.fsName);
244
- }
245
-
246
- @Override
247
- public Uri remapUri(Uri uri) {
248
- // Remap only cdvfile: URLs (not content:).
249
- if (!LocalFilesystemURL.FILESYSTEM_PROTOCOL.equals(uri.getScheme())) {
250
- return null;
251
- }
252
- try {
253
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(uri);
254
- Filesystem fs = this.filesystemForURL(inputURL);
255
- if (fs == null) {
256
- return null;
257
- }
258
- String path = fs.filesystemPathForURL(inputURL);
259
- if (path != null) {
260
- return Uri.parse("file://" + fs.filesystemPathForURL(inputURL));
261
- }
262
- return null;
263
- } catch (IllegalArgumentException e) {
264
- return null;
265
- }
266
- }
267
-
268
- public boolean execute(String action, final String rawArgs, final CallbackContext callbackContext) {
269
- if (!configured) {
270
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, "File plugin is not configured. Please see the README.md file for details on how to update config.xml"));
271
- return true;
272
- }
273
- if (action.equals("testSaveLocationExists")) {
274
- threadhelper(new FileOp() {
275
- public void run(JSONArray args) {
276
- boolean b = DirectoryManager.testSaveLocationExists();
277
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, b));
278
- }
279
- }, rawArgs, callbackContext);
280
- }
281
- else if (action.equals("getFreeDiskSpace")) {
282
- threadhelper( new FileOp( ){
283
- public void run(JSONArray args) {
284
- // The getFreeDiskSpace plugin API is not documented, but some apps call it anyway via exec().
285
- // For compatibility it always returns free space in the primary external storage, and
286
- // does NOT fallback to internal store if external storage is unavailable.
287
- long l = DirectoryManager.getFreeExternalStorageSpace();
288
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, l));
289
- }
290
- }, rawArgs, callbackContext);
291
- }
292
- else if (action.equals("testFileExists")) {
293
- threadhelper( new FileOp( ){
294
- public void run(JSONArray args) throws JSONException {
295
- String fname=args.getString(0);
296
- boolean b = DirectoryManager.testFileExists(fname);
297
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, b));
298
- }
299
- }, rawArgs, callbackContext);
300
- }
301
- else if (action.equals("testDirectoryExists")) {
302
- threadhelper( new FileOp( ){
303
- public void run(JSONArray args) throws JSONException {
304
- String fname=args.getString(0);
305
- boolean b = DirectoryManager.testFileExists(fname);
306
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, b));
307
- }
308
- }, rawArgs, callbackContext);
309
- }
310
- else if (action.equals("readAsText")) {
311
- threadhelper( new FileOp( ){
312
- public void run(JSONArray args) throws JSONException, MalformedURLException {
313
- String encoding = args.getString(1);
314
- int start = args.getInt(2);
315
- int end = args.getInt(3);
316
- String fname=args.getString(0);
317
- readFileAs(fname, start, end, callbackContext, encoding, PluginResult.MESSAGE_TYPE_STRING);
318
- }
319
- }, rawArgs, callbackContext);
320
- }
321
- else if (action.equals("readAsDataURL")) {
322
- threadhelper( new FileOp( ){
323
- public void run(JSONArray args) throws JSONException, MalformedURLException {
324
- int start = args.getInt(1);
325
- int end = args.getInt(2);
326
- String fname=args.getString(0);
327
- readFileAs(fname, start, end, callbackContext, null, -1);
328
- }
329
- }, rawArgs, callbackContext);
330
- }
331
- else if (action.equals("readAsArrayBuffer")) {
332
- threadhelper( new FileOp( ){
333
- public void run(JSONArray args) throws JSONException, MalformedURLException {
334
- int start = args.getInt(1);
335
- int end = args.getInt(2);
336
- String fname=args.getString(0);
337
- readFileAs(fname, start, end, callbackContext, null, PluginResult.MESSAGE_TYPE_ARRAYBUFFER);
338
- }
339
- }, rawArgs, callbackContext);
340
- }
341
- else if (action.equals("readAsBinaryString")) {
342
- threadhelper( new FileOp( ){
343
- public void run(JSONArray args) throws JSONException, MalformedURLException {
344
- int start = args.getInt(1);
345
- int end = args.getInt(2);
346
- String fname=args.getString(0);
347
- readFileAs(fname, start, end, callbackContext, null, PluginResult.MESSAGE_TYPE_BINARYSTRING);
348
- }
349
- }, rawArgs, callbackContext);
350
- }
351
- else if (action.equals("write")) {
352
- threadhelper( new FileOp( ){
353
- public void run(JSONArray args) throws JSONException, FileNotFoundException, IOException, NoModificationAllowedException {
354
- String fname=args.getString(0);
355
- String nativeURL = resolveLocalFileSystemURI(fname).getString("nativeURL");
356
- String data=args.getString(1);
357
- int offset=args.getInt(2);
358
- Boolean isBinary=args.getBoolean(3);
359
-
360
- if(needPermission(nativeURL, WRITE)) {
361
- getWritePermission(rawArgs, ACTION_WRITE, callbackContext);
362
- }
363
- else {
364
- long fileSize = write(fname, data, offset, isBinary);
365
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, fileSize));
366
- }
367
-
368
- }
369
- }, rawArgs, callbackContext);
370
- }
371
- else if (action.equals("truncate")) {
372
- threadhelper( new FileOp( ){
373
- public void run(JSONArray args) throws JSONException, FileNotFoundException, IOException, NoModificationAllowedException {
374
- String fname=args.getString(0);
375
- int offset=args.getInt(1);
376
- long fileSize = truncateFile(fname, offset);
377
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.OK, fileSize));
378
- }
379
- }, rawArgs, callbackContext);
380
- }
381
- else if (action.equals("requestAllFileSystems")) {
382
- threadhelper( new FileOp( ){
383
- public void run(JSONArray args) throws IOException, JSONException {
384
- callbackContext.success(requestAllFileSystems());
385
- }
386
- }, rawArgs, callbackContext);
387
- } else if (action.equals("requestAllPaths")) {
388
- cordova.getThreadPool().execute(
389
- new Runnable() {
390
- public void run() {
391
- try {
392
- callbackContext.success(requestAllPaths());
393
- } catch (JSONException e) {
394
- // TODO Auto-generated catch block
395
- e.printStackTrace();
396
- }
397
- }
398
- }
399
- );
400
- } else if (action.equals("requestFileSystem")) {
401
- threadhelper( new FileOp( ){
402
- public void run(JSONArray args) throws JSONException {
403
- int fstype = args.getInt(0);
404
- long requiredSize = args.optLong(1);
405
- requestFileSystem(fstype, requiredSize, callbackContext);
406
- }
407
- }, rawArgs, callbackContext);
408
- }
409
- else if (action.equals("resolveLocalFileSystemURI")) {
410
- threadhelper( new FileOp( ){
411
- public void run(JSONArray args) throws IOException, JSONException {
412
- String fname=args.getString(0);
413
- JSONObject obj = resolveLocalFileSystemURI(fname);
414
- callbackContext.success(obj);
415
- }
416
- }, rawArgs, callbackContext);
417
- }
418
- else if (action.equals("getFileMetadata")) {
419
- threadhelper( new FileOp( ){
420
- public void run(JSONArray args) throws FileNotFoundException, JSONException, MalformedURLException {
421
- String fname=args.getString(0);
422
- JSONObject obj = getFileMetadata(fname);
423
- callbackContext.success(obj);
424
- }
425
- }, rawArgs, callbackContext);
426
- }
427
- else if (action.equals("getParent")) {
428
- threadhelper( new FileOp( ){
429
- public void run(JSONArray args) throws JSONException, IOException {
430
- String fname=args.getString(0);
431
- JSONObject obj = getParent(fname);
432
- callbackContext.success(obj);
433
- }
434
- }, rawArgs, callbackContext);
435
- }
436
- else if (action.equals("getDirectory")) {
437
- threadhelper( new FileOp( ){
438
- public void run(JSONArray args) throws FileExistsException, IOException, TypeMismatchException, EncodingException, JSONException {
439
- String dirname = args.getString(0);
440
- String path = args.getString(1);
441
- String nativeURL = resolveLocalFileSystemURI(dirname).getString("nativeURL");
442
- boolean containsCreate = (args.isNull(2)) ? false : args.getJSONObject(2).optBoolean("create", false);
443
-
444
- if(containsCreate && needPermission(nativeURL, WRITE)) {
445
- getWritePermission(rawArgs, ACTION_GET_DIRECTORY, callbackContext);
446
- }
447
- else if(!containsCreate && needPermission(nativeURL, READ)) {
448
- getReadPermission(rawArgs, ACTION_GET_DIRECTORY, callbackContext);
449
- }
450
- else {
451
- JSONObject obj = getFile(dirname, path, args.optJSONObject(2), true);
452
- callbackContext.success(obj);
453
- }
454
- }
455
- }, rawArgs, callbackContext);
456
- }
457
- else if (action.equals("getFile")) {
458
- threadhelper( new FileOp( ){
459
- public void run(JSONArray args) throws FileExistsException, IOException, TypeMismatchException, EncodingException, JSONException {
460
- String dirname = args.getString(0);
461
- String path = args.getString(1);
462
- String nativeURL = resolveLocalFileSystemURI(dirname).getString("nativeURL");
463
- boolean containsCreate = (args.isNull(2)) ? false : args.getJSONObject(2).optBoolean("create", false);
464
-
465
- if(containsCreate && needPermission(nativeURL, WRITE)) {
466
- getWritePermission(rawArgs, ACTION_GET_FILE, callbackContext);
467
- }
468
- else if(!containsCreate && needPermission(nativeURL, READ)) {
469
- getReadPermission(rawArgs, ACTION_GET_FILE, callbackContext);
470
- }
471
- else {
472
- JSONObject obj = getFile(dirname, path, args.optJSONObject(2), false);
473
- callbackContext.success(obj);
474
- }
475
- }
476
- }, rawArgs, callbackContext);
477
- }
478
- else if (action.equals("remove")) {
479
- threadhelper( new FileOp( ){
480
- public void run(JSONArray args) throws JSONException, NoModificationAllowedException, InvalidModificationException, MalformedURLException {
481
- String fname=args.getString(0);
482
- boolean success = remove(fname);
483
- if (success) {
484
- callbackContext.success();
485
- } else {
486
- callbackContext.error(FileUtils.NO_MODIFICATION_ALLOWED_ERR);
487
- }
488
- }
489
- }, rawArgs, callbackContext);
490
- }
491
- else if (action.equals("removeRecursively")) {
492
- threadhelper( new FileOp( ){
493
- public void run(JSONArray args) throws JSONException, FileExistsException, MalformedURLException, NoModificationAllowedException {
494
- String fname=args.getString(0);
495
- boolean success = removeRecursively(fname);
496
- if (success) {
497
- callbackContext.success();
498
- } else {
499
- callbackContext.error(FileUtils.NO_MODIFICATION_ALLOWED_ERR);
500
- }
501
- }
502
- }, rawArgs, callbackContext);
503
- }
504
- else if (action.equals("moveTo")) {
505
- threadhelper( new FileOp( ){
506
- public void run(JSONArray args) throws JSONException, NoModificationAllowedException, IOException, InvalidModificationException, EncodingException, FileExistsException {
507
- String fname=args.getString(0);
508
- String newParent=args.getString(1);
509
- String newName=args.getString(2);
510
- JSONObject entry = transferTo(fname, newParent, newName, true);
511
- callbackContext.success(entry);
512
- }
513
- }, rawArgs, callbackContext);
514
- }
515
- else if (action.equals("copyTo")) {
516
- threadhelper( new FileOp( ){
517
- public void run(JSONArray args) throws JSONException, NoModificationAllowedException, IOException, InvalidModificationException, EncodingException, FileExistsException {
518
- String fname=args.getString(0);
519
- String newParent=args.getString(1);
520
- String newName=args.getString(2);
521
- JSONObject entry = transferTo(fname, newParent, newName, false);
522
- callbackContext.success(entry);
523
- }
524
- }, rawArgs, callbackContext);
525
- }
526
- else if (action.equals("readEntries")) {
527
- threadhelper( new FileOp( ){
528
- public void run(JSONArray args) throws FileNotFoundException, JSONException, MalformedURLException {
529
- String fname=args.getString(0);
530
- JSONArray entries = readEntries(fname);
531
- callbackContext.success(entries);
532
- }
533
- }, rawArgs, callbackContext);
534
- }
535
- else if (action.equals("_getLocalFilesystemPath")) {
536
- // Internal method for testing: Get the on-disk location of a local filesystem url.
537
- // [Currently used for testing file-transfer]
538
- threadhelper( new FileOp( ){
539
- public void run(JSONArray args) throws FileNotFoundException, JSONException, MalformedURLException {
540
- String localURLstr = args.getString(0);
541
- String fname = filesystemPathForURL(localURLstr);
542
- callbackContext.success(fname);
543
- }
544
- }, rawArgs, callbackContext);
545
- }
546
- else {
547
- return false;
548
- }
549
- return true;
550
- }
551
-
552
- private void getReadPermission(String rawArgs, int action, CallbackContext callbackContext) {
553
- int requestCode = pendingRequests.createRequest(rawArgs, action, callbackContext);
554
- PermissionHelper.requestPermission(this, requestCode, Manifest.permission.READ_EXTERNAL_STORAGE);
555
- }
556
-
557
- private void getWritePermission(String rawArgs, int action, CallbackContext callbackContext) {
558
- int requestCode = pendingRequests.createRequest(rawArgs, action, callbackContext);
559
- PermissionHelper.requestPermission(this, requestCode, Manifest.permission.WRITE_EXTERNAL_STORAGE);
560
- }
561
-
562
- private boolean hasReadPermission() {
563
- return PermissionHelper.hasPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);
564
- }
565
-
566
- private boolean hasWritePermission() {
567
- return PermissionHelper.hasPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);
568
- }
569
-
570
- private boolean needPermission(String nativeURL, int permissionType) throws JSONException {
571
- JSONObject j = requestAllPaths();
572
- ArrayList<String> allowedStorageDirectories = new ArrayList<String>();
573
- allowedStorageDirectories.add(j.getString("applicationDirectory"));
574
- allowedStorageDirectories.add(j.getString("applicationStorageDirectory"));
575
- if(j.has("externalApplicationStorageDirectory")) {
576
- allowedStorageDirectories.add(j.getString("externalApplicationStorageDirectory"));
577
- }
578
-
579
- if(permissionType == READ && hasReadPermission()) {
580
- return false;
581
- }
582
- else if(permissionType == WRITE && hasWritePermission()) {
583
- return false;
584
- }
585
-
586
- // Permission required if the native url lies outside the allowed storage directories
587
- for(String directory : allowedStorageDirectories) {
588
- if(nativeURL.startsWith(directory)) {
589
- return false;
590
- }
591
- }
592
- return true;
593
- }
594
-
595
-
596
- public LocalFilesystemURL resolveNativeUri(Uri nativeUri) {
597
- LocalFilesystemURL localURL = null;
598
-
599
- // Try all installed filesystems. Return the best matching URL
600
- // (determined by the shortest resulting URL)
601
- for (Filesystem fs : filesystems) {
602
- LocalFilesystemURL url = fs.toLocalUri(nativeUri);
603
- if (url != null) {
604
- // A shorter fullPath implies that the filesystem is a better
605
- // match for the local path than the previous best.
606
- if (localURL == null || (url.uri.toString().length() < localURL.toString().length())) {
607
- localURL = url;
608
- }
609
- }
610
- }
611
- return localURL;
612
- }
613
-
614
- /*
615
- * These two native-only methods can be used by other plugins to translate between
616
- * device file system paths and URLs. By design, there is no direct JavaScript
617
- * interface to these methods.
618
- */
619
-
620
- public String filesystemPathForURL(String localURLstr) throws MalformedURLException {
621
- try {
622
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(localURLstr);
623
- Filesystem fs = this.filesystemForURL(inputURL);
624
- if (fs == null) {
625
- throw new MalformedURLException("No installed handlers for this URL");
626
- }
627
- return fs.filesystemPathForURL(inputURL);
628
- } catch (IllegalArgumentException e) {
629
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
630
- mue.initCause(e);
631
- throw mue;
632
- }
633
- }
634
-
635
- public LocalFilesystemURL filesystemURLforLocalPath(String localPath) {
636
- LocalFilesystemURL localURL = null;
637
- int shortestFullPath = 0;
638
-
639
- // Try all installed filesystems. Return the best matching URL
640
- // (determined by the shortest resulting URL)
641
- for (Filesystem fs: filesystems) {
642
- LocalFilesystemURL url = fs.URLforFilesystemPath(localPath);
643
- if (url != null) {
644
- // A shorter fullPath implies that the filesystem is a better
645
- // match for the local path than the previous best.
646
- if (localURL == null || (url.path.length() < shortestFullPath)) {
647
- localURL = url;
648
- shortestFullPath = url.path.length();
649
- }
650
- }
651
- }
652
- return localURL;
653
- }
654
-
655
-
656
- /* helper to execute functions async and handle the result codes
657
- *
658
- */
659
- private void threadhelper(final FileOp f, final String rawArgs, final CallbackContext callbackContext){
660
- cordova.getThreadPool().execute(new Runnable() {
661
- public void run() {
662
- try {
663
- JSONArray args = new JSONArray(rawArgs);
664
- f.run(args);
665
- } catch ( Exception e) {
666
- if( e instanceof EncodingException){
667
- callbackContext.error(FileUtils.ENCODING_ERR);
668
- } else if(e instanceof FileNotFoundException) {
669
- callbackContext.error(FileUtils.NOT_FOUND_ERR);
670
- } else if(e instanceof FileExistsException) {
671
- callbackContext.error(FileUtils.PATH_EXISTS_ERR);
672
- } else if(e instanceof NoModificationAllowedException ) {
673
- callbackContext.error(FileUtils.NO_MODIFICATION_ALLOWED_ERR);
674
- } else if(e instanceof InvalidModificationException ) {
675
- callbackContext.error(FileUtils.INVALID_MODIFICATION_ERR);
676
- } else if(e instanceof MalformedURLException ) {
677
- callbackContext.error(FileUtils.ENCODING_ERR);
678
- } else if(e instanceof IOException ) {
679
- callbackContext.error(FileUtils.INVALID_MODIFICATION_ERR);
680
- } else if(e instanceof EncodingException ) {
681
- callbackContext.error(FileUtils.ENCODING_ERR);
682
- } else if(e instanceof TypeMismatchException ) {
683
- callbackContext.error(FileUtils.TYPE_MISMATCH_ERR);
684
- } else if(e instanceof JSONException ) {
685
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.JSON_EXCEPTION));
686
- } else if (e instanceof SecurityException) {
687
- callbackContext.error(FileUtils.SECURITY_ERR);
688
- } else {
689
- e.printStackTrace();
690
- callbackContext.error(FileUtils.UNKNOWN_ERR);
691
- }
692
- }
693
- }
694
- });
695
- }
696
-
697
- /**
698
- * Allows the user to look up the Entry for a file or directory referred to by a local URI.
699
- *
700
- * @param uriString of the file/directory to look up
701
- * @return a JSONObject representing a Entry from the filesystem
702
- * @throws MalformedURLException if the url is not valid
703
- * @throws FileNotFoundException if the file does not exist
704
- * @throws IOException if the user can't read the file
705
- * @throws JSONException
706
- */
707
- private JSONObject resolveLocalFileSystemURI(String uriString) throws IOException, JSONException {
708
- if (uriString == null) {
709
- throw new MalformedURLException("Unrecognized filesystem URL");
710
- }
711
- Uri uri = Uri.parse(uriString);
712
- boolean isNativeUri = false;
713
-
714
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(uri);
715
- if (inputURL == null) {
716
- /* Check for file://, content:// urls */
717
- inputURL = resolveNativeUri(uri);
718
- isNativeUri = true;
719
- }
720
-
721
- try {
722
- Filesystem fs = this.filesystemForURL(inputURL);
723
- if (fs == null) {
724
- throw new MalformedURLException("No installed handlers for this URL");
725
- }
726
- if (fs.exists(inputURL)) {
727
- if (!isNativeUri) {
728
- // If not already resolved as native URI, resolve to a native URI and back to
729
- // fix the terminating slash based on whether the entry is a directory or file.
730
- inputURL = fs.toLocalUri(fs.toNativeUri(inputURL));
731
- }
732
-
733
- return fs.getEntryForLocalURL(inputURL);
734
- }
735
- } catch (IllegalArgumentException e) {
736
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
737
- mue.initCause(e);
738
- throw mue;
739
- }
740
- throw new FileNotFoundException();
741
- }
742
-
743
- /**
744
- * Read the list of files from this directory.
745
- *
746
- * @return a JSONArray containing JSONObjects that represent Entry objects.
747
- * @throws FileNotFoundException if the directory is not found.
748
- * @throws JSONException
749
- * @throws MalformedURLException
750
- */
751
- private JSONArray readEntries(String baseURLstr) throws FileNotFoundException, JSONException, MalformedURLException {
752
- try {
753
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(baseURLstr);
754
- Filesystem fs = this.filesystemForURL(inputURL);
755
- if (fs == null) {
756
- throw new MalformedURLException("No installed handlers for this URL");
757
- }
758
- return fs.readEntriesAtLocalURL(inputURL);
759
-
760
- } catch (IllegalArgumentException e) {
761
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
762
- mue.initCause(e);
763
- throw mue;
764
- }
765
- }
766
-
767
- /**
768
- * A setup method that handles the move/copy of files/directories
769
- *
770
- * @param newName for the file directory to be called, if null use existing file name
771
- * @param move if false do a copy, if true do a move
772
- * @return a Entry object
773
- * @throws NoModificationAllowedException
774
- * @throws IOException
775
- * @throws InvalidModificationException
776
- * @throws EncodingException
777
- * @throws JSONException
778
- * @throws FileExistsException
779
- */
780
- private JSONObject transferTo(String srcURLstr, String destURLstr, String newName, boolean move) throws JSONException, NoModificationAllowedException, IOException, InvalidModificationException, EncodingException, FileExistsException {
781
- if (srcURLstr == null || destURLstr == null) {
782
- // either no source or no destination provided
783
- throw new FileNotFoundException();
784
- }
785
-
786
- LocalFilesystemURL srcURL = LocalFilesystemURL.parse(srcURLstr);
787
- LocalFilesystemURL destURL = LocalFilesystemURL.parse(destURLstr);
788
-
789
- Filesystem srcFs = this.filesystemForURL(srcURL);
790
- Filesystem destFs = this.filesystemForURL(destURL);
791
-
792
- // Check for invalid file name
793
- if (newName != null && newName.contains(":")) {
794
- throw new EncodingException("Bad file name");
795
- }
796
-
797
- return destFs.copyFileToURL(destURL, newName, srcFs, srcURL, move);
798
- }
799
-
800
- /**
801
- * Deletes a directory and all of its contents, if any. In the event of an error
802
- * [e.g. trying to delete a directory that contains a file that cannot be removed],
803
- * some of the contents of the directory may be deleted.
804
- * It is an error to attempt to delete the root directory of a filesystem.
805
- *
806
- * @return a boolean representing success of failure
807
- * @throws FileExistsException
808
- * @throws NoModificationAllowedException
809
- * @throws MalformedURLException
810
- */
811
- private boolean removeRecursively(String baseURLstr) throws FileExistsException, NoModificationAllowedException, MalformedURLException {
812
- try {
813
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(baseURLstr);
814
- // You can't delete the root directory.
815
- if ("".equals(inputURL.path) || "/".equals(inputURL.path)) {
816
- throw new NoModificationAllowedException("You can't delete the root directory");
817
- }
818
-
819
- Filesystem fs = this.filesystemForURL(inputURL);
820
- if (fs == null) {
821
- throw new MalformedURLException("No installed handlers for this URL");
822
- }
823
- return fs.recursiveRemoveFileAtLocalURL(inputURL);
824
-
825
- } catch (IllegalArgumentException e) {
826
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
827
- mue.initCause(e);
828
- throw mue;
829
- }
830
- }
831
-
832
-
833
- /**
834
- * Deletes a file or directory. It is an error to attempt to delete a directory that is not empty.
835
- * It is an error to attempt to delete the root directory of a filesystem.
836
- *
837
- * @return a boolean representing success of failure
838
- * @throws NoModificationAllowedException
839
- * @throws InvalidModificationException
840
- * @throws MalformedURLException
841
- */
842
- private boolean remove(String baseURLstr) throws NoModificationAllowedException, InvalidModificationException, MalformedURLException {
843
- try {
844
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(baseURLstr);
845
- // You can't delete the root directory.
846
- if ("".equals(inputURL.path) || "/".equals(inputURL.path)) {
847
-
848
- throw new NoModificationAllowedException("You can't delete the root directory");
849
- }
850
-
851
- Filesystem fs = this.filesystemForURL(inputURL);
852
- if (fs == null) {
853
- throw new MalformedURLException("No installed handlers for this URL");
854
- }
855
- return fs.removeFileAtLocalURL(inputURL);
856
-
857
- } catch (IllegalArgumentException e) {
858
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
859
- mue.initCause(e);
860
- throw mue;
861
- }
862
- }
863
-
864
- /**
865
- * Creates or looks up a file.
866
- *
867
- * @param baseURLstr base directory
868
- * @param path file/directory to lookup or create
869
- * @param options specify whether to create or not
870
- * @param directory if true look up directory, if false look up file
871
- * @return a Entry object
872
- * @throws FileExistsException
873
- * @throws IOException
874
- * @throws TypeMismatchException
875
- * @throws EncodingException
876
- * @throws JSONException
877
- */
878
- private JSONObject getFile(String baseURLstr, String path, JSONObject options, boolean directory) throws FileExistsException, IOException, TypeMismatchException, EncodingException, JSONException {
879
- try {
880
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(baseURLstr);
881
- Filesystem fs = this.filesystemForURL(inputURL);
882
- if (fs == null) {
883
- throw new MalformedURLException("No installed handlers for this URL");
884
- }
885
- return fs.getFileForLocalURL(inputURL, path, options, directory);
886
-
887
- } catch (IllegalArgumentException e) {
888
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
889
- mue.initCause(e);
890
- throw mue;
891
- }
892
-
893
- }
894
-
895
- /**
896
- * Look up the parent DirectoryEntry containing this Entry.
897
- * If this Entry is the root of its filesystem, its parent is itself.
898
- */
899
- private JSONObject getParent(String baseURLstr) throws JSONException, IOException {
900
- try {
901
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(baseURLstr);
902
- Filesystem fs = this.filesystemForURL(inputURL);
903
- if (fs == null) {
904
- throw new MalformedURLException("No installed handlers for this URL");
905
- }
906
- return fs.getParentForLocalURL(inputURL);
907
-
908
- } catch (IllegalArgumentException e) {
909
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
910
- mue.initCause(e);
911
- throw mue;
912
- }
913
- }
914
-
915
- /**
916
- * Returns a File that represents the current state of the file that this FileEntry represents.
917
- *
918
- * @return returns a JSONObject represent a W3C File object
919
- */
920
- private JSONObject getFileMetadata(String baseURLstr) throws FileNotFoundException, JSONException, MalformedURLException {
921
- try {
922
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(baseURLstr);
923
- Filesystem fs = this.filesystemForURL(inputURL);
924
- if (fs == null) {
925
- throw new MalformedURLException("No installed handlers for this URL");
926
- }
927
- return fs.getFileMetadataForLocalURL(inputURL);
928
-
929
- } catch (IllegalArgumentException e) {
930
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
931
- mue.initCause(e);
932
- throw mue;
933
- }
934
- }
935
-
936
- /**
937
- * Requests a filesystem in which to store application data.
938
- *
939
- * @param type of file system requested
940
- * @param requiredSize required free space in the file system in bytes
941
- * @param callbackContext context for returning the result or error
942
- * @throws JSONException
943
- */
944
- private void requestFileSystem(int type, long requiredSize, final CallbackContext callbackContext) throws JSONException {
945
- Filesystem rootFs = null;
946
- try {
947
- rootFs = this.filesystems.get(type);
948
- } catch (ArrayIndexOutOfBoundsException e) {
949
- // Pass null through
950
- }
951
- if (rootFs == null) {
952
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, FileUtils.NOT_FOUND_ERR));
953
- } else {
954
- // If a nonzero required size was specified, check that the retrieved filesystem has enough free space.
955
- long availableSize = 0;
956
- if (requiredSize > 0) {
957
- availableSize = rootFs.getFreeSpaceInBytes();
958
- }
959
-
960
- if (availableSize < requiredSize) {
961
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.ERROR, FileUtils.QUOTA_EXCEEDED_ERR));
962
- } else {
963
- JSONObject fs = new JSONObject();
964
- fs.put("name", rootFs.name);
965
- fs.put("root", rootFs.getRootEntry());
966
- callbackContext.success(fs);
967
- }
968
- }
969
- }
970
-
971
- /**
972
- * Requests a filesystem in which to store application data.
973
- *
974
- * @return a JSONObject representing the file system
975
- */
976
- private JSONArray requestAllFileSystems() throws IOException, JSONException {
977
- JSONArray ret = new JSONArray();
978
- for (Filesystem fs : filesystems) {
979
- ret.put(fs.getRootEntry());
980
- }
981
- return ret;
982
- }
983
-
984
- private static String toDirUrl(File f) {
985
- return Uri.fromFile(f).toString() + '/';
986
- }
987
-
988
- private JSONObject requestAllPaths() throws JSONException {
989
- Context context = cordova.getActivity();
990
- JSONObject ret = new JSONObject();
991
- ret.put("applicationDirectory", "file:///android_asset/");
992
- ret.put("applicationStorageDirectory", toDirUrl(context.getFilesDir().getParentFile()));
993
- ret.put("dataDirectory", toDirUrl(context.getFilesDir()));
994
- ret.put("cacheDirectory", toDirUrl(context.getCacheDir()));
995
- if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
996
- try {
997
- ret.put("externalApplicationStorageDirectory", toDirUrl(context.getExternalFilesDir(null).getParentFile()));
998
- ret.put("externalDataDirectory", toDirUrl(context.getExternalFilesDir(null)));
999
- ret.put("externalCacheDirectory", toDirUrl(context.getExternalCacheDir()));
1000
- ret.put("externalRootDirectory", toDirUrl(Environment.getExternalStorageDirectory()));
1001
- }
1002
- catch(NullPointerException e) {
1003
- /* If external storage is unavailable, context.getExternal* returns null */
1004
- LOG.d(LOG_TAG, "Unable to access these paths, most liklely due to USB storage");
1005
- }
1006
- }
1007
- return ret;
1008
- }
1009
-
1010
- /**
1011
- * Returns a JSON object representing the given File. Internal APIs should be modified
1012
- * to use URLs instead of raw FS paths wherever possible, when interfacing with this plugin.
1013
- *
1014
- * @param file the File to convert
1015
- * @return a JSON representation of the given File
1016
- * @throws JSONException
1017
- */
1018
- public JSONObject getEntryForFile(File file) throws JSONException {
1019
- JSONObject entry;
1020
-
1021
- for (Filesystem fs : filesystems) {
1022
- entry = fs.makeEntryForFile(file);
1023
- if (entry != null) {
1024
- return entry;
1025
- }
1026
- }
1027
- return null;
1028
- }
1029
-
1030
- /**
1031
- * Returns a JSON object representing the given File. Deprecated, as this is only used by
1032
- * FileTransfer, and because it is a static method that should really be an instance method,
1033
- * since it depends on the actual filesystem roots in use. Internal APIs should be modified
1034
- * to use URLs instead of raw FS paths wherever possible, when interfacing with this plugin.
1035
- *
1036
- * @param file the File to convert
1037
- * @return a JSON representation of the given File
1038
- * @throws JSONException
1039
- */
1040
- @Deprecated
1041
- public static JSONObject getEntry(File file) throws JSONException {
1042
- if (getFilePlugin() != null) {
1043
- return getFilePlugin().getEntryForFile(file);
1044
- }
1045
- return null;
1046
- }
1047
-
1048
- /**
1049
- * Read the contents of a file.
1050
- * This is done in a background thread; the result is sent to the callback.
1051
- *
1052
- * @param start Start position in the file.
1053
- * @param end End position to stop at (exclusive).
1054
- * @param callbackContext The context through which to send the result.
1055
- * @param encoding The encoding to return contents as. Typical value is UTF-8. (see http://www.iana.org/assignments/character-sets)
1056
- * @param resultType The desired type of data to send to the callback.
1057
- * @return Contents of file.
1058
- */
1059
- public void readFileAs(final String srcURLstr, final int start, final int end, final CallbackContext callbackContext, final String encoding, final int resultType) throws MalformedURLException {
1060
- try {
1061
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(srcURLstr);
1062
- Filesystem fs = this.filesystemForURL(inputURL);
1063
- if (fs == null) {
1064
- throw new MalformedURLException("No installed handlers for this URL");
1065
- }
1066
-
1067
- fs.readFileAtURL(inputURL, start, end, new Filesystem.ReadFileCallback() {
1068
- public void handleData(InputStream inputStream, String contentType) {
1069
- try {
1070
- ByteArrayOutputStream os = new ByteArrayOutputStream();
1071
- final int BUFFER_SIZE = 8192;
1072
- byte[] buffer = new byte[BUFFER_SIZE];
1073
-
1074
- for (;;) {
1075
- int bytesRead = inputStream.read(buffer, 0, BUFFER_SIZE);
1076
-
1077
- if (bytesRead <= 0) {
1078
- break;
1079
- }
1080
- os.write(buffer, 0, bytesRead);
1081
- }
1082
-
1083
- PluginResult result;
1084
- switch (resultType) {
1085
- case PluginResult.MESSAGE_TYPE_STRING:
1086
- result = new PluginResult(PluginResult.Status.OK, os.toString(encoding));
1087
- break;
1088
- case PluginResult.MESSAGE_TYPE_ARRAYBUFFER:
1089
- result = new PluginResult(PluginResult.Status.OK, os.toByteArray());
1090
- break;
1091
- case PluginResult.MESSAGE_TYPE_BINARYSTRING:
1092
- result = new PluginResult(PluginResult.Status.OK, os.toByteArray(), true);
1093
- break;
1094
- default: // Base64.
1095
- byte[] base64 = Base64.encode(os.toByteArray(), Base64.NO_WRAP);
1096
- String s = "data:" + contentType + ";base64," + new String(base64, "US-ASCII");
1097
- result = new PluginResult(PluginResult.Status.OK, s);
1098
- }
1099
-
1100
- callbackContext.sendPluginResult(result);
1101
- } catch (IOException e) {
1102
- LOG.d(LOG_TAG, e.getLocalizedMessage());
1103
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.IO_EXCEPTION, NOT_READABLE_ERR));
1104
- }
1105
- }
1106
- });
1107
-
1108
-
1109
- } catch (IllegalArgumentException e) {
1110
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
1111
- mue.initCause(e);
1112
- throw mue;
1113
- } catch (FileNotFoundException e) {
1114
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.IO_EXCEPTION, NOT_FOUND_ERR));
1115
- } catch (IOException e) {
1116
- LOG.d(LOG_TAG, e.getLocalizedMessage());
1117
- callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.IO_EXCEPTION, NOT_READABLE_ERR));
1118
- }
1119
- }
1120
-
1121
-
1122
- /**
1123
- * Write contents of file.
1124
- *
1125
- * @param data The contents of the file.
1126
- * @param offset The position to begin writing the file.
1127
- * @param isBinary True if the file contents are base64-encoded binary data
1128
- */
1129
- /**/
1130
- public long write(String srcURLstr, String data, int offset, boolean isBinary) throws FileNotFoundException, IOException, NoModificationAllowedException {
1131
- try {
1132
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(srcURLstr);
1133
- Filesystem fs = this.filesystemForURL(inputURL);
1134
- if (fs == null) {
1135
- throw new MalformedURLException("No installed handlers for this URL");
1136
- }
1137
-
1138
- long x = fs.writeToFileAtURL(inputURL, data, offset, isBinary); LOG.d("TEST",srcURLstr + ": "+x); return x;
1139
- } catch (IllegalArgumentException e) {
1140
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
1141
- mue.initCause(e);
1142
- throw mue;
1143
- }
1144
-
1145
- }
1146
-
1147
- /**
1148
- * Truncate the file to size
1149
- */
1150
- private long truncateFile(String srcURLstr, long size) throws FileNotFoundException, IOException, NoModificationAllowedException {
1151
- try {
1152
- LocalFilesystemURL inputURL = LocalFilesystemURL.parse(srcURLstr);
1153
- Filesystem fs = this.filesystemForURL(inputURL);
1154
- if (fs == null) {
1155
- throw new MalformedURLException("No installed handlers for this URL");
1156
- }
1157
-
1158
- return fs.truncateFileAtURL(inputURL, size);
1159
- } catch (IllegalArgumentException e) {
1160
- MalformedURLException mue = new MalformedURLException("Unrecognized filesystem URL");
1161
- mue.initCause(e);
1162
- throw mue;
1163
- }
1164
- }
1165
-
1166
-
1167
- /*
1168
- * Handle the response
1169
- */
1170
-
1171
- public void onRequestPermissionResult(int requestCode, String[] permissions,
1172
- int[] grantResults) throws JSONException {
1173
-
1174
- final PendingRequests.Request req = pendingRequests.getAndRemove(requestCode);
1175
- if (req != null) {
1176
- for(int r:grantResults)
1177
- {
1178
- if(r == PackageManager.PERMISSION_DENIED)
1179
- {
1180
- req.getCallbackContext().sendPluginResult(new PluginResult(PluginResult.Status.ERROR, SECURITY_ERR));
1181
- return;
1182
- }
1183
- }
1184
- switch(req.getAction())
1185
- {
1186
- case ACTION_GET_FILE:
1187
- threadhelper( new FileOp( ){
1188
- public void run(JSONArray args) throws FileExistsException, IOException, TypeMismatchException, EncodingException, JSONException {
1189
- String dirname = args.getString(0);
1190
-
1191
- String path = args.getString(1);
1192
- JSONObject obj = getFile(dirname, path, args.optJSONObject(2), false);
1193
- req.getCallbackContext().success(obj);
1194
- }
1195
- }, req.getRawArgs(), req.getCallbackContext());
1196
- break;
1197
- case ACTION_GET_DIRECTORY:
1198
- threadhelper( new FileOp( ){
1199
- public void run(JSONArray args) throws FileExistsException, IOException, TypeMismatchException, EncodingException, JSONException {
1200
- String dirname = args.getString(0);
1201
-
1202
- String path = args.getString(1);
1203
- JSONObject obj = getFile(dirname, path, args.optJSONObject(2), true);
1204
- req.getCallbackContext().success(obj);
1205
- }
1206
- }, req.getRawArgs(), req.getCallbackContext());
1207
- break;
1208
- case ACTION_WRITE:
1209
- threadhelper( new FileOp( ){
1210
- public void run(JSONArray args) throws JSONException, FileNotFoundException, IOException, NoModificationAllowedException {
1211
- String fname=args.getString(0);
1212
- String data=args.getString(1);
1213
- int offset=args.getInt(2);
1214
- Boolean isBinary=args.getBoolean(3);
1215
- long fileSize = write(fname, data, offset, isBinary);
1216
- req.getCallbackContext().sendPluginResult(new PluginResult(PluginResult.Status.OK, fileSize));
1217
- }
1218
- }, req.getRawArgs(), req.getCallbackContext());
1219
- break;
1220
- }
1221
- } else {
1222
- LOG.d(LOG_TAG, "Received permission callback for unknown request code");
1223
- }
1224
- }
1225
- }