@toothpic.eu/react-native-toothpic-sdk 1.0.8 → 1.0.9

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 (163) hide show
  1. package/package.json +7 -1
  2. package/ToothpicSdk.podspec +0 -19
  3. package/android/build/.transforms/538a2b2e205ad2a79d9dcdb78df86994/results.bin +0 -1
  4. package/android/build/.transforms/538a2b2e205ad2a79d9dcdb78df86994/transformed/classes/classes_dex/classes.dex +0 -0
  5. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/results.bin +0 -1
  6. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/fbreact/specs/NativeToothpicSdkSpec.dex +0 -0
  7. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/BuildConfig.dex +0 -0
  8. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkModule$Companion.dex +0 -0
  9. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkModule$generateCredential$1.dex +0 -0
  10. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkModule$signWithCredential$1.dex +0 -0
  11. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkModule.dex +0 -0
  12. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkPackage.dex +0 -0
  13. package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  14. package/android/build/generated/source/buildConfig/debug/com/toothpicsdk/BuildConfig.java +0 -10
  15. package/android/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeToothpicSdkSpec.java +0 -75
  16. package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -36
  17. package/android/build/generated/source/codegen/jni/ToothpicSdkSpec-generated.cpp +0 -82
  18. package/android/build/generated/source/codegen/jni/ToothpicSdkSpec.h +0 -31
  19. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ComponentDescriptors.cpp +0 -22
  20. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ComponentDescriptors.h +0 -24
  21. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/EventEmitters.cpp +0 -16
  22. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/EventEmitters.h +0 -17
  23. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/Props.cpp +0 -19
  24. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/Props.h +0 -18
  25. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ShadowNodes.cpp +0 -17
  26. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ShadowNodes.h +0 -23
  27. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/States.cpp +0 -16
  28. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/States.h +0 -19
  29. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ToothpicSdkSpecJSI-generated.cpp +0 -82
  30. package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ToothpicSdkSpecJSI.h +0 -149
  31. package/android/build/generated/source/codegen/schema.json +0 -1
  32. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
  33. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  34. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  35. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  36. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  37. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  38. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  39. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  40. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  41. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  42. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  43. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  44. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-toothpic-sdk_debug.kotlin_module +0 -0
  45. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/fbreact/specs/NativeToothpicSdkSpec.class +0 -0
  46. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/toothpicsdk/BuildConfig.class +0 -0
  47. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
  48. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
  49. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
  50. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  51. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  52. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-toothpic-sdk_debug.kotlin_module +0 -0
  53. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/fbreact/specs/NativeToothpicSdkSpec.class +0 -0
  54. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/BuildConfig.class +0 -0
  55. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkModule$Companion.class +0 -0
  56. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkModule$generateCredential$1.class +0 -0
  57. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkModule$signWithCredential$1.class +0 -0
  58. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkModule.class +0 -0
  59. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkPackage.class +0 -0
  60. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  61. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  146. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  147. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  148. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  149. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  150. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -16
  151. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  152. package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-toothpic-sdk_debug.kotlin_module +0 -0
  153. package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkModule$Companion.class +0 -0
  154. package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkModule$generateCredential$1.class +0 -0
  155. package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkModule$signWithCredential$1.class +0 -0
  156. package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkModule.class +0 -0
  157. package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkPackage.class +0 -0
  158. package/android/build.gradle +0 -67
  159. package/android/src/main/AndroidManifest.xml +0 -2
  160. package/android/src/main/java/com/toothpicsdk/ToothpicSdkModule.kt +0 -58
  161. package/android/src/main/java/com/toothpicsdk/ToothpicSdkPackage.kt +0 -33
  162. package/ios/ToothpicSdk.h +0 -0
  163. package/ios/ToothpicSdk.mm +0 -0
@@ -1,149 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
- class JSI_EXPORT NativeToothpicSdkCxxSpecJSI : public TurboModule {
19
- protected:
20
- NativeToothpicSdkCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
-
22
- public:
23
- virtual jsi::Value getVersion(jsi::Runtime &rt) = 0;
24
- virtual jsi::Value getKeyType(jsi::Runtime &rt, jsi::String keyID) = 0;
25
- virtual jsi::Value getPublicKey(jsi::Runtime &rt, jsi::String keyID) = 0;
26
- virtual jsi::Value deleteKey(jsi::Runtime &rt, jsi::String keyID) = 0;
27
- virtual jsi::Value deleteAllKeys(jsi::Runtime &rt) = 0;
28
- virtual jsi::Value getKeys(jsi::Runtime &rt) = 0;
29
- virtual jsi::Value isPremiumSupported(jsi::Runtime &rt) = 0;
30
- virtual jsi::Value generateCredential(jsi::Runtime &rt, bool premiumService, bool premiumUser, bool verifyGeneration) = 0;
31
- virtual jsi::Value signWithCredential(jsi::Runtime &rt, jsi::String keyID, jsi::Array messageToSign) = 0;
32
-
33
- };
34
-
35
- template <typename T>
36
- class JSI_EXPORT NativeToothpicSdkCxxSpec : public TurboModule {
37
- public:
38
- jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
39
- return delegate_.create(rt, propName);
40
- }
41
-
42
- std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
43
- return delegate_.getPropertyNames(runtime);
44
- }
45
-
46
- static constexpr std::string_view kModuleName = "ToothpicSdk";
47
-
48
- protected:
49
- NativeToothpicSdkCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
50
- : TurboModule(std::string{NativeToothpicSdkCxxSpec::kModuleName}, jsInvoker),
51
- delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
52
-
53
- template <typename OnProgressType> void emitOnProgress(OnProgressType value) {
54
- static_assert(bridging::supportsFromJs<OnProgressType, jsi::String>, "value cannnot be converted to jsi::String");
55
- static_cast<AsyncEventEmitter<jsi::Value>&>(*delegate_.eventEmitterMap_["onProgress"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value {
56
- return bridging::toJs(rt, eventValue, jsInvoker);
57
- });
58
- }
59
-
60
- private:
61
- class Delegate : public NativeToothpicSdkCxxSpecJSI {
62
- public:
63
- Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
64
- NativeToothpicSdkCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
65
- eventEmitterMap_["onProgress"] = std::make_shared<AsyncEventEmitter<jsi::Value>>();
66
- }
67
-
68
- jsi::Value getVersion(jsi::Runtime &rt) override {
69
- static_assert(
70
- bridging::getParameterCount(&T::getVersion) == 1,
71
- "Expected getVersion(...) to have 1 parameters");
72
-
73
- return bridging::callFromJs<jsi::Value>(
74
- rt, &T::getVersion, jsInvoker_, instance_);
75
- }
76
- jsi::Value getKeyType(jsi::Runtime &rt, jsi::String keyID) override {
77
- static_assert(
78
- bridging::getParameterCount(&T::getKeyType) == 2,
79
- "Expected getKeyType(...) to have 2 parameters");
80
-
81
- return bridging::callFromJs<jsi::Value>(
82
- rt, &T::getKeyType, jsInvoker_, instance_, std::move(keyID));
83
- }
84
- jsi::Value getPublicKey(jsi::Runtime &rt, jsi::String keyID) override {
85
- static_assert(
86
- bridging::getParameterCount(&T::getPublicKey) == 2,
87
- "Expected getPublicKey(...) to have 2 parameters");
88
-
89
- return bridging::callFromJs<jsi::Value>(
90
- rt, &T::getPublicKey, jsInvoker_, instance_, std::move(keyID));
91
- }
92
- jsi::Value deleteKey(jsi::Runtime &rt, jsi::String keyID) override {
93
- static_assert(
94
- bridging::getParameterCount(&T::deleteKey) == 2,
95
- "Expected deleteKey(...) to have 2 parameters");
96
-
97
- return bridging::callFromJs<jsi::Value>(
98
- rt, &T::deleteKey, jsInvoker_, instance_, std::move(keyID));
99
- }
100
- jsi::Value deleteAllKeys(jsi::Runtime &rt) override {
101
- static_assert(
102
- bridging::getParameterCount(&T::deleteAllKeys) == 1,
103
- "Expected deleteAllKeys(...) to have 1 parameters");
104
-
105
- return bridging::callFromJs<jsi::Value>(
106
- rt, &T::deleteAllKeys, jsInvoker_, instance_);
107
- }
108
- jsi::Value getKeys(jsi::Runtime &rt) override {
109
- static_assert(
110
- bridging::getParameterCount(&T::getKeys) == 1,
111
- "Expected getKeys(...) to have 1 parameters");
112
-
113
- return bridging::callFromJs<jsi::Value>(
114
- rt, &T::getKeys, jsInvoker_, instance_);
115
- }
116
- jsi::Value isPremiumSupported(jsi::Runtime &rt) override {
117
- static_assert(
118
- bridging::getParameterCount(&T::isPremiumSupported) == 1,
119
- "Expected isPremiumSupported(...) to have 1 parameters");
120
-
121
- return bridging::callFromJs<jsi::Value>(
122
- rt, &T::isPremiumSupported, jsInvoker_, instance_);
123
- }
124
- jsi::Value generateCredential(jsi::Runtime &rt, bool premiumService, bool premiumUser, bool verifyGeneration) override {
125
- static_assert(
126
- bridging::getParameterCount(&T::generateCredential) == 4,
127
- "Expected generateCredential(...) to have 4 parameters");
128
-
129
- return bridging::callFromJs<jsi::Value>(
130
- rt, &T::generateCredential, jsInvoker_, instance_, std::move(premiumService), std::move(premiumUser), std::move(verifyGeneration));
131
- }
132
- jsi::Value signWithCredential(jsi::Runtime &rt, jsi::String keyID, jsi::Array messageToSign) override {
133
- static_assert(
134
- bridging::getParameterCount(&T::signWithCredential) == 3,
135
- "Expected signWithCredential(...) to have 3 parameters");
136
-
137
- return bridging::callFromJs<jsi::Value>(
138
- rt, &T::signWithCredential, jsInvoker_, instance_, std::move(keyID), std::move(messageToSign));
139
- }
140
-
141
- private:
142
- friend class NativeToothpicSdkCxxSpec;
143
- T *instance_;
144
- };
145
-
146
- Delegate delegate_;
147
- };
148
-
149
- } // namespace facebook::react
@@ -1 +0,0 @@
1
- {"modules":{"NativeToothpicSdk":{"type":"NativeModule","aliasMap":{},"enumMap":{},"spec":{"eventEmitters":[{"name":"onProgress","optional":false,"typeAnnotation":{"type":"EventEmitterTypeAnnotation","typeAnnotation":{"type":"StringLiteralUnionTypeAnnotation","types":[{"type":"StringLiteralTypeAnnotation","value":"AUTOPARAMETER_GENERATION"},{"type":"StringLiteralTypeAnnotation","value":"AUTOPARAMETER_SIGNATURE"},{"type":"StringLiteralTypeAnnotation","value":"AUTOPARAMETER_VERIFICATION"},{"type":"StringLiteralTypeAnnotation","value":"CAPTURE_COMPLETED_GENERATION"},{"type":"StringLiteralTypeAnnotation","value":"CAPTURE_COMPLETED_SIGNATURE"},{"type":"StringLiteralTypeAnnotation","value":"CAPTURE_COMPLETED_VERIFICATION"},{"type":"StringLiteralTypeAnnotation","value":"DONE_GENERATION"},{"type":"StringLiteralTypeAnnotation","value":"DONE_SIGNATURE"},{"type":"StringLiteralTypeAnnotation","value":"DONE_VERIFICATION"},{"type":"StringLiteralTypeAnnotation","value":"PREVIEW_OK"},{"type":"StringLiteralTypeAnnotation","value":"PREVIEW_TOO_DARK"}]}}}],"methods":[{"name":"getVersion","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"StringTypeAnnotation"}},"params":[]}},{"name":"getKeyType","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"StringTypeAnnotation"}},"params":[{"name":"keyID","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation"}}]}},{"name":"getPublicKey","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"StringTypeAnnotation"}},"params":[{"name":"keyID","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation"}}]}},{"name":"deleteKey","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"BooleanTypeAnnotation"}},"params":[{"name":"keyID","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation"}}]}},{"name":"deleteAllKeys","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"VoidTypeAnnotation"}},"params":[]}},{"name":"getKeys","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"ArrayTypeAnnotation","elementType":{"type":"StringTypeAnnotation"}}},"params":[]}},{"name":"isPremiumSupported","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"BooleanTypeAnnotation"}},"params":[]}},{"name":"generateCredential","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"VoidTypeAnnotation"}},"params":[{"name":"premiumService","optional":false,"typeAnnotation":{"type":"BooleanTypeAnnotation"}},{"name":"premiumUser","optional":false,"typeAnnotation":{"type":"BooleanTypeAnnotation"}},{"name":"verifyGeneration","optional":false,"typeAnnotation":{"type":"BooleanTypeAnnotation"}}]}},{"name":"signWithCredential","optional":false,"typeAnnotation":{"type":"FunctionTypeAnnotation","returnTypeAnnotation":{"type":"PromiseTypeAnnotation","elementType":{"type":"VoidTypeAnnotation"}},"params":[{"name":"keyID","optional":false,"typeAnnotation":{"type":"StringTypeAnnotation"}},{"name":"messageToSign","optional":false,"typeAnnotation":{"type":"ArrayTypeAnnotation","elementType":{"type":"NumberTypeAnnotation"}}}]}}]},"moduleName":"ToothpicSdk"}}}
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.toothpicsdk" >
4
-
5
- <uses-sdk android:minSdkVersion="24" />
6
-
7
- </manifest>
@@ -1,18 +0,0 @@
1
- {
2
- "version": 3,
3
- "artifactType": {
4
- "type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
5
- "kind": "Directory"
6
- },
7
- "applicationId": "com.toothpicsdk",
8
- "variantName": "debug",
9
- "elements": [
10
- {
11
- "type": "SINGLE",
12
- "filters": [],
13
- "attributes": [],
14
- "outputFile": "AndroidManifest.xml"
15
- }
16
- ],
17
- "elementType": "File"
18
- }
@@ -1,6 +0,0 @@
1
- aarFormatVersion=1.0
2
- aarMetadataVersion=1.0
3
- minCompileSdk=1
4
- minCompileSdkExtension=0
5
- minAndroidGradlePluginVersion=1.0.0
6
- coreLibraryDesugaringEnabled=false
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/debug/res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/build/generated/res/resValues/debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/debug/jniLibs"/></dataSet></merger>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/debug/shaders"/></dataSet></merger>
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/assets"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/debug/assets"/></dataSet><dataSet config="generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:&lt;dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="/Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/build/intermediates/shader_assets/debug/compileDebugShaders/out"/></dataSet></merger>
@@ -1,2 +0,0 @@
1
- R_DEF: Internal format may change without notice
2
- local
@@ -1,7 +0,0 @@
1
- 1<?xml version="1.0" encoding="utf-8"?>
2
- 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- 3 package="com.toothpicsdk" >
4
- 4
5
- 5 <uses-sdk android:minSdkVersion="24" />
6
- 6
7
- 7</manifest>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.toothpicsdk" >
4
-
5
- <uses-sdk android:minSdkVersion="24" />
6
-
7
- </manifest>
@@ -1,16 +0,0 @@
1
- -- Merging decision tree log ---
2
- manifest
3
- ADDED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml:1:1-2:12
4
- INJECTED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml:1:1-2:12
5
- package
6
- INJECTED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml
7
- xmlns:android
8
- ADDED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml:1:11-69
9
- uses-sdk
10
- INJECTED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml reason: use-sdk injection requested
11
- INJECTED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml
12
- INJECTED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml
13
- android:targetSdkVersion
14
- INJECTED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml
15
- android:minSdkVersion
16
- INJECTED from /Users/toothpic/Desktop/ReactNative/ToothPicModuleExample/node_modules/react-native-toothpic-sdk/android/src/main/AndroidManifest.xml