capacitor-secure-storage-plugin 0.6.2 → 0.6.4-testing

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 (230) hide show
  1. package/CapacitorSecureStoragePlugin.podspec +12 -7
  2. package/README.md +2 -2
  3. package/android/build.gradle +13 -7
  4. package/android/src/main/AndroidManifest.xml +3 -5
  5. package/android/src/main/java/com/whitestein/securestorage/{SecureStoragePlugin.java → SecureStoragePluginPlugin.java} +31 -15
  6. package/android/{.gradle/5.6.4/gc.properties → src/main/res/.gitkeep} +0 -0
  7. package/dist/docs.json +93 -0
  8. package/dist/esm/definitions.js +1 -0
  9. package/dist/esm/definitions.js.map +1 -1
  10. package/dist/esm/index.js +1 -1
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/esm/web.d.ts +2 -4
  13. package/dist/esm/web.js +15 -11
  14. package/dist/esm/web.js.map +1 -1
  15. package/dist/plugin.cjs.js +64 -0
  16. package/dist/plugin.cjs.js.map +1 -0
  17. package/dist/plugin.js +67 -0
  18. package/dist/plugin.js.map +1 -0
  19. package/ios/Plugin/{Plugin.h → SecureStoragePluginPlugin.h} +0 -0
  20. package/ios/Plugin/{Plugin.m → SecureStoragePluginPlugin.m} +0 -0
  21. package/ios/Plugin/{Plugin.swift → SecureStoragePluginPlugin.swift} +18 -9
  22. package/package.json +56 -29
  23. package/android/.gitignore +0 -72
  24. package/android/.gradle/5.6.4/executionHistory/executionHistory.bin +0 -0
  25. package/android/.gradle/5.6.4/executionHistory/executionHistory.lock +0 -0
  26. package/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
  27. package/android/.gradle/5.6.4/fileContent/fileContent.lock +0 -0
  28. package/android/.gradle/5.6.4/fileHashes/fileHashes.bin +0 -0
  29. package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
  30. package/android/.gradle/5.6.4/fileHashes/resourceHashesCache.bin +0 -0
  31. package/android/.gradle/5.6.4/javaCompile/classAnalysis.bin +0 -0
  32. package/android/.gradle/5.6.4/javaCompile/jarAnalysis.bin +0 -0
  33. package/android/.gradle/5.6.4/javaCompile/javaCompile.lock +0 -0
  34. package/android/.gradle/5.6.4/javaCompile/taskHistory.bin +0 -0
  35. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  36. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  37. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  38. package/android/.gradle/vcs-1/gc.properties +0 -0
  39. package/android/.idea/.gitignore +0 -3
  40. package/android/.idea/compiler.xml +0 -6
  41. package/android/.idea/gradle.xml +0 -20
  42. package/android/.idea/jarRepositories.xml +0 -30
  43. package/android/.idea/libraries/Gradle__androidx_activity_activity_1_2_0_aar.xml +0 -16
  44. package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0.xml +0 -13
  45. package/android/.idea/libraries/Gradle__androidx_annotation_annotation_experimental_1_0_0_aar.xml +0 -13
  46. package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_2_0_aar.xml +0 -16
  47. package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_resources_1_2_0_aar.xml +0 -13
  48. package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0.xml +0 -11
  49. package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_1_0_aar.xml +0 -13
  50. package/android/.idea/libraries/Gradle__androidx_collection_collection_1_1_0.xml +0 -11
  51. package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml +0 -16
  52. package/android/.idea/libraries/Gradle__androidx_core_core_1_3_2_aar.xml +0 -16
  53. package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +0 -13
  54. package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +0 -13
  55. package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +0 -16
  56. package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_3_0_aar.xml +0 -16
  57. package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +0 -13
  58. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_3_0.xml +0 -11
  59. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +0 -13
  60. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_3_0_aar.xml +0 -13
  61. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_3_0_aar.xml +0 -13
  62. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_3_0_aar.xml +0 -13
  63. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_savedstate_2_3_0_aar.xml +0 -13
  64. package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +0 -13
  65. package/android/.idea/libraries/Gradle__androidx_savedstate_savedstate_1_1_0_aar.xml +0 -13
  66. package/android/.idea/libraries/Gradle__androidx_test_core_1_2_0_aar.xml +0 -15
  67. package/android/.idea/libraries/Gradle__androidx_test_espresso_espresso_core_3_2_0_aar.xml +0 -15
  68. package/android/.idea/libraries/Gradle__androidx_test_espresso_espresso_idling_resource_3_2_0_aar.xml +0 -15
  69. package/android/.idea/libraries/Gradle__androidx_test_ext_junit_1_1_1_aar.xml +0 -15
  70. package/android/.idea/libraries/Gradle__androidx_test_monitor_1_2_0_aar.xml +0 -15
  71. package/android/.idea/libraries/Gradle__androidx_test_runner_1_2_0_aar.xml +0 -15
  72. package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml +0 -13
  73. package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml +0 -13
  74. package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml +0 -13
  75. package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +0 -13
  76. package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1.xml +0 -9
  77. package/android/.idea/libraries/Gradle__com_squareup_javawriter_2_1_1.xml +0 -13
  78. package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +0 -13
  79. package/android/.idea/libraries/Gradle__junit_junit_4_12.xml +0 -13
  80. package/android/.idea/libraries/Gradle__net_bytebuddy_byte_buddy_1_10_18.xml +0 -13
  81. package/android/.idea/libraries/Gradle__net_bytebuddy_byte_buddy_agent_1_10_18.xml +0 -13
  82. package/android/.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0.xml +0 -13
  83. package/android/.idea/libraries/Gradle__org_apache_cordova_framework_7_0_0_aar.xml +0 -13
  84. package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml +0 -13
  85. package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3.xml +0 -13
  86. package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3.xml +0 -13
  87. package/android/.idea/libraries/Gradle__org_json_json_20140107.xml +0 -13
  88. package/android/.idea/libraries/Gradle__org_mockito_mockito_core_3_6_28.xml +0 -13
  89. package/android/.idea/libraries/Gradle__org_mockito_mockito_inline_3_6_28.xml +0 -13
  90. package/android/.idea/libraries/Gradle__org_objenesis_objenesis_3_1.xml +0 -13
  91. package/android/.idea/misc.xml +0 -9
  92. package/android/.idea/modules/1586507569/android.capacitor-android.iml +0 -93
  93. package/android/.idea/modules/android.iml +0 -65
  94. package/android/.idea/modules.xml +0 -9
  95. package/android/.idea/runConfigurations.xml +0 -10
  96. package/android/.idea/vcs.xml +0 -6
  97. package/android/.npmignore +0 -1
  98. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  99. package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
  100. package/android/gradle.properties +0 -21
  101. package/android/gradlew +0 -160
  102. package/android/gradlew.bat +0 -90
  103. package/android/local.properties +0 -8
  104. package/android/proguard-rules.pro +0 -21
  105. package/android/settings.gradle +0 -2
  106. package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +0 -121
  107. package/android/src/main/res/layout/bridge_layout_main.xml +0 -15
  108. package/android/src/main/res/values/colors.xml +0 -3
  109. package/android/src/main/res/values/strings.xml +0 -3
  110. package/android/src/main/res/values/styles.xml +0 -3
  111. package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +0 -17
  112. package/ios/Plugin.xcodeproj/project.pbxproj +0 -735
  113. package/ios/Plugin.xcodeproj/xcshareddata/xcschemes/Plugin.xcscheme +0 -77
  114. package/ios/Plugin.xcodeproj/xcshareddata/xcschemes/TestApp.xcscheme +0 -88
  115. package/ios/Plugin.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/xcschememanagement.plist +0 -37
  116. package/ios/Plugin.xcworkspace/contents.xcworkspacedata +0 -10
  117. package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  118. package/ios/Plugin.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -5
  119. package/ios/Plugin.xcworkspace/xcuserdata/mka.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  120. package/ios/Plugin.xcworkspace/xcuserdata/mka.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -24
  121. package/ios/PluginTests/Info.plist +0 -22
  122. package/ios/PluginTests/PluginTests.swift +0 -245
  123. package/ios/Podfile +0 -18
  124. package/ios/Podfile.lock +0 -29
  125. package/ios/Pods/CapacitorCordova/LICENSE +0 -23
  126. package/ios/Pods/CapacitorCordova/README.md +0 -37
  127. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/CapacitorCordova.h +0 -21
  128. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.h +0 -8
  129. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.m +0 -5
  130. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDV.h +0 -28
  131. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVAvailability.h +0 -109
  132. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegate.h +0 -51
  133. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegateImpl.h +0 -39
  134. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegateImpl.m +0 -154
  135. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVConfigParser.h +0 -31
  136. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVConfigParser.m +0 -81
  137. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVInvokedUrlCommand.h +0 -52
  138. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVInvokedUrlCommand.m +0 -116
  139. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.h +0 -81
  140. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.m +0 -154
  141. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h +0 -25
  142. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.m +0 -77
  143. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginResult.h +0 -82
  144. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginResult.m +0 -216
  145. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVScreenOrientationDelegate.h +0 -33
  146. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUIWebViewDelegate.h +0 -41
  147. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUIWebViewDelegate.m +0 -399
  148. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.h +0 -27
  149. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.m +0 -74
  150. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.h +0 -27
  151. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.m +0 -156
  152. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.h +0 -30
  153. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.m +0 -34
  154. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/NSDictionary+CordovaPreferences.h +0 -35
  155. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/NSDictionary+CordovaPreferences.m +0 -63
  156. package/ios/Pods/Local Podspecs/Capacitor.podspec.json +0 -34
  157. package/ios/Pods/Local Podspecs/CapacitorCordova.podspec.json +0 -26
  158. package/ios/Pods/Manifest.lock +0 -29
  159. package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -1512
  160. package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/Capacitor.xcscheme +0 -58
  161. package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +0 -58
  162. package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +0 -58
  163. package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +0 -58
  164. package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/SwiftKeychainWrapper.xcscheme +0 -58
  165. package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/xcschememanagement.plist +0 -36
  166. package/ios/Pods/SwiftKeychainWrapper/LICENSE +0 -22
  167. package/ios/Pods/SwiftKeychainWrapper/README.md +0 -168
  168. package/ios/Pods/SwiftKeychainWrapper/SwiftKeychainWrapper/KeychainItemAccessibility.swift +0 -123
  169. package/ios/Pods/SwiftKeychainWrapper/SwiftKeychainWrapper/KeychainWrapper.swift +0 -447
  170. package/ios/Pods/SwiftKeychainWrapper/SwiftKeychainWrapper/SwiftKeychainWrapper.h +0 -37
  171. package/ios/Pods/Target Support Files/Capacitor/Capacitor-Info.plist +0 -26
  172. package/ios/Pods/Target Support Files/Capacitor/Capacitor-dummy.m +0 -5
  173. package/ios/Pods/Target Support Files/Capacitor/Capacitor-prefix.pch +0 -12
  174. package/ios/Pods/Target Support Files/Capacitor/Capacitor-umbrella.h +0 -23
  175. package/ios/Pods/Target Support Files/Capacitor/Capacitor.debug.xcconfig +0 -13
  176. package/ios/Pods/Target Support Files/Capacitor/Capacitor.modulemap +0 -7
  177. package/ios/Pods/Target Support Files/Capacitor/Capacitor.release.xcconfig +0 -13
  178. package/ios/Pods/Target Support Files/Capacitor/Capacitor.xcconfig +0 -10
  179. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist +0 -26
  180. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-dummy.m +0 -5
  181. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-prefix.pch +0 -12
  182. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-umbrella.h +0 -33
  183. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.debug.xcconfig +0 -12
  184. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.modulemap +0 -6
  185. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.release.xcconfig +0 -12
  186. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.xcconfig +0 -9
  187. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-Info.plist +0 -26
  188. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.markdown +0 -83
  189. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.plist +0 -127
  190. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-dummy.m +0 -5
  191. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-umbrella.h +0 -16
  192. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig +0 -13
  193. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.modulemap +0 -6
  194. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig +0 -13
  195. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-Info.plist +0 -26
  196. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.markdown +0 -83
  197. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.plist +0 -127
  198. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-dummy.m +0 -5
  199. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +0 -189
  200. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-umbrella.h +0 -16
  201. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig +0 -14
  202. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.modulemap +0 -6
  203. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig +0 -14
  204. package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper-Info.plist +0 -26
  205. package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper-dummy.m +0 -5
  206. package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper-prefix.pch +0 -12
  207. package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper-umbrella.h +0 -17
  208. package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper.debug.xcconfig +0 -12
  209. package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper.modulemap +0 -6
  210. package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper.release.xcconfig +0 -12
  211. package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper.xcconfig +0 -9
  212. package/ios/TestApp/AppDelegate.swift +0 -37
  213. package/ios/TestApp/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
  214. package/ios/TestApp/Assets.xcassets/Contents.json +0 -6
  215. package/ios/TestApp/Base.lproj/LaunchScreen.storyboard +0 -25
  216. package/ios/TestApp/Base.lproj/Main.storyboard +0 -24
  217. package/ios/TestApp/ContentView.swift +0 -21
  218. package/ios/TestApp/Info.plist +0 -60
  219. package/ios/TestApp/Preview Content/Preview Assets.xcassets/Contents.json +0 -6
  220. package/ios/TestApp/SceneDelegate.swift +0 -64
  221. package/ios/TestApp/TestApp/AppDelegate.swift +0 -46
  222. package/ios/TestApp/TestApp/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
  223. package/ios/TestApp/TestApp/Assets.xcassets/Contents.json +0 -6
  224. package/ios/TestApp/TestApp/Base.lproj/LaunchScreen.storyboard +0 -25
  225. package/ios/TestApp/TestApp/Base.lproj/Main.storyboard +0 -24
  226. package/ios/TestApp/TestApp/Info.plist +0 -45
  227. package/ios/TestApp/TestApp/TestApp.entitlements +0 -10
  228. package/ios/TestApp/TestApp/ViewController.swift +0 -20
  229. package/ios/TestApp/TestApp.entitlements +0 -8
  230. package/ios/TestApp/ViewController.swift +0 -20
@@ -1,156 +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
-
20
- #import "CDVUserAgentUtil.h"
21
-
22
- #import <UIKit/UIKit.h>
23
-
24
- // #define VerboseLog NSLog
25
- #define VerboseLog(...) do {} while (0)
26
-
27
- static NSString* const kCdvUserAgentKey = @"Cordova-User-Agent";
28
- static NSString* const kCdvUserAgentVersionKey = @"Cordova-User-Agent-Version";
29
-
30
- static NSString* gOriginalUserAgent = nil;
31
- static NSInteger gNextLockToken = 0;
32
- static NSInteger gCurrentLockToken = 0;
33
- static NSMutableArray* gPendingSetUserAgentBlocks = nil;
34
-
35
- #import <WebKit/WebKit.h>
36
-
37
- @interface WKWebView(SynchronousEvaluateJavaScript)
38
- - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script;
39
- @end
40
-
41
- @implementation WKWebView(SynchronousEvaluateJavaScript)
42
-
43
- - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script
44
- {
45
- __block NSString *resultString = nil;
46
- __block BOOL finished = NO;
47
-
48
- [self evaluateJavaScript:script completionHandler:^(id result, NSError *error) {
49
- if (error == nil) {
50
- if (result != nil) {
51
- resultString = [NSString stringWithFormat:@"%@", result];
52
- }
53
- } else {
54
- NSLog(@"evaluateJavaScript error : %@", error.localizedDescription);
55
- }
56
- finished = YES;
57
- }];
58
-
59
- while (!finished) {
60
- [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
61
- }
62
-
63
- return resultString;
64
- }
65
- @end
66
-
67
- @implementation CDVUserAgentUtil
68
-
69
- + (NSString*)originalUserAgent
70
- {
71
- if (gOriginalUserAgent == nil) {
72
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onAppLocaleDidChange:)
73
- name:NSCurrentLocaleDidChangeNotification object:nil];
74
-
75
- NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
76
- NSString* systemVersion = [[UIDevice currentDevice] systemVersion];
77
- NSString* localeStr = [[NSLocale currentLocale] localeIdentifier];
78
- // Record the model since simulator can change it without re-install (CB-5420).
79
- NSString* model = [UIDevice currentDevice].model;
80
- // Record the version of the app so that we can bust the cache when it changes (CB-10078)
81
- NSString* appVersion = [[NSBundle mainBundle] infoDictionary][@"CFBundleVersion"];
82
- NSString* systemAndLocale = [NSString stringWithFormat:@"%@ %@ %@ %@", appVersion, model, systemVersion, localeStr];
83
-
84
- NSString* cordovaUserAgentVersion = [userDefaults stringForKey:kCdvUserAgentVersionKey];
85
- gOriginalUserAgent = [userDefaults stringForKey:kCdvUserAgentKey];
86
- BOOL cachedValueIsOld = ![systemAndLocale isEqualToString:cordovaUserAgentVersion];
87
-
88
- if ((gOriginalUserAgent == nil) || cachedValueIsOld) {
89
- WKWebView* sampleWebView = [[WKWebView alloc] initWithFrame:CGRectZero];
90
- gOriginalUserAgent = [sampleWebView stringByEvaluatingJavaScriptFromString:@"navigator.userAgent"];
91
-
92
- [userDefaults setObject:gOriginalUserAgent forKey:kCdvUserAgentKey];
93
- [userDefaults setObject:systemAndLocale forKey:kCdvUserAgentVersionKey];
94
-
95
- [userDefaults synchronize];
96
- }
97
- }
98
- return gOriginalUserAgent;
99
- }
100
-
101
- + (void)onAppLocaleDidChange:(NSNotification*)notification
102
- {
103
- // TODO: We should figure out how to update the user-agent of existing UIWebViews when this happens.
104
- // Maybe use the PDF bug (noted in setUserAgent:).
105
- gOriginalUserAgent = nil;
106
- }
107
-
108
- + (void)acquireLock:(void (^)(NSInteger lockToken))block
109
- {
110
- if (gCurrentLockToken == 0) {
111
- gCurrentLockToken = ++gNextLockToken;
112
- VerboseLog(@"Gave lock %d", gCurrentLockToken);
113
- block(gCurrentLockToken);
114
- } else {
115
- if (gPendingSetUserAgentBlocks == nil) {
116
- gPendingSetUserAgentBlocks = [[NSMutableArray alloc] initWithCapacity:4];
117
- }
118
- VerboseLog(@"Waiting for lock");
119
- [gPendingSetUserAgentBlocks addObject:block];
120
- }
121
- }
122
-
123
- + (void)releaseLock:(NSInteger*)lockToken
124
- {
125
- if (lockToken == nil || *lockToken == 0) {
126
- return;
127
- }
128
- NSAssert(gCurrentLockToken == *lockToken, @"Got token %ld, expected %ld", (long)*lockToken, (long)gCurrentLockToken);
129
-
130
- VerboseLog(@"Released lock %d", *lockToken);
131
- if ([gPendingSetUserAgentBlocks count] > 0) {
132
- void (^block)(NSInteger lockToken) = [gPendingSetUserAgentBlocks objectAtIndex:0];
133
- [gPendingSetUserAgentBlocks removeObjectAtIndex:0];
134
- gCurrentLockToken = ++gNextLockToken;
135
- NSLog(@"Gave lock %ld", (long)gCurrentLockToken);
136
- block(gCurrentLockToken);
137
- } else {
138
- gCurrentLockToken = 0;
139
- }
140
- *lockToken = 0;
141
- }
142
-
143
- + (void)setUserAgent:(NSString*)value lockToken:(NSInteger)lockToken
144
- {
145
- NSAssert(gCurrentLockToken == lockToken, @"Got token %ld, expected %ld", (long)lockToken, (long)gCurrentLockToken);
146
- VerboseLog(@"User-Agent set to: %@", value);
147
-
148
- // Setting the UserAgent must occur before a UIWebView is instantiated.
149
- // It is read per instantiation, so it does not affect previously created views.
150
- // Except! When a PDF is loaded, all currently active UIWebViews reload their
151
- // User-Agent from the NSUserDefaults some time after the DidFinishLoad of the PDF bah!
152
- NSDictionary* dict = [[NSDictionary alloc] initWithObjectsAndKeys:value, @"UserAgent", nil];
153
- [[NSUserDefaults standardUserDefaults] registerDefaults:dict];
154
- }
155
-
156
- @end
@@ -1,30 +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
-
20
- #import <UIKit/UIKit.h>
21
-
22
- @interface CDVViewController : UIViewController
23
-
24
- @property (nonatomic, readonly, strong) NSMutableDictionary* pluginObjects;
25
- @property (nonatomic, readonly, strong) NSMutableDictionary* settings;
26
- @property (nonatomic, readonly, weak) UIView* webView;
27
-
28
- - (id) getCommandInstance:(NSString*)className;
29
-
30
- @end
@@ -1,34 +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
-
20
-
21
- #import "CDVViewController.h"
22
-
23
- @interface CDVViewController () {
24
-
25
- }
26
-
27
-
28
- @property (nonatomic, readwrite, strong) NSMutableDictionary* pluginObjects;
29
-
30
- @end
31
-
32
- @implementation CDVViewController
33
-
34
- @end
@@ -1,35 +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
-
20
- #import <Foundation/Foundation.h>
21
- #import <UIKit/UIKit.h>
22
-
23
- @interface NSDictionary (CordovaPreferences)
24
-
25
- - (id)cordovaSettingForKey:(NSString*)key;
26
- - (BOOL)cordovaBoolSettingForKey:(NSString*)key defaultValue:(BOOL)defaultValue;
27
- - (CGFloat)cordovaFloatSettingForKey:(NSString*)key defaultValue:(CGFloat)defaultValue;
28
-
29
- @end
30
-
31
- @interface NSMutableDictionary (CordovaPreferences)
32
-
33
- - (void)setCordovaSetting:(id)value forKey:(NSString*)key;
34
-
35
- @end
@@ -1,63 +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
-
20
- #import "NSDictionary+CordovaPreferences.h"
21
- #import <Foundation/Foundation.h>
22
-
23
- @implementation NSDictionary (CordovaPreferences)
24
-
25
- - (id)cordovaSettingForKey:(NSString*)key
26
- {
27
- return [self objectForKey:[key lowercaseString]];
28
- }
29
-
30
- - (BOOL)cordovaBoolSettingForKey:(NSString*)key defaultValue:(BOOL)defaultValue
31
- {
32
- BOOL value = defaultValue;
33
- id prefObj = [self cordovaSettingForKey:key];
34
-
35
- if (prefObj != nil) {
36
- value = [(NSNumber*)prefObj boolValue];
37
- }
38
-
39
- return value;
40
- }
41
-
42
- - (CGFloat)cordovaFloatSettingForKey:(NSString*)key defaultValue:(CGFloat)defaultValue
43
- {
44
- CGFloat value = defaultValue;
45
- id prefObj = [self cordovaSettingForKey:key];
46
-
47
- if (prefObj != nil) {
48
- value = [prefObj floatValue];
49
- }
50
-
51
- return value;
52
- }
53
-
54
- @end
55
-
56
- @implementation NSMutableDictionary (CordovaPreferences)
57
-
58
- - (void)setCordovaSetting:(id)value forKey:(NSString*)key
59
- {
60
- [self setObject:value forKey:[key lowercaseString]];
61
- }
62
-
63
- @end
@@ -1,34 +0,0 @@
1
- {
2
- "name": "Capacitor",
3
- "version": "3.0.0",
4
- "summary": "Capacitor for iOS",
5
- "social_media_url": "https://twitter.com/capacitorjs",
6
- "license": "MIT",
7
- "homepage": "https://capacitorjs.com/",
8
- "platforms": {
9
- "ios": "12.0"
10
- },
11
- "authors": {
12
- "Ionic Team": "hi@ionicframework.com"
13
- },
14
- "source": {
15
- "git": "https://github.com/ionic-team/capacitor.git",
16
- "tag": "3.0.0"
17
- },
18
- "source_files": [
19
- "Capacitor/Capacitor/*.{swift,h,m}",
20
- "Capacitor/Capacitor/Plugins/*.{swift,h,m}",
21
- "Capacitor/Capacitor/Plugins/**/*.{swift,h,m}"
22
- ],
23
- "module_map": "Capacitor/Capacitor/Capacitor.modulemap",
24
- "resources": [
25
- "Capacitor/Capacitor/assets/native-bridge.js"
26
- ],
27
- "dependencies": {
28
- "CapacitorCordova": [
29
-
30
- ]
31
- },
32
- "swift_versions": "5.0",
33
- "swift_version": "5.0"
34
- }
@@ -1,26 +0,0 @@
1
- {
2
- "name": "CapacitorCordova",
3
- "module_name": "Cordova",
4
- "version": "3.0.0",
5
- "summary": "Capacitor Cordova Compatibility Layer",
6
- "homepage": "https://capacitorjs.com",
7
- "license": "MIT",
8
- "authors": {
9
- "Ionic Team": "hi@ionicframework.com"
10
- },
11
- "source": {
12
- "git": "https://github.com/ionic-team/capacitor",
13
- "tag": "3.0.0"
14
- },
15
- "platforms": {
16
- "ios": "12.0"
17
- },
18
- "source_files": "CapacitorCordova/**/*.{h,m}",
19
- "public_header_files": [
20
- "CapacitorCordova/CapacitorCordova/Classes/Public/*.h",
21
- "CapacitorCordova/CapacitorCordova/CapacitorCordova.h"
22
- ],
23
- "module_map": "CapacitorCordova/CapacitorCordova/CapacitorCordova.modulemap",
24
- "requires_arc": true,
25
- "frameworks": "WebKit"
26
- }
@@ -1,29 +0,0 @@
1
- PODS:
2
- - Capacitor (3.0.0):
3
- - CapacitorCordova
4
- - CapacitorCordova (3.0.0)
5
- - SwiftKeychainWrapper (3.4.0)
6
-
7
- DEPENDENCIES:
8
- - "Capacitor (from `../node_modules/@capacitor/ios`)"
9
- - "CapacitorCordova (from `../node_modules/@capacitor/ios`)"
10
- - SwiftKeychainWrapper
11
-
12
- SPEC REPOS:
13
- trunk:
14
- - SwiftKeychainWrapper
15
-
16
- EXTERNAL SOURCES:
17
- Capacitor:
18
- :path: "../node_modules/@capacitor/ios"
19
- CapacitorCordova:
20
- :path: "../node_modules/@capacitor/ios"
21
-
22
- SPEC CHECKSUMS:
23
- Capacitor: 06cd8cd01340f5b162e9528bf5569d87a6f29009
24
- CapacitorCordova: 183c8d1af3851da6d7a371f273462c8e64e15464
25
- SwiftKeychainWrapper: 6fc49fbf7d4a6b0772917acb0e53a1639f6078d6
26
-
27
- PODFILE CHECKSUM: db9972afd50043dc6a117f3ac5e91dadc73303ea
28
-
29
- COCOAPODS: 1.10.1