capacitor-secure-storage-plugin 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/CapacitorSecureStoragePlugin.podspec +12 -7
- package/README.md +6 -5
- package/android/build.gradle +13 -7
- package/android/src/main/AndroidManifest.xml +3 -5
- package/android/src/main/java/com/whitestein/securestorage/{SecureStoragePlugin.java → SecureStoragePluginPlugin.java} +31 -15
- package/android/{.gradle/5.6.4/gc.properties → src/main/res/.gitkeep} +0 -0
- package/dist/docs.json +93 -0
- package/dist/esm/definitions.js +1 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +2 -4
- package/dist/esm/web.js +15 -11
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +64 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +67 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Plugin/{Plugin.h → SecureStoragePluginPlugin.h} +0 -0
- package/ios/Plugin/{Plugin.m → SecureStoragePluginPlugin.m} +0 -0
- package/ios/Plugin/{Plugin.swift → SecureStoragePluginPlugin.swift} +18 -9
- package/package.json +56 -29
- package/android/.gitignore +0 -72
- package/android/.gradle/5.6.4/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/5.6.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
- package/android/.gradle/5.6.4/fileContent/fileContent.lock +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.6.4/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/5.6.4/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/5.6.4/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/5.6.4/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/5.6.4/javaCompile/taskHistory.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/.gitignore +0 -3
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -20
- package/android/.idea/jarRepositories.xml +0 -30
- package/android/.idea/libraries/Gradle__androidx_activity_activity_1_2_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_experimental_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_2_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_resources_1_2_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_1_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_core_core_1_3_2_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_3_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_3_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_3_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_3_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_3_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_savedstate_2_3_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_savedstate_savedstate_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_test_core_1_2_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__androidx_test_espresso_espresso_core_3_2_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__androidx_test_espresso_espresso_idling_resource_3_2_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__androidx_test_ext_junit_1_1_1_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__androidx_test_monitor_1_2_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__androidx_test_runner_1_2_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_2_0_1.xml +0 -9
- package/android/.idea/libraries/Gradle__com_squareup_javawriter_2_1_1.xml +0 -13
- package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +0 -13
- package/android/.idea/libraries/Gradle__junit_junit_4_12.xml +0 -13
- package/android/.idea/libraries/Gradle__net_bytebuddy_byte_buddy_1_10_18.xml +0 -13
- package/android/.idea/libraries/Gradle__net_bytebuddy_byte_buddy_agent_1_10_18.xml +0 -13
- package/android/.idea/libraries/Gradle__net_sf_kxml_kxml2_2_3_0.xml +0 -13
- package/android/.idea/libraries/Gradle__org_apache_cordova_framework_7_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml +0 -13
- package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_integration_1_3.xml +0 -13
- package/android/.idea/libraries/Gradle__org_hamcrest_hamcrest_library_1_3.xml +0 -13
- package/android/.idea/libraries/Gradle__org_json_json_20140107.xml +0 -13
- package/android/.idea/libraries/Gradle__org_mockito_mockito_core_3_6_28.xml +0 -13
- package/android/.idea/libraries/Gradle__org_mockito_mockito_inline_3_6_28.xml +0 -13
- package/android/.idea/libraries/Gradle__org_objenesis_objenesis_3_1.xml +0 -13
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/modules/1586507569/android.capacitor-android.iml +0 -93
- package/android/.idea/modules/android.iml +0 -65
- package/android/.idea/modules.xml +0 -9
- package/android/.idea/runConfigurations.xml +0 -10
- package/android/.idea/vcs.xml +0 -6
- package/android/.npmignore +0 -1
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/android/gradle.properties +0 -21
- package/android/gradlew +0 -160
- package/android/gradlew.bat +0 -90
- package/android/local.properties +0 -8
- package/android/proguard-rules.pro +0 -21
- package/android/settings.gradle +0 -2
- package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +0 -121
- package/android/src/main/res/layout/bridge_layout_main.xml +0 -15
- package/android/src/main/res/values/colors.xml +0 -3
- package/android/src/main/res/values/strings.xml +0 -3
- package/android/src/main/res/values/styles.xml +0 -3
- package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +0 -17
- package/ios/Plugin.xcodeproj/project.pbxproj +0 -735
- package/ios/Plugin.xcodeproj/xcshareddata/xcschemes/Plugin.xcscheme +0 -77
- package/ios/Plugin.xcodeproj/xcshareddata/xcschemes/TestApp.xcscheme +0 -88
- package/ios/Plugin.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/xcschememanagement.plist +0 -37
- package/ios/Plugin.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Plugin.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -5
- package/ios/Plugin.xcworkspace/xcuserdata/mka.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Plugin.xcworkspace/xcuserdata/mka.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +0 -24
- package/ios/PluginTests/Info.plist +0 -22
- package/ios/PluginTests/PluginTests.swift +0 -245
- package/ios/Podfile +0 -18
- package/ios/Podfile.lock +0 -29
- package/ios/Pods/CapacitorCordova/LICENSE +0 -23
- package/ios/Pods/CapacitorCordova/README.md +0 -37
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/CapacitorCordova.h +0 -21
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.h +0 -8
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.m +0 -5
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDV.h +0 -28
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVAvailability.h +0 -109
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegate.h +0 -51
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegateImpl.h +0 -39
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegateImpl.m +0 -154
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVConfigParser.h +0 -31
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVConfigParser.m +0 -81
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVInvokedUrlCommand.h +0 -52
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVInvokedUrlCommand.m +0 -116
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.h +0 -81
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.m +0 -154
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h +0 -25
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.m +0 -77
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginResult.h +0 -82
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginResult.m +0 -216
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVScreenOrientationDelegate.h +0 -33
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUIWebViewDelegate.h +0 -41
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUIWebViewDelegate.m +0 -399
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.h +0 -27
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.m +0 -74
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.h +0 -27
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.m +0 -156
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.h +0 -30
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.m +0 -34
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/NSDictionary+CordovaPreferences.h +0 -35
- package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/NSDictionary+CordovaPreferences.m +0 -63
- package/ios/Pods/Local Podspecs/Capacitor.podspec.json +0 -34
- package/ios/Pods/Local Podspecs/CapacitorCordova.podspec.json +0 -26
- package/ios/Pods/Manifest.lock +0 -29
- package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -1512
- package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/Capacitor.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/SwiftKeychainWrapper.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/mka.xcuserdatad/xcschemes/xcschememanagement.plist +0 -36
- package/ios/Pods/SwiftKeychainWrapper/LICENSE +0 -22
- package/ios/Pods/SwiftKeychainWrapper/README.md +0 -168
- package/ios/Pods/SwiftKeychainWrapper/SwiftKeychainWrapper/KeychainItemAccessibility.swift +0 -123
- package/ios/Pods/SwiftKeychainWrapper/SwiftKeychainWrapper/KeychainWrapper.swift +0 -447
- package/ios/Pods/SwiftKeychainWrapper/SwiftKeychainWrapper/SwiftKeychainWrapper.h +0 -37
- package/ios/Pods/Target Support Files/Capacitor/Capacitor-Info.plist +0 -26
- package/ios/Pods/Target Support Files/Capacitor/Capacitor-dummy.m +0 -5
- package/ios/Pods/Target Support Files/Capacitor/Capacitor-prefix.pch +0 -12
- package/ios/Pods/Target Support Files/Capacitor/Capacitor-umbrella.h +0 -23
- package/ios/Pods/Target Support Files/Capacitor/Capacitor.debug.xcconfig +0 -13
- package/ios/Pods/Target Support Files/Capacitor/Capacitor.modulemap +0 -7
- package/ios/Pods/Target Support Files/Capacitor/Capacitor.release.xcconfig +0 -13
- package/ios/Pods/Target Support Files/Capacitor/Capacitor.xcconfig +0 -10
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist +0 -26
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-dummy.m +0 -5
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-prefix.pch +0 -12
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-umbrella.h +0 -33
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.debug.xcconfig +0 -12
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.modulemap +0 -6
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.release.xcconfig +0 -12
- package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.xcconfig +0 -9
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-Info.plist +0 -26
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.markdown +0 -83
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.plist +0 -127
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-dummy.m +0 -5
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-umbrella.h +0 -16
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig +0 -13
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.modulemap +0 -6
- package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig +0 -13
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-Info.plist +0 -26
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.markdown +0 -83
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.plist +0 -127
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-dummy.m +0 -5
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +0 -189
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-umbrella.h +0 -16
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig +0 -14
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.modulemap +0 -6
- package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig +0 -14
- package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper-Info.plist +0 -26
- package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper-dummy.m +0 -5
- package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper-prefix.pch +0 -12
- package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper-umbrella.h +0 -17
- package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper.debug.xcconfig +0 -12
- package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper.modulemap +0 -6
- package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper.release.xcconfig +0 -12
- package/ios/Pods/Target Support Files/SwiftKeychainWrapper/SwiftKeychainWrapper.xcconfig +0 -9
- package/ios/TestApp/AppDelegate.swift +0 -37
- package/ios/TestApp/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
- package/ios/TestApp/Assets.xcassets/Contents.json +0 -6
- package/ios/TestApp/Base.lproj/LaunchScreen.storyboard +0 -25
- package/ios/TestApp/Base.lproj/Main.storyboard +0 -24
- package/ios/TestApp/ContentView.swift +0 -21
- package/ios/TestApp/Info.plist +0 -60
- package/ios/TestApp/Preview Content/Preview Assets.xcassets/Contents.json +0 -6
- package/ios/TestApp/SceneDelegate.swift +0 -64
- package/ios/TestApp/TestApp/AppDelegate.swift +0 -46
- package/ios/TestApp/TestApp/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
- package/ios/TestApp/TestApp/Assets.xcassets/Contents.json +0 -6
- package/ios/TestApp/TestApp/Base.lproj/LaunchScreen.storyboard +0 -25
- package/ios/TestApp/TestApp/Base.lproj/Main.storyboard +0 -24
- package/ios/TestApp/TestApp/Info.plist +0 -45
- package/ios/TestApp/TestApp/TestApp.entitlements +0 -10
- package/ios/TestApp/TestApp/ViewController.swift +0 -20
- package/ios/TestApp/TestApp.entitlements +0 -8
- package/ios/TestApp/ViewController.swift +0 -20
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Scheme
|
|
3
|
-
LastUpgradeVersion = "1250"
|
|
4
|
-
version = "1.3">
|
|
5
|
-
<BuildAction
|
|
6
|
-
parallelizeBuildables = "YES"
|
|
7
|
-
buildImplicitDependencies = "YES">
|
|
8
|
-
<BuildActionEntries>
|
|
9
|
-
<BuildActionEntry
|
|
10
|
-
buildForTesting = "YES"
|
|
11
|
-
buildForRunning = "YES"
|
|
12
|
-
buildForProfiling = "YES"
|
|
13
|
-
buildForArchiving = "YES"
|
|
14
|
-
buildForAnalyzing = "YES">
|
|
15
|
-
<BuildableReference
|
|
16
|
-
BuildableIdentifier = "primary"
|
|
17
|
-
BlueprintIdentifier = "50ADFF87201F53D600D50D53"
|
|
18
|
-
BuildableName = "Plugin.framework"
|
|
19
|
-
BlueprintName = "Plugin"
|
|
20
|
-
ReferencedContainer = "container:Plugin.xcodeproj">
|
|
21
|
-
</BuildableReference>
|
|
22
|
-
</BuildActionEntry>
|
|
23
|
-
</BuildActionEntries>
|
|
24
|
-
</BuildAction>
|
|
25
|
-
<TestAction
|
|
26
|
-
buildConfiguration = "Debug"
|
|
27
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
-
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
-
<Testables>
|
|
31
|
-
<TestableReference
|
|
32
|
-
skipped = "NO">
|
|
33
|
-
<BuildableReference
|
|
34
|
-
BuildableIdentifier = "primary"
|
|
35
|
-
BlueprintIdentifier = "50ADFF90201F53D600D50D53"
|
|
36
|
-
BuildableName = "PluginTests.xctest"
|
|
37
|
-
BlueprintName = "PluginTests"
|
|
38
|
-
ReferencedContainer = "container:Plugin.xcodeproj">
|
|
39
|
-
</BuildableReference>
|
|
40
|
-
</TestableReference>
|
|
41
|
-
</Testables>
|
|
42
|
-
</TestAction>
|
|
43
|
-
<LaunchAction
|
|
44
|
-
buildConfiguration = "Debug"
|
|
45
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
46
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
47
|
-
launchStyle = "0"
|
|
48
|
-
useCustomWorkingDirectory = "NO"
|
|
49
|
-
ignoresPersistentStateOnLaunch = "NO"
|
|
50
|
-
debugDocumentVersioning = "YES"
|
|
51
|
-
debugServiceExtension = "internal"
|
|
52
|
-
allowLocationSimulation = "YES">
|
|
53
|
-
</LaunchAction>
|
|
54
|
-
<ProfileAction
|
|
55
|
-
buildConfiguration = "Release"
|
|
56
|
-
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
57
|
-
savedToolIdentifier = ""
|
|
58
|
-
useCustomWorkingDirectory = "NO"
|
|
59
|
-
debugDocumentVersioning = "YES">
|
|
60
|
-
<MacroExpansion>
|
|
61
|
-
<BuildableReference
|
|
62
|
-
BuildableIdentifier = "primary"
|
|
63
|
-
BlueprintIdentifier = "50ADFF87201F53D600D50D53"
|
|
64
|
-
BuildableName = "Plugin.framework"
|
|
65
|
-
BlueprintName = "Plugin"
|
|
66
|
-
ReferencedContainer = "container:Plugin.xcodeproj">
|
|
67
|
-
</BuildableReference>
|
|
68
|
-
</MacroExpansion>
|
|
69
|
-
</ProfileAction>
|
|
70
|
-
<AnalyzeAction
|
|
71
|
-
buildConfiguration = "Debug">
|
|
72
|
-
</AnalyzeAction>
|
|
73
|
-
<ArchiveAction
|
|
74
|
-
buildConfiguration = "Release"
|
|
75
|
-
revealArchiveInOrganizer = "YES">
|
|
76
|
-
</ArchiveAction>
|
|
77
|
-
</Scheme>
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Scheme
|
|
3
|
-
LastUpgradeVersion = "1250"
|
|
4
|
-
version = "1.3">
|
|
5
|
-
<BuildAction
|
|
6
|
-
parallelizeBuildables = "YES"
|
|
7
|
-
buildImplicitDependencies = "YES">
|
|
8
|
-
<BuildActionEntries>
|
|
9
|
-
<BuildActionEntry
|
|
10
|
-
buildForTesting = "YES"
|
|
11
|
-
buildForRunning = "YES"
|
|
12
|
-
buildForProfiling = "YES"
|
|
13
|
-
buildForArchiving = "YES"
|
|
14
|
-
buildForAnalyzing = "YES">
|
|
15
|
-
<BuildableReference
|
|
16
|
-
BuildableIdentifier = "primary"
|
|
17
|
-
BlueprintIdentifier = "4D5E30E724435502000C11C2"
|
|
18
|
-
BuildableName = "TestApp.app"
|
|
19
|
-
BlueprintName = "TestApp"
|
|
20
|
-
ReferencedContainer = "container:Plugin.xcodeproj">
|
|
21
|
-
</BuildableReference>
|
|
22
|
-
</BuildActionEntry>
|
|
23
|
-
</BuildActionEntries>
|
|
24
|
-
</BuildAction>
|
|
25
|
-
<TestAction
|
|
26
|
-
buildConfiguration = "Debug"
|
|
27
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
-
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
-
<Testables>
|
|
31
|
-
<TestableReference
|
|
32
|
-
skipped = "NO">
|
|
33
|
-
<BuildableReference
|
|
34
|
-
BuildableIdentifier = "primary"
|
|
35
|
-
BlueprintIdentifier = "50ADFF90201F53D600D50D53"
|
|
36
|
-
BuildableName = "PluginTests.xctest"
|
|
37
|
-
BlueprintName = "PluginTests"
|
|
38
|
-
ReferencedContainer = "container:Plugin.xcodeproj">
|
|
39
|
-
</BuildableReference>
|
|
40
|
-
</TestableReference>
|
|
41
|
-
</Testables>
|
|
42
|
-
</TestAction>
|
|
43
|
-
<LaunchAction
|
|
44
|
-
buildConfiguration = "Debug"
|
|
45
|
-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
46
|
-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
47
|
-
launchStyle = "0"
|
|
48
|
-
useCustomWorkingDirectory = "NO"
|
|
49
|
-
ignoresPersistentStateOnLaunch = "NO"
|
|
50
|
-
debugDocumentVersioning = "YES"
|
|
51
|
-
debugServiceExtension = "internal"
|
|
52
|
-
allowLocationSimulation = "YES">
|
|
53
|
-
<BuildableProductRunnable
|
|
54
|
-
runnableDebuggingMode = "0">
|
|
55
|
-
<BuildableReference
|
|
56
|
-
BuildableIdentifier = "primary"
|
|
57
|
-
BlueprintIdentifier = "4D5E30E724435502000C11C2"
|
|
58
|
-
BuildableName = "TestApp.app"
|
|
59
|
-
BlueprintName = "TestApp"
|
|
60
|
-
ReferencedContainer = "container:Plugin.xcodeproj">
|
|
61
|
-
</BuildableReference>
|
|
62
|
-
</BuildableProductRunnable>
|
|
63
|
-
</LaunchAction>
|
|
64
|
-
<ProfileAction
|
|
65
|
-
buildConfiguration = "Release"
|
|
66
|
-
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
67
|
-
savedToolIdentifier = ""
|
|
68
|
-
useCustomWorkingDirectory = "NO"
|
|
69
|
-
debugDocumentVersioning = "YES">
|
|
70
|
-
<BuildableProductRunnable
|
|
71
|
-
runnableDebuggingMode = "0">
|
|
72
|
-
<BuildableReference
|
|
73
|
-
BuildableIdentifier = "primary"
|
|
74
|
-
BlueprintIdentifier = "4D5E30E724435502000C11C2"
|
|
75
|
-
BuildableName = "TestApp.app"
|
|
76
|
-
BlueprintName = "TestApp"
|
|
77
|
-
ReferencedContainer = "container:Plugin.xcodeproj">
|
|
78
|
-
</BuildableReference>
|
|
79
|
-
</BuildableProductRunnable>
|
|
80
|
-
</ProfileAction>
|
|
81
|
-
<AnalyzeAction
|
|
82
|
-
buildConfiguration = "Debug">
|
|
83
|
-
</AnalyzeAction>
|
|
84
|
-
<ArchiveAction
|
|
85
|
-
buildConfiguration = "Release"
|
|
86
|
-
revealArchiveInOrganizer = "YES">
|
|
87
|
-
</ArchiveAction>
|
|
88
|
-
</Scheme>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>Plugin.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>6</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
<key>TestApp.xcscheme_^#shared#^_</key>
|
|
13
|
-
<dict>
|
|
14
|
-
<key>orderHint</key>
|
|
15
|
-
<integer>5</integer>
|
|
16
|
-
</dict>
|
|
17
|
-
</dict>
|
|
18
|
-
<key>SuppressBuildableAutocreation</key>
|
|
19
|
-
<dict>
|
|
20
|
-
<key>4D5E30E724435502000C11C2</key>
|
|
21
|
-
<dict>
|
|
22
|
-
<key>primary</key>
|
|
23
|
-
<true/>
|
|
24
|
-
</dict>
|
|
25
|
-
<key>50ADFF87201F53D600D50D53</key>
|
|
26
|
-
<dict>
|
|
27
|
-
<key>primary</key>
|
|
28
|
-
<true/>
|
|
29
|
-
</dict>
|
|
30
|
-
<key>50ADFF90201F53D600D50D53</key>
|
|
31
|
-
<dict>
|
|
32
|
-
<key>primary</key>
|
|
33
|
-
<true/>
|
|
34
|
-
</dict>
|
|
35
|
-
</dict>
|
|
36
|
-
</dict>
|
|
37
|
-
</plist>
|
|
Binary file
|
package/ios/Plugin.xcworkspace/xcuserdata/mka.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<Bucket
|
|
3
|
-
uuid = "213C2CF5-C233-4BD4-BF2C-1F7D72F5A89B"
|
|
4
|
-
type = "0"
|
|
5
|
-
version = "2.0">
|
|
6
|
-
<Breakpoints>
|
|
7
|
-
<BreakpointProxy
|
|
8
|
-
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
9
|
-
<BreakpointContent
|
|
10
|
-
uuid = "EF5F1BFD-7358-4BE8-8BF5-3D0EB33E2883"
|
|
11
|
-
shouldBeEnabled = "No"
|
|
12
|
-
ignoreCount = "0"
|
|
13
|
-
continueAfterRunningActions = "No"
|
|
14
|
-
filePath = "PluginTests/PluginTests.swift"
|
|
15
|
-
startingColumnNumber = "9223372036854775807"
|
|
16
|
-
endingColumnNumber = "9223372036854775807"
|
|
17
|
-
startingLineNumber = "7"
|
|
18
|
-
endingLineNumber = "7"
|
|
19
|
-
landmarkName = "PluginTests"
|
|
20
|
-
landmarkType = "3">
|
|
21
|
-
</BreakpointContent>
|
|
22
|
-
</BreakpointProxy>
|
|
23
|
-
</Breakpoints>
|
|
24
|
-
</Bucket>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
-
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
-
<key>CFBundleExecutable</key>
|
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
-
<key>CFBundleIdentifier</key>
|
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
-
<string>6.0</string>
|
|
13
|
-
<key>CFBundleName</key>
|
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
|
15
|
-
<key>CFBundlePackageType</key>
|
|
16
|
-
<string>BNDL</string>
|
|
17
|
-
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>1.0</string>
|
|
19
|
-
<key>CFBundleVersion</key>
|
|
20
|
-
<string>1</string>
|
|
21
|
-
</dict>
|
|
22
|
-
</plist>
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import XCTest
|
|
2
|
-
import Capacitor
|
|
3
|
-
import SwiftKeychainWrapper
|
|
4
|
-
|
|
5
|
-
@testable import Plugin
|
|
6
|
-
|
|
7
|
-
class PluginTests: XCTestCase {
|
|
8
|
-
|
|
9
|
-
func setupDedicatedWrapper() -> KeychainWrapper {
|
|
10
|
-
let wrapper = KeychainWrapper.init(serviceName: "cap_sec")
|
|
11
|
-
wrapper.removeAllKeys()
|
|
12
|
-
return wrapper
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
func testSet() {
|
|
16
|
-
let key = "key"
|
|
17
|
-
let value = "Hello, World!"
|
|
18
|
-
let valueModified = "Modified"
|
|
19
|
-
let keychainwrapper = setupDedicatedWrapper()
|
|
20
|
-
KeychainWrapper.standard.set(value, forKey: key)
|
|
21
|
-
|
|
22
|
-
let plugin = SecureStoragePlugin()
|
|
23
|
-
|
|
24
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
25
|
-
"key": key,
|
|
26
|
-
"value": valueModified
|
|
27
|
-
], success: { (result, call) in
|
|
28
|
-
let resultValue = result!.data?["value"] as? Bool
|
|
29
|
-
XCTAssertTrue(resultValue ?? false)
|
|
30
|
-
// dedicated keychain wrapper
|
|
31
|
-
let dedicatedValue = keychainwrapper.string(forKey: key)
|
|
32
|
-
XCTAssertEqual(valueModified, dedicatedValue)
|
|
33
|
-
// standard keychain wrapper should not be modified
|
|
34
|
-
let standardValue = KeychainWrapper.standard.string(forKey: key)
|
|
35
|
-
XCTAssertEqual(value, standardValue)
|
|
36
|
-
}, error: { (err) in
|
|
37
|
-
XCTFail("Error shouldn't have been called")
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
plugin.set(call!)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
func testGet() {
|
|
44
|
-
let key = "key"
|
|
45
|
-
let value = "Hello, World!"
|
|
46
|
-
let keychainwrapper = setupDedicatedWrapper()
|
|
47
|
-
keychainwrapper.set(value, forKey: key)
|
|
48
|
-
|
|
49
|
-
let plugin = SecureStoragePlugin()
|
|
50
|
-
|
|
51
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
52
|
-
"key": key
|
|
53
|
-
], success: { (result, call) in
|
|
54
|
-
let resultValue = result!.data?["value"] as? String
|
|
55
|
-
XCTAssertEqual(value, resultValue)
|
|
56
|
-
}, error: { (err) in
|
|
57
|
-
XCTFail("Error shouldn't have been called")
|
|
58
|
-
})
|
|
59
|
-
|
|
60
|
-
plugin.get(call!)
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
func testGetCopy() {
|
|
64
|
-
let key = "key"
|
|
65
|
-
let value = "Hello, World!"
|
|
66
|
-
let keychainwrapper = setupDedicatedWrapper()
|
|
67
|
-
|
|
68
|
-
KeychainWrapper.standard.set(value, forKey: key)
|
|
69
|
-
|
|
70
|
-
let plugin = SecureStoragePlugin()
|
|
71
|
-
|
|
72
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
73
|
-
"key": key
|
|
74
|
-
], success: { (result, call) in
|
|
75
|
-
let resultValue = result!.data?["value"] as? String
|
|
76
|
-
XCTAssertEqual(value, resultValue)
|
|
77
|
-
let dedicatedValue = keychainwrapper.string(forKey: key)
|
|
78
|
-
XCTAssertEqual(value, dedicatedValue)
|
|
79
|
-
let standardValue = KeychainWrapper.standard.string(forKey: key)
|
|
80
|
-
XCTAssertNil(standardValue)
|
|
81
|
-
}, error: { (err) in
|
|
82
|
-
XCTFail("Error shouldn't have been called")
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
plugin.get(call!)
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
func testKeys() {
|
|
89
|
-
let key = "key"
|
|
90
|
-
let value = "value"
|
|
91
|
-
|
|
92
|
-
let plugin = SecureStoragePlugin()
|
|
93
|
-
|
|
94
|
-
let keychainwrapper = setupDedicatedWrapper()
|
|
95
|
-
keychainwrapper.set(value, forKey: key)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
let callOne = CAPPluginCall(callbackId: "testOne", options: [
|
|
99
|
-
"key": key
|
|
100
|
-
], success: { (result, call) in
|
|
101
|
-
let resultValue = result!.data?["value"] as? Set<String>
|
|
102
|
-
XCTAssertEqual(1, resultValue!.count)
|
|
103
|
-
XCTAssertEqual(key, resultValue!.first)
|
|
104
|
-
}, error: { (err) in
|
|
105
|
-
XCTFail("Error shouldn't have been called")
|
|
106
|
-
})
|
|
107
|
-
plugin.keys(callOne!)
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
func testNonExistingGet() {
|
|
111
|
-
let key = "keyNonExisting"
|
|
112
|
-
|
|
113
|
-
let plugin = SecureStoragePlugin()
|
|
114
|
-
|
|
115
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
116
|
-
"key": key
|
|
117
|
-
], success: { (result, call) in
|
|
118
|
-
XCTFail("Error shouldn't have been called")
|
|
119
|
-
}, error: { (err) in
|
|
120
|
-
XCTAssertNotNil(err)
|
|
121
|
-
})
|
|
122
|
-
|
|
123
|
-
plugin.get(call!)
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
func testNonExistingRemoveBoth() {
|
|
127
|
-
let key = "keyNonExisting"
|
|
128
|
-
|
|
129
|
-
let plugin = SecureStoragePlugin()
|
|
130
|
-
|
|
131
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
132
|
-
"key": key
|
|
133
|
-
], success: { (result, call) in
|
|
134
|
-
XCTFail("Error shouldn't have been called")
|
|
135
|
-
}, error: { (err) in
|
|
136
|
-
XCTAssertNotNil(err)
|
|
137
|
-
})
|
|
138
|
-
|
|
139
|
-
plugin.remove(call!)
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
func testRemoveBoth() {
|
|
143
|
-
let key = "key"
|
|
144
|
-
let value = "Hello, World!"
|
|
145
|
-
// prefill dedicated keychain wrapper
|
|
146
|
-
let keychainwrapper = setupDedicatedWrapper()
|
|
147
|
-
keychainwrapper.set(value, forKey: key)
|
|
148
|
-
// prefill standard keychain wrapper
|
|
149
|
-
KeychainWrapper.standard.set(value, forKey: key)
|
|
150
|
-
|
|
151
|
-
let plugin = SecureStoragePlugin()
|
|
152
|
-
|
|
153
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
154
|
-
"key": key
|
|
155
|
-
], success: { (result, call) in
|
|
156
|
-
let resultValue = result!.data?["value"] as? Bool
|
|
157
|
-
XCTAssertTrue(resultValue ?? false)
|
|
158
|
-
// dedicated keychain wrapper
|
|
159
|
-
let dedicatedValue = keychainwrapper.string(forKey: key)
|
|
160
|
-
XCTAssertNil(dedicatedValue)
|
|
161
|
-
// standard keychain wrapper
|
|
162
|
-
let standardValueRemoved = KeychainWrapper.standard.string(forKey: key)
|
|
163
|
-
XCTAssertNil(standardValueRemoved)
|
|
164
|
-
}, error: { (err) in
|
|
165
|
-
XCTFail("Error shouldn't have been called")
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
plugin.remove(call!)
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
// same as testRemoveBoth, but don't prefill standard wrapper
|
|
172
|
-
func testRemove() {
|
|
173
|
-
let key = "key"
|
|
174
|
-
let value = "Hello, World!"
|
|
175
|
-
// prefill dedicated keychain wrapper
|
|
176
|
-
let keychainwrapper = setupDedicatedWrapper()
|
|
177
|
-
keychainwrapper.set(value, forKey: key)
|
|
178
|
-
|
|
179
|
-
let plugin = SecureStoragePlugin()
|
|
180
|
-
|
|
181
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
182
|
-
"key": key
|
|
183
|
-
], success: { (result, call) in
|
|
184
|
-
let resultValue = result!.data?["value"] as? Bool
|
|
185
|
-
XCTAssertTrue(resultValue ?? false)
|
|
186
|
-
// dedicated keychain wrapper
|
|
187
|
-
let dedicatedValue = keychainwrapper.string(forKey: key)
|
|
188
|
-
XCTAssertNil(dedicatedValue)
|
|
189
|
-
}, error: { (err) in
|
|
190
|
-
XCTFail("Error shouldn't have been called")
|
|
191
|
-
})
|
|
192
|
-
|
|
193
|
-
plugin.remove(call!)
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
func testClear() {
|
|
197
|
-
let key = "key"
|
|
198
|
-
let value = "Hello, World!"
|
|
199
|
-
let standardOnlyKey = "standard key"
|
|
200
|
-
let standardOnlyValue = "standard value"
|
|
201
|
-
// prefill dedicated keychain wrapper
|
|
202
|
-
let keychainwrapper = setupDedicatedWrapper()
|
|
203
|
-
keychainwrapper.set(value, forKey: key)
|
|
204
|
-
keychainwrapper.set(value + "2", forKey: key + "2")
|
|
205
|
-
// prefill standard keychain wrapper
|
|
206
|
-
KeychainWrapper.standard.set(value, forKey: key)
|
|
207
|
-
KeychainWrapper.standard.set(standardOnlyValue, forKey: standardOnlyKey)
|
|
208
|
-
|
|
209
|
-
let plugin = SecureStoragePlugin()
|
|
210
|
-
|
|
211
|
-
let call = CAPPluginCall(callbackId: "test", options: [
|
|
212
|
-
"key": key
|
|
213
|
-
], success: { (result, call) in
|
|
214
|
-
let resultValue = result!.data?["value"] as? Bool
|
|
215
|
-
XCTAssertTrue(resultValue ?? false)
|
|
216
|
-
// key present in dedicated and standard wrapper removed
|
|
217
|
-
let dedicatedValue = keychainwrapper.string(forKey: key)
|
|
218
|
-
XCTAssertNil(dedicatedValue)
|
|
219
|
-
let dedicatedValue2 = keychainwrapper.string(forKey: key + "2")
|
|
220
|
-
XCTAssertNil(dedicatedValue2)
|
|
221
|
-
let standardValue = KeychainWrapper.standard.string(forKey: key)
|
|
222
|
-
XCTAssertNil(standardValue)
|
|
223
|
-
// key only defined in standard wrapper still present
|
|
224
|
-
let standardValue2 = KeychainWrapper.standard.string(forKey: standardOnlyKey)
|
|
225
|
-
XCTAssertEqual(standardOnlyValue, standardValue2)
|
|
226
|
-
}, error: { (err) in
|
|
227
|
-
XCTFail("Error shouldn't have been called")
|
|
228
|
-
})
|
|
229
|
-
|
|
230
|
-
plugin.clear(call!)
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
func testGetPlatform() {
|
|
234
|
-
let plugin = SecureStoragePlugin()
|
|
235
|
-
let call = CAPPluginCall(callbackId: "test",
|
|
236
|
-
success: { (result, call) in
|
|
237
|
-
let resultValue = result!.data?["value"] as? String
|
|
238
|
-
XCTAssertEqual("ios", resultValue)
|
|
239
|
-
}, error: { (err) in
|
|
240
|
-
XCTFail("Error shouldn't have been called")
|
|
241
|
-
})
|
|
242
|
-
|
|
243
|
-
plugin.getPlatform(call!)
|
|
244
|
-
}
|
|
245
|
-
}
|
package/ios/Podfile
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
platform :ios, '12.0'
|
|
2
|
-
|
|
3
|
-
def capacitor_pods
|
|
4
|
-
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
|
|
5
|
-
use_frameworks!
|
|
6
|
-
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
|
|
7
|
-
pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
|
|
8
|
-
pod 'SwiftKeychainWrapper'
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
target 'Plugin' do
|
|
12
|
-
capacitor_pods
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
target 'PluginTests' do
|
|
16
|
-
capacitor_pods
|
|
17
|
-
pod 'SwiftKeychainWrapper'
|
|
18
|
-
end
|
package/ios/Podfile.lock
DELETED
|
@@ -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
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
Copyright 2015-present Drifty Co.
|
|
2
|
-
http://drifty.com/
|
|
3
|
-
|
|
4
|
-
MIT License
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
7
|
-
a copy of this software and associated documentation files (the
|
|
8
|
-
"Software"), to deal in the Software without restriction, including
|
|
9
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
10
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
11
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
12
|
-
the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be
|
|
15
|
-
included in all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
18
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
19
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
20
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
21
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
22
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
23
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
[![Build Status][circle-badge]][circle-badge-url]
|
|
2
|
-
|
|
3
|
-
# ⚡️ Cross-platform apps with JavaScript and the Web ⚡️
|
|
4
|
-
|
|
5
|
-
Capacitor is a cross-platform API and code execution layer that makes it easy to call Native SDKs from web code and to write custom Native plugins that your app might need. Additionally, Capacitor provides first-class Progressive Web App support so you can write one app and deploy it to the app stores, _and_ the mobile web.
|
|
6
|
-
|
|
7
|
-
Capacitor was created by the Ionic Framework team as a spiritual successor to Cordova, though it does have backward compatibility with the majority of Cordova plugins. Capacitor can be used without [Ionic Framework](https://ionicframework.com/docs/components), but since it's a core part of the Ionic Platform, it's recommended for the best app development experience.
|
|
8
|
-
|
|
9
|
-
Capacitor also comes with a Plugin API for building native plugins. On iOS, first-class Swift support is available, and much of the iOS Capacitor runtime is written in Swift. Plugins may also be written in Objective-C. On Android, writing plugins in Java and Kotlin is supported.
|
|
10
|
-
|
|
11
|
-
## Roadmap
|
|
12
|
-
|
|
13
|
-
_Disclaimer: Our roadmap is subject to change at any time and has no specific date guarantees_
|
|
14
|
-
|
|
15
|
-
2020 and beyond: The core Capacitor project is now stable. Maintenance is ongoing (including support for new mobile operating system versions, bugs, etc.). Going forward, most new functionality will be implemented as plugins. For the latest updates, track new releases [here](https://github.com/ionic-team/capacitor/releases) or milestones [here](https://github.com/ionic-team/capacitor/milestones).
|
|
16
|
-
|
|
17
|
-
[2019](https://blog.ionicframework.com/capacitor-in-2019-native-progressive-web-apps-for-all/)
|
|
18
|
-
|
|
19
|
-
2018
|
|
20
|
-
|
|
21
|
-
- __Cordova Plugin Integration__
|
|
22
|
-
- Preliminary support for using plugins from the existing Cordova community
|
|
23
|
-
- __Electron support__
|
|
24
|
-
- Support for building Electron apps and interacting with Node.js libraries
|
|
25
|
-
- __Enterprise Premium Plugins__
|
|
26
|
-
- Paid add-on plugins with support for common Enterprise use cases, such as storage, authentication, security, and more
|
|
27
|
-
- Developer Support options with SLAs and priority patches
|
|
28
|
-
- We are working with a few large teams/businesses as early development partners. Interested? Email [max@ionicframework.com](mailto:max@ionicframework.com)
|
|
29
|
-
|
|
30
|
-
## Contributing
|
|
31
|
-
|
|
32
|
-
Contributing to Capacitor may involve writing TypeScript, Swift/Objective-C, Java, or Markdown depending on the component you are working on. We are looking for help in any of these areas!
|
|
33
|
-
|
|
34
|
-
Please read the [Contributing](.github/CONTRIBUTING.md) guide for more information.
|
|
35
|
-
|
|
36
|
-
[circle-badge]: https://circleci.com/gh/ionic-team/capacitor.svg?style=shield
|
|
37
|
-
[circle-badge-url]: https://circleci.com/gh/ionic-team/capacitor
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#import <UIKit/UIKit.h>
|
|
2
|
-
|
|
3
|
-
//! Project version number for CapacitorCordova.
|
|
4
|
-
FOUNDATION_EXPORT double CapacitorCordovaVersionNumber;
|
|
5
|
-
|
|
6
|
-
//! Project version string for CapacitorCordova.
|
|
7
|
-
FOUNDATION_EXPORT const unsigned char CapacitorCordovaVersionString[];
|
|
8
|
-
|
|
9
|
-
// In this header, you should import all the public headers of your framework using statements like #import <CapacitorCordova/PublicHeader.h>
|
|
10
|
-
|
|
11
|
-
#import <Cordova/CDV.h>
|
|
12
|
-
#import <Cordova/CDVCommandDelegateImpl.h>
|
|
13
|
-
#import <Cordova/CDVAvailability.h>
|
|
14
|
-
#import <Cordova/CDVPlugin.h>
|
|
15
|
-
#import <Cordova/CDVPluginResult.h>
|
|
16
|
-
#import <Cordova/CDVCommandDelegate.h>
|
|
17
|
-
#import <Cordova/CDVInvokedUrlCommand.h>
|
|
18
|
-
#import <Cordova/CDVConfigParser.h>
|
|
19
|
-
#import <Cordova/CDVViewController.h>
|
|
20
|
-
#import <Cordova/NSDictionary+CordovaPreferences.h>
|
|
21
|
-
#import <Cordova/CDVURLProtocol.h>
|