react-native-plaid-link-sdk 12.6.0 → 12.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/README.md +2 -0
- package/android/.gradle/8.1.1/checksums/checksums.lock +0 -0
- package/android/.gradle/8.1.1/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.1.1/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.1.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.1.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.1.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.1.1/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/file-system.probe +0 -0
- package/android/build/.transforms/102278d013f9769e7703ddf5e4f97b8e/results.bin +1 -0
- package/android/build/.transforms/102278d013f9769e7703ddf5e4f97b8e/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/results.bin +1 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/ActivityResultHandler.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/ActivityResultManager.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/BuildConfig.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/GlobalFunctionsKt.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/NativePlaidLinkModuleAndroidSpec.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/NativePlaidLinkModuleiOSSpec.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedView.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedViewManager$Companion.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PLKEmbeddedViewManager.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidModule$Companion.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidModule.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage$1.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage$2.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/PlaidPackage.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/PlaidJsonConverter.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNAccountAdapter.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNEventMetadataAdapter.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/plaid/gson/RNLinkInstitutionAdapter.dex +0 -0
- package/android/build/.transforms/81ada3d60f135f1cf4a07fb88708ada3/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/plaid/BuildConfig.java +12 -0
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.java +35 -0
- package/android/build/generated/source/codegen/java/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.java +19 -0
- package/android/build/generated/source/codegen/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +64 -0
- package/android/build/generated/source/codegen/java/com/plaid/NativePlaidLinkModuleiOSSpec.java +63 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/EventEmitters.cpp +28 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/EventEmitters.h +29 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/Props.cpp +52 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/Props.h +34 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/ShadowNodes.h +32 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/States.h +20 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/rnplaidlinkJSI-generated.cpp +149 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/rnplaidlink/rnplaidlinkJSI.h +233 -0
- package/android/build/generated/source/codegen/jni/rnplaidlink-generated.cpp +116 -0
- package/android/build/generated/source/codegen/jni/rnplaidlink.h +39 -0
- package/android/build/generated/source/codegen/schema.json +1 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +13 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +2 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/layout_plk_embedded_view.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/ActivityResultHandler.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/ActivityResultManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/NativePlaidLinkModuleAndroidSpec.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/NativePlaidLinkModuleiOSSpec.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/plaid/PlaidPackage.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +4 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +17 -0
- package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-plaid-link-sdk.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +13 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/layout/plk_embedded_view.xml +5 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerDelegate.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/react/viewmanagers/PLKEmbeddedViewManagerInterface.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/ActivityResultHandler.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/ActivityResultManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/GlobalFunctionsKt.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/NativePlaidLinkModuleAndroidSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/NativePlaidLinkModuleiOSSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedViewManager$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PLKEmbeddedViewManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/PlaidPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/PlaidJsonConverter.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNAccountAdapter.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNEventMetadataAdapter.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/plaid/gson/RNLinkInstitutionAdapter.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +3 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/aar/react-native-plaid-link-sdk-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +25 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-plaid-link-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/GlobalFunctionsKt.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedViewManager$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PLKEmbeddedViewManager.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PlaidModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/PlaidModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/PlaidJsonConverter.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNAccountAdapter.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNEventMetadataAdapter.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/plaid/gson/RNLinkInstitutionAdapter.class +0 -0
- package/android/build.gradle +1 -1
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/plaid/PlaidModule.kt +12 -3
- package/android/src/main/java/com/plaid/gson/RNEventMetadataAdapter.kt +2 -0
- package/android/src/paper/java/com/plaid/NativePlaidLinkModuleAndroidSpec.java +1 -1
- package/dist/PlaidLink.js +4 -3
- package/dist/Types.d.ts +1 -1
- package/dist/Types.js +4 -8
- package/dist/exampleRN76/App.d.ts +3 -0
- package/dist/exampleRN76/App.js +129 -0
- package/dist/exampleRN76/Styles.d.ts +63 -0
- package/dist/exampleRN76/Styles.js +47 -0
- package/dist/exampleRN76/__tests__/App.test.d.ts +4 -0
- package/dist/exampleRN76/__tests__/App.test.js +13 -0
- package/dist/exampleRN76/babel.config.d.ts +1 -0
- package/dist/exampleRN76/babel.config.js +4 -0
- package/dist/exampleRN76/index.d.ts +1 -0
- package/dist/exampleRN76/index.js +7 -0
- package/dist/exampleRN76/jest.config.d.ts +1 -0
- package/dist/exampleRN76/jest.config.js +4 -0
- package/dist/exampleRN76/metro.config.d.ts +2 -0
- package/dist/exampleRN76/metro.config.js +10 -0
- package/dist/exampleReactNative76/App.d.ts +2 -0
- package/dist/exampleReactNative76/App.js +134 -0
- package/dist/exampleReactNative76/Styles.d.ts +69 -0
- package/dist/exampleReactNative76/Styles.js +51 -0
- package/dist/exampleReactNative76/__tests__/App.test.d.ts +4 -0
- package/dist/exampleReactNative76/__tests__/App.test.js +13 -0
- package/dist/exampleReactNative76/babel.config.d.ts +1 -0
- package/dist/exampleReactNative76/babel.config.js +4 -0
- package/dist/exampleReactNative76/index.d.ts +1 -0
- package/dist/exampleReactNative76/index.js +7 -0
- package/dist/exampleReactNative76/jest.config.d.ts +1 -0
- package/dist/exampleReactNative76/jest.config.js +4 -0
- package/dist/exampleReactNative76/metro.config.d.ts +2 -0
- package/dist/exampleReactNative76/metro.config.js +10 -0
- package/dist/fabric/EmbeddedLinkViewNativeComponent.d.ts +0 -2
- package/dist/fabric/NativePlaidLinkModuleAndroid.d.ts +1 -1
- package/dist/fabric/NativePlaidLinkModuleiOS.d.ts +1 -1
- package/dist/src/EmbeddedLink/EmbeddedLinkView.d.ts +13 -0
- package/dist/src/EmbeddedLink/EmbeddedLinkView.js +55 -0
- package/dist/src/EmbeddedLink/EmbeddedLinkView.web.d.ts +1 -0
- package/dist/src/EmbeddedLink/EmbeddedLinkView.web.js +1 -0
- package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.d.ts +2 -0
- package/dist/src/EmbeddedLink/NativeEmbeddedLinkView.js +2 -0
- package/dist/src/PlaidLink.d.ts +27 -0
- package/dist/src/PlaidLink.js +124 -0
- package/dist/src/Types.d.ts +540 -0
- package/dist/src/Types.js +454 -0
- package/dist/src/__tests__/Types.tests.d.ts +1 -0
- package/dist/src/__tests__/Types.tests.js +14 -0
- package/dist/src/fabric/EmbeddedLinkViewNativeComponent.d.ts +17 -0
- package/dist/src/fabric/EmbeddedLinkViewNativeComponent.js +2 -0
- package/dist/src/fabric/NativePlaidLinkModuleAndroid.d.ts +14 -0
- package/dist/src/fabric/NativePlaidLinkModuleAndroid.js +4 -0
- package/dist/src/fabric/NativePlaidLinkModuleiOS.d.ts +15 -0
- package/dist/src/fabric/NativePlaidLinkModuleiOS.js +4 -0
- package/dist/src/fabric/fabricUtils.d.ts +1 -0
- package/dist/src/fabric/fabricUtils.js +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +6 -0
- package/ios/RNLinksdk.mm +15 -3
- package/ios/RNPlaidHelper.h +1 -0
- package/ios/RNPlaidHelper.m +3 -1
- package/package.json +1 -1
- package/react-native-plaid-link-sdk.podspec +1 -1
- package/src/PlaidLink.tsx +3 -1
- package/src/Types.ts +2 -0
- package/src/fabric/NativePlaidLinkModuleAndroid.ts +1 -1
- package/src/fabric/NativePlaidLinkModuleiOS.ts +1 -1
- package/android/.gradle/config.properties +0 -2
- package/android/.idea/AndroidProjectSystem.xml +0 -6
- package/android/.idea/caches/deviceStreaming.xml +0 -835
- package/android/.idea/gradle.xml +0 -13
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -10
- package/android/.idea/runConfigurations.xml +0 -17
- package/android/.idea/vcs.xml +0 -6
- package/android/local.properties +0 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export let presets: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export let preset: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
|
|
3
|
+
/**
|
|
4
|
+
* Metro configuration
|
|
5
|
+
* https://reactnative.dev/docs/metro
|
|
6
|
+
*
|
|
7
|
+
* @type {import('metro-config').MetroConfig}
|
|
8
|
+
*/
|
|
9
|
+
const config = {};
|
|
10
|
+
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react-native/types/modules/codegen" />
|
|
2
|
-
/// <reference types="react-native/modules/codegen" />
|
|
3
1
|
import type { ViewProps } from 'react-native';
|
|
4
2
|
import { DirectEventHandler, UnsafeMixed } from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
3
|
export interface NativeProps extends ViewProps {
|
|
@@ -3,7 +3,7 @@ import { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
3
3
|
import { UnsafeObject } from './fabricUtils';
|
|
4
4
|
import { LinkSuccess, LinkExit } from '../Types';
|
|
5
5
|
export interface Spec extends TurboModule {
|
|
6
|
-
createPlaidLink(token: string, noLoadingState: boolean, logLevel: string): void;
|
|
6
|
+
createPlaidLink(token: string, noLoadingState: boolean, logLevel: string, onLoad: () => void): void;
|
|
7
7
|
open(onSuccess: (result: UnsafeObject<LinkSuccess>) => void, onExit: (result: UnsafeObject<LinkExit>) => void): void;
|
|
8
8
|
destroy(): Promise<void>;
|
|
9
9
|
startLinkActivityForResult(token: string, noLoadingState: boolean, logLevel: string, onSuccessCallback: (result: UnsafeObject<LinkSuccess>) => void, onExitCallback: (result: UnsafeObject<LinkExit>) => void): void;
|
|
@@ -3,7 +3,7 @@ import { Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
3
3
|
import { UnsafeObject } from './fabricUtils';
|
|
4
4
|
import { LinkSuccess, LinkExit, LinkError, FinanceKitError } from '../Types';
|
|
5
5
|
export interface Spec extends TurboModule {
|
|
6
|
-
createPlaidLink(token: string, noLoadingState: boolean): void;
|
|
6
|
+
createPlaidLink(token: string, noLoadingState: boolean, onLoad: () => void): void;
|
|
7
7
|
open(fullScreen: boolean, onSuccess: (result: UnsafeObject<LinkSuccess>) => void, onExit: (error: UnsafeObject<LinkError>, result: UnsafeObject<LinkExit>) => void): void;
|
|
8
8
|
dismiss(): void;
|
|
9
9
|
submit(phoneNumber: string | undefined, dateOfBirth: string | undefined): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { LinkSuccessListener, LinkExitListener, LinkIOSPresentationStyle, LinkOnEventListener } from '../Types';
|
|
4
|
+
type EmbeddedLinkProps = {
|
|
5
|
+
token: string;
|
|
6
|
+
iOSPresentationStyle: LinkIOSPresentationStyle;
|
|
7
|
+
onEvent: LinkOnEventListener | undefined;
|
|
8
|
+
onSuccess: LinkSuccessListener;
|
|
9
|
+
onExit: LinkExitListener | undefined;
|
|
10
|
+
style: StyleProp<ViewStyle> | undefined;
|
|
11
|
+
};
|
|
12
|
+
export declare const EmbeddedLinkView: React.FC<EmbeddedLinkProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import NativeEmbeddedLinkView from './NativeEmbeddedLinkView';
|
|
3
|
+
class EmbeddedEvent {
|
|
4
|
+
constructor(event) {
|
|
5
|
+
this.eventName = event.eventName;
|
|
6
|
+
this.metadata = event.metadata;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
class EmbeddedExit {
|
|
10
|
+
constructor(event) {
|
|
11
|
+
this.error = event.error;
|
|
12
|
+
this.metadata = event.metadata;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
class EmbeddedSuccess {
|
|
16
|
+
constructor(event) {
|
|
17
|
+
this.publicToken = event.publicToken;
|
|
18
|
+
this.metadata = event.metadata;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export const EmbeddedLinkView = (props) => {
|
|
22
|
+
const { token, iOSPresentationStyle, onEvent, onSuccess, onExit, style } = props;
|
|
23
|
+
const onEmbeddedEvent = (event) => {
|
|
24
|
+
switch (event.nativeEvent.embeddedEventName) {
|
|
25
|
+
case 'onSuccess': {
|
|
26
|
+
if (!onSuccess) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const embeddedSuccess = new EmbeddedSuccess(event.nativeEvent);
|
|
30
|
+
onSuccess(embeddedSuccess);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
case 'onExit': {
|
|
34
|
+
if (!onExit) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const embeddedExit = new EmbeddedExit(event.nativeEvent);
|
|
38
|
+
onExit(embeddedExit);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
case 'onEvent': {
|
|
42
|
+
if (!onEvent) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const embeddedEvent = new EmbeddedEvent(event.nativeEvent);
|
|
46
|
+
onEvent(embeddedEvent);
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
default: {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return <NativeEmbeddedLinkView token={token} iOSPresentationStyle={iOSPresentationStyle.toString()} onEmbeddedEvent={onEmbeddedEvent} style={style}/>;
|
|
55
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EmbeddedLinkView: () => null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const EmbeddedLinkView = () => null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { LinkEventListener, LinkOpenProps, LinkTokenConfiguration, FinanceKitError, SubmissionData } from './Types';
|
|
2
|
+
/**
|
|
3
|
+
* A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
|
|
4
|
+
* The listener is cleaned up when this view is unmounted
|
|
5
|
+
*
|
|
6
|
+
* @param LinkEventListener the listener to call
|
|
7
|
+
*/
|
|
8
|
+
export declare const usePlaidEmitter: (linkEventListener: LinkEventListener) => void;
|
|
9
|
+
export declare const create: (props: LinkTokenConfiguration) => void;
|
|
10
|
+
export declare const open: (props: LinkOpenProps) => Promise<void>;
|
|
11
|
+
export declare const dismissLink: () => void;
|
|
12
|
+
export declare const submit: (data: SubmissionData) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Function to sync the user's transactions from their Apple card.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} token - The `LinkToken` your server retrieved from the /link/token/create endpoint from the Plaid API.
|
|
17
|
+
* This token must be associated with an accessToken.
|
|
18
|
+
* @param {boolean} requestAuthorizationIfNeeded - Indicates if the user should be prompted to authorize the sync if
|
|
19
|
+
* they have not already done so.
|
|
20
|
+
* @param {function} completion - A callback function that is called when the sync has completed.
|
|
21
|
+
*
|
|
22
|
+
* @warning This method only works on iOS >= 17.4.
|
|
23
|
+
* @warning This method is not supported on Android or MacCatalyst.
|
|
24
|
+
* @warning This method can only be used once the user has granted access to their Apple card via a standard Link Session.
|
|
25
|
+
* @warning This method requires that your app has been granted FinanceKit access from Apple.
|
|
26
|
+
*/
|
|
27
|
+
export declare const syncFinanceKit: (token: string, requestAuthorizationIfNeeded: boolean, completion: (error?: FinanceKitError) => void) => void;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var _a;
|
|
11
|
+
import { useEffect } from 'react';
|
|
12
|
+
import { NativeEventEmitter, Platform } from 'react-native';
|
|
13
|
+
import { LinkIOSPresentationStyle, LinkLogLevel, FinanceKitErrorType, } from './Types';
|
|
14
|
+
import RNLinksdkAndroid from './fabric/NativePlaidLinkModuleAndroid';
|
|
15
|
+
import RNLinksdkiOS from './fabric/NativePlaidLinkModuleiOS';
|
|
16
|
+
const RNLinksdk = (_a = (Platform.OS === 'android' ? RNLinksdkAndroid : RNLinksdkiOS)) !== null && _a !== void 0 ? _a : undefined;
|
|
17
|
+
/**
|
|
18
|
+
* A hook that registers a listener on the Plaid emitter for the 'onEvent' type.
|
|
19
|
+
* The listener is cleaned up when this view is unmounted
|
|
20
|
+
*
|
|
21
|
+
* @param LinkEventListener the listener to call
|
|
22
|
+
*/
|
|
23
|
+
export const usePlaidEmitter = (linkEventListener) => {
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
const emitter = new NativeEventEmitter(RNLinksdk);
|
|
26
|
+
const listener = emitter.addListener('onEvent', linkEventListener);
|
|
27
|
+
// Clean up after this effect:
|
|
28
|
+
return function cleanup() {
|
|
29
|
+
listener.remove();
|
|
30
|
+
};
|
|
31
|
+
}, []);
|
|
32
|
+
};
|
|
33
|
+
export const create = (props) => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
let token = props.token;
|
|
36
|
+
let noLoadingState = (_a = props.noLoadingState) !== null && _a !== void 0 ? _a : false;
|
|
37
|
+
if (Platform.OS === 'android') {
|
|
38
|
+
RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.create(token, noLoadingState, (_b = props.logLevel) !== null && _b !== void 0 ? _b : LinkLogLevel.ERROR);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.create(token, noLoadingState);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
export const open = (props) => __awaiter(void 0, void 0, void 0, function* () {
|
|
45
|
+
if (Platform.OS === 'android') {
|
|
46
|
+
RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.open((result) => {
|
|
47
|
+
if (props.onSuccess != null) {
|
|
48
|
+
props.onSuccess(result);
|
|
49
|
+
}
|
|
50
|
+
}, (result) => {
|
|
51
|
+
if (props.onExit != null) {
|
|
52
|
+
if (result.error != null && result.error.displayMessage != null) {
|
|
53
|
+
//TODO(RNSDK-118): Remove errorDisplayMessage field in next major update.
|
|
54
|
+
result.error.errorDisplayMessage = result.error.displayMessage;
|
|
55
|
+
}
|
|
56
|
+
props.onExit(result);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
let presentFullScreen = props.iOSPresentationStyle == LinkIOSPresentationStyle.FULL_SCREEN;
|
|
62
|
+
RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.open(presentFullScreen, (result) => {
|
|
63
|
+
if (props.onSuccess != null) {
|
|
64
|
+
props.onSuccess(result);
|
|
65
|
+
}
|
|
66
|
+
}, (error, result) => {
|
|
67
|
+
if (props.onExit != null) {
|
|
68
|
+
if (error) {
|
|
69
|
+
var data = result || {};
|
|
70
|
+
data.error = error;
|
|
71
|
+
props.onExit(data);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
props.onExit(result);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
export const dismissLink = () => {
|
|
81
|
+
if (Platform.OS === 'ios') {
|
|
82
|
+
RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.dismiss();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
export const submit = (data) => {
|
|
86
|
+
if (Platform.OS === 'android') {
|
|
87
|
+
RNLinksdkAndroid === null || RNLinksdkAndroid === void 0 ? void 0 : RNLinksdkAndroid.submit(data.phoneNumber);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.submit(data.phoneNumber);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Function to sync the user's transactions from their Apple card.
|
|
95
|
+
*
|
|
96
|
+
* @param {string} token - The `LinkToken` your server retrieved from the /link/token/create endpoint from the Plaid API.
|
|
97
|
+
* This token must be associated with an accessToken.
|
|
98
|
+
* @param {boolean} requestAuthorizationIfNeeded - Indicates if the user should be prompted to authorize the sync if
|
|
99
|
+
* they have not already done so.
|
|
100
|
+
* @param {function} completion - A callback function that is called when the sync has completed.
|
|
101
|
+
*
|
|
102
|
+
* @warning This method only works on iOS >= 17.4.
|
|
103
|
+
* @warning This method is not supported on Android or MacCatalyst.
|
|
104
|
+
* @warning This method can only be used once the user has granted access to their Apple card via a standard Link Session.
|
|
105
|
+
* @warning This method requires that your app has been granted FinanceKit access from Apple.
|
|
106
|
+
*/
|
|
107
|
+
export const syncFinanceKit = (token, requestAuthorizationIfNeeded, completion) => {
|
|
108
|
+
if (Platform.OS === 'android') {
|
|
109
|
+
completion({
|
|
110
|
+
type: FinanceKitErrorType.Unknown,
|
|
111
|
+
message: "FinanceKit is unavailable on Android!",
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
RNLinksdkiOS === null || RNLinksdkiOS === void 0 ? void 0 : RNLinksdkiOS.syncFinanceKit(token, requestAuthorizationIfNeeded, () => {
|
|
116
|
+
completion();
|
|
117
|
+
}, (error) => {
|
|
118
|
+
completion({
|
|
119
|
+
type: error.type,
|
|
120
|
+
message: error.message,
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
};
|