@toothpic.eu/react-native-toothpic-sdk 1.0.7 → 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.
- package/package.json +7 -1
- package/src/index.tsx +22 -66
- package/src/types.ts +0 -5
- package/ToothpicSdk.podspec +0 -20
- package/android/build/.transforms/538a2b2e205ad2a79d9dcdb78df86994/results.bin +0 -1
- package/android/build/.transforms/538a2b2e205ad2a79d9dcdb78df86994/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/results.bin +0 -1
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/facebook/fbreact/specs/NativeToothpicSdkSpec.dex +0 -0
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/BuildConfig.dex +0 -0
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkModule$Companion.dex +0 -0
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkModule$generateCredential$1.dex +0 -0
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkModule$signWithCredential$1.dex +0 -0
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkModule.dex +0 -0
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/toothpicsdk/ToothpicSdkPackage.dex +0 -0
- package/android/build/.transforms/8fd44c972a2cf65a681897e3f87692ec/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/toothpicsdk/BuildConfig.java +0 -10
- package/android/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeToothpicSdkSpec.java +0 -75
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -36
- package/android/build/generated/source/codegen/jni/ToothpicSdkSpec-generated.cpp +0 -82
- package/android/build/generated/source/codegen/jni/ToothpicSdkSpec.h +0 -31
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ComponentDescriptors.cpp +0 -22
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ComponentDescriptors.h +0 -24
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/EventEmitters.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/EventEmitters.h +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/Props.cpp +0 -19
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/Props.h +0 -18
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ShadowNodes.cpp +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ShadowNodes.h +0 -23
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/States.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/States.h +0 -19
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ToothpicSdkSpecJSI-generated.cpp +0 -82
- package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/ToothpicSdkSpecJSI.h +0 -149
- package/android/build/generated/source/codegen/schema.json +0 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- 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 +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-toothpic-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/facebook/fbreact/specs/NativeToothpicSdkSpec.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/toothpicsdk/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-toothpic-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/facebook/fbreact/specs/NativeToothpicSdkSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkModule$generateCredential$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkModule$signWithCredential$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/toothpicsdk/ToothpicSdkPackage.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 +0 -1
- 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/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 +0 -2
- 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/logs/manifest-merger-debug-report.txt +0 -16
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-toothpic-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkModule$generateCredential$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkModule$signWithCredential$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/toothpicsdk/ToothpicSdkPackage.class +0 -0
- package/android/build.gradle +0 -68
- package/android/src/main/AndroidManifest.xml +0 -2
- package/android/src/main/java/com/toothpicsdk/ToothpicSdkModule.kt +0 -66
- package/android/src/main/java/com/toothpicsdk/ToothpicSdkPackage.kt +0 -33
- package/ios/ToothpicSdk.h +0 -0
- package/ios/ToothpicSdk.mm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toothpic.eu/react-native-toothpic-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "React Native ToothPic SDK",
|
|
5
5
|
"main": "src/index",
|
|
6
6
|
"codegenConfig": {
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"type": "modules",
|
|
9
9
|
"jsSrcsDir": "src"
|
|
10
10
|
},
|
|
11
|
+
"files": [
|
|
12
|
+
"ToothpicSdkSpec.podspec",
|
|
13
|
+
"!android/",
|
|
14
|
+
"!ios/",
|
|
15
|
+
"src/"
|
|
16
|
+
],
|
|
11
17
|
"author": "Cristiano Palazzi <cristiano.palazzi@toothpic.eu> (https://github.com/cristiano-palazzi)",
|
|
12
18
|
"license": "UNLICENSED",
|
|
13
19
|
"homepage": "https://github.com/cristiano-palazzi/react-native-toothpic-sdk#readme",
|
package/src/index.tsx
CHANGED
|
@@ -1,105 +1,61 @@
|
|
|
1
|
-
import { Platform } from 'react-native';
|
|
2
1
|
import { ToothpicSdk } from './NativeToothpicSdk';
|
|
3
2
|
import { ErrorCodes, GenerationData, KeyType, SignatureData, State, ToothPicError } from './types';
|
|
4
3
|
|
|
5
4
|
async function generateCredential(premiumService: boolean, premiumUser: boolean, verifyGeneration: boolean): Promise<GenerationData> {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return parseGenerationData(map)
|
|
9
|
-
}
|
|
10
|
-
catch (error: any) {
|
|
11
|
-
throw new ToothPicError(error)
|
|
12
|
-
}
|
|
5
|
+
|
|
6
|
+
return parseGenerationData()
|
|
13
7
|
}
|
|
8
|
+
|
|
14
9
|
async function signWithCredential(keyID: string, messageToSign: Uint8Array): Promise<SignatureData> {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return parseSignatureData(map)
|
|
18
|
-
}
|
|
19
|
-
catch (error: any) {
|
|
20
|
-
throw new ToothPicError(error)
|
|
21
|
-
}
|
|
10
|
+
|
|
11
|
+
return parseSignatureData()
|
|
22
12
|
}
|
|
23
13
|
|
|
24
14
|
function getVersion(): Promise<string> {
|
|
25
|
-
return
|
|
15
|
+
return Promise.resolve("");
|
|
26
16
|
}
|
|
27
17
|
|
|
28
|
-
|
|
29
18
|
async function getKeyType(keyID: string): Promise<KeyType> {
|
|
30
|
-
return
|
|
19
|
+
return Promise.resolve(KeyType.TOOTHPIC);
|
|
31
20
|
}
|
|
32
21
|
|
|
33
|
-
|
|
34
|
-
return
|
|
22
|
+
function getPublicKey(keyID: string): Promise<Uint8Array> {
|
|
23
|
+
return Promise.resolve(new Uint8Array());
|
|
35
24
|
}
|
|
36
25
|
|
|
37
26
|
function getKeys(): Promise<Array<string>> {
|
|
38
|
-
return
|
|
27
|
+
return Promise.resolve([]);
|
|
39
28
|
}
|
|
40
29
|
|
|
41
30
|
function isPremiumSupported(): Promise<boolean> {
|
|
42
|
-
|
|
43
|
-
return Promise.resolve(true)
|
|
44
|
-
}
|
|
45
|
-
return ToothpicSdk.isPremiumSupported()
|
|
31
|
+
return Promise.resolve(false);
|
|
46
32
|
}
|
|
47
33
|
|
|
48
34
|
function deleteKey(keyID: string): Promise<boolean> {
|
|
49
|
-
return
|
|
35
|
+
return Promise.resolve(true);
|
|
50
36
|
}
|
|
51
37
|
|
|
52
38
|
function deleteAllKeys(): void {
|
|
53
|
-
|
|
39
|
+
|
|
54
40
|
}
|
|
55
41
|
|
|
56
|
-
function parseGenerationData(
|
|
42
|
+
function parseGenerationData(): GenerationData {
|
|
57
43
|
return {
|
|
58
|
-
keyID:
|
|
59
|
-
publicKey:
|
|
60
|
-
certificate:
|
|
61
|
-
exportedCredential:
|
|
62
|
-
|
|
63
|
-
: undefined,
|
|
64
|
-
shootParameters: json.shootParameters,
|
|
44
|
+
keyID: "",
|
|
45
|
+
publicKey: new Uint8Array(),
|
|
46
|
+
certificate: new Uint8Array(),
|
|
47
|
+
exportedCredential: undefined,
|
|
48
|
+
shootParameters: "",
|
|
65
49
|
};
|
|
66
50
|
}
|
|
67
51
|
|
|
68
|
-
function parseSignatureData(
|
|
52
|
+
function parseSignatureData(): SignatureData {
|
|
69
53
|
return {
|
|
70
|
-
signature:
|
|
71
|
-
shootParameters:
|
|
54
|
+
signature: new Uint8Array(),
|
|
55
|
+
shootParameters: ""
|
|
72
56
|
};
|
|
73
57
|
}
|
|
74
58
|
|
|
75
|
-
|
|
76
|
-
function stringToKeyType(keyType: string): KeyType {
|
|
77
|
-
return KeyType[keyType as keyof typeof KeyType];
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function uint8ArrayToHex(buffer: Uint8Array): string {
|
|
81
|
-
return [...new Uint8Array(buffer)]
|
|
82
|
-
.map((x) => x.toString(16).padStart(2, "0"))
|
|
83
|
-
.join("");
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
function hexToUint8Array(hexString: string): Uint8Array {
|
|
88
|
-
hexString = hexString.replace(/\s+/g, '');
|
|
89
|
-
|
|
90
|
-
if (hexString.length % 2 !== 0) {
|
|
91
|
-
throw new Error("Hex string must have an even number of characters.");
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const uint8Array = new Uint8Array(hexString.length / 2);
|
|
95
|
-
|
|
96
|
-
for (let i = 0; i < hexString.length; i += 2) {
|
|
97
|
-
uint8Array[i / 2] = parseInt(hexString.slice(i, i + 2), 16);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return uint8Array;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
59
|
const onProgress = ToothpicSdk.onProgress
|
|
104
60
|
|
|
105
61
|
export const ToothPicSDK = {
|
package/src/types.ts
CHANGED
|
@@ -28,7 +28,6 @@ export enum ErrorCodes {
|
|
|
28
28
|
ERROR_EVALUATION_EXPIRED = "ERROR_EVALUATION_EXPIRED",
|
|
29
29
|
ERROR_INSUFFICIENT_LUMINOSITY = "ERROR_INSUFFICIENT_LUMINOSITY",
|
|
30
30
|
ERROR_BAD_CREDENTIAL = "ERROR_BAD_CREDENTIAL",
|
|
31
|
-
ERROR_DECRYPTION = "ERROR_DECRYPTION",
|
|
32
31
|
ERROR_GENERIC = "ERROR_GENERIC"
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -52,10 +51,6 @@ export type State =
|
|
|
52
51
|
|
|
53
52
|
export enum KeyType {
|
|
54
53
|
TOOTHPIC = "TOOTHPIC",
|
|
55
|
-
KEY_STORE = "KEY_STORE",
|
|
56
|
-
SECURE_ENCLAVE = "SECURE_ENCLAVE",
|
|
57
|
-
COMPATIBILITY = "COMPATIBILITY",
|
|
58
|
-
KEY_NOT_FOUND = "KEY_NOT_FOUND"
|
|
59
54
|
}
|
|
60
55
|
|
|
61
56
|
export class ToothPicError extends Error {
|
package/ToothpicSdk.podspec
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
require "json"
|
|
2
|
-
|
|
3
|
-
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
-
|
|
5
|
-
Pod::Spec.new do |s|
|
|
6
|
-
s.name = "ToothpicSdk"
|
|
7
|
-
s.version = package["version"]
|
|
8
|
-
s.summary = package["description"]
|
|
9
|
-
s.homepage = package["homepage"]
|
|
10
|
-
s.license = package["license"]
|
|
11
|
-
s.authors = package["author"]
|
|
12
|
-
|
|
13
|
-
s.platforms = { :ios => min_ios_version_supported }
|
|
14
|
-
s.source = { :git => "https://github.com/cristiano-palazzi/react-native-toothpic-sdk.git", :tag => "#{s.version}" }
|
|
15
|
-
|
|
16
|
-
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
|
|
17
|
-
s.private_header_files = "ios/**/*.h"
|
|
18
|
-
s.vendored_frameworks = "ios/libs/*.{xcframework}/ios-arm64/ToothpicLibrary.framework"
|
|
19
|
-
install_modules_dependencies(s)
|
|
20
|
-
end
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
o/classes
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
o/bundleLibRuntimeToDirDebug
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Automatically generated file. DO NOT MODIFY
|
|
3
|
-
*/
|
|
4
|
-
package com.toothpicsdk;
|
|
5
|
-
|
|
6
|
-
public final class BuildConfig {
|
|
7
|
-
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
|
8
|
-
public static final String LIBRARY_PACKAGE_NAME = "com.toothpicsdk";
|
|
9
|
-
public static final String BUILD_TYPE = "debug";
|
|
10
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateModuleJavaSpec.js
|
|
9
|
-
*
|
|
10
|
-
* @nolint
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
package com.facebook.fbreact.specs;
|
|
14
|
-
|
|
15
|
-
import com.facebook.proguard.annotations.DoNotStrip;
|
|
16
|
-
import com.facebook.react.bridge.Promise;
|
|
17
|
-
import com.facebook.react.bridge.ReactApplicationContext;
|
|
18
|
-
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
19
|
-
import com.facebook.react.bridge.ReactMethod;
|
|
20
|
-
import com.facebook.react.bridge.ReadableArray;
|
|
21
|
-
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
|
|
22
|
-
import javax.annotation.Nonnull;
|
|
23
|
-
|
|
24
|
-
public abstract class NativeToothpicSdkSpec extends ReactContextBaseJavaModule implements TurboModule {
|
|
25
|
-
public static final String NAME = "ToothpicSdk";
|
|
26
|
-
|
|
27
|
-
public NativeToothpicSdkSpec(ReactApplicationContext reactContext) {
|
|
28
|
-
super(reactContext);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@Override
|
|
32
|
-
public @Nonnull String getName() {
|
|
33
|
-
return NAME;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
protected final void emitOnProgress(String value) {
|
|
37
|
-
mEventEmitterCallback.invoke("onProgress", value);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@ReactMethod
|
|
41
|
-
@DoNotStrip
|
|
42
|
-
public abstract void getVersion(Promise promise);
|
|
43
|
-
|
|
44
|
-
@ReactMethod
|
|
45
|
-
@DoNotStrip
|
|
46
|
-
public abstract void getKeyType(String keyID, Promise promise);
|
|
47
|
-
|
|
48
|
-
@ReactMethod
|
|
49
|
-
@DoNotStrip
|
|
50
|
-
public abstract void getPublicKey(String keyID, Promise promise);
|
|
51
|
-
|
|
52
|
-
@ReactMethod
|
|
53
|
-
@DoNotStrip
|
|
54
|
-
public abstract void deleteKey(String keyID, Promise promise);
|
|
55
|
-
|
|
56
|
-
@ReactMethod
|
|
57
|
-
@DoNotStrip
|
|
58
|
-
public abstract void deleteAllKeys(Promise promise);
|
|
59
|
-
|
|
60
|
-
@ReactMethod
|
|
61
|
-
@DoNotStrip
|
|
62
|
-
public abstract void getKeys(Promise promise);
|
|
63
|
-
|
|
64
|
-
@ReactMethod
|
|
65
|
-
@DoNotStrip
|
|
66
|
-
public abstract void isPremiumSupported(Promise promise);
|
|
67
|
-
|
|
68
|
-
@ReactMethod
|
|
69
|
-
@DoNotStrip
|
|
70
|
-
public abstract void generateCredential(boolean premiumService, boolean premiumUser, boolean verifyGeneration, Promise promise);
|
|
71
|
-
|
|
72
|
-
@ReactMethod
|
|
73
|
-
@DoNotStrip
|
|
74
|
-
public abstract void signWithCredential(String keyID, ReadableArray messageToSign, Promise promise);
|
|
75
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
-
#
|
|
3
|
-
# This source code is licensed under the MIT license found in the
|
|
4
|
-
# LICENSE file in the root directory of this source tree.
|
|
5
|
-
|
|
6
|
-
cmake_minimum_required(VERSION 3.13)
|
|
7
|
-
set(CMAKE_VERBOSE_MAKEFILE on)
|
|
8
|
-
|
|
9
|
-
file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/ToothpicSdkSpec/*.cpp)
|
|
10
|
-
|
|
11
|
-
add_library(
|
|
12
|
-
react_codegen_ToothpicSdkSpec
|
|
13
|
-
OBJECT
|
|
14
|
-
${react_codegen_SRCS}
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
target_include_directories(react_codegen_ToothpicSdkSpec PUBLIC . react/renderer/components/ToothpicSdkSpec)
|
|
18
|
-
|
|
19
|
-
target_link_libraries(
|
|
20
|
-
react_codegen_ToothpicSdkSpec
|
|
21
|
-
fbjni
|
|
22
|
-
jsi
|
|
23
|
-
# We need to link different libraries based on whether we are building rncore or not, that's necessary
|
|
24
|
-
# because we want to break a circular dependency between react_codegen_rncore and reactnative
|
|
25
|
-
reactnative
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
target_compile_options(
|
|
29
|
-
react_codegen_ToothpicSdkSpec
|
|
30
|
-
PRIVATE
|
|
31
|
-
-DLOG_TAG=\"ReactNative\"
|
|
32
|
-
-fexceptions
|
|
33
|
-
-frtti
|
|
34
|
-
-std=c++20
|
|
35
|
-
-Wall
|
|
36
|
-
)
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateModuleJniCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include "ToothpicSdkSpec.h"
|
|
12
|
-
|
|
13
|
-
namespace facebook::react {
|
|
14
|
-
|
|
15
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_getVersion(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
16
|
-
static jmethodID cachedMethodId = nullptr;
|
|
17
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getVersion", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_getKeyType(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
21
|
-
static jmethodID cachedMethodId = nullptr;
|
|
22
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getKeyType", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_getPublicKey(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
26
|
-
static jmethodID cachedMethodId = nullptr;
|
|
27
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getPublicKey", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_deleteKey(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
31
|
-
static jmethodID cachedMethodId = nullptr;
|
|
32
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "deleteKey", "(Ljava/lang/String;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_deleteAllKeys(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
36
|
-
static jmethodID cachedMethodId = nullptr;
|
|
37
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "deleteAllKeys", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_getKeys(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
41
|
-
static jmethodID cachedMethodId = nullptr;
|
|
42
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "getKeys", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_isPremiumSupported(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
46
|
-
static jmethodID cachedMethodId = nullptr;
|
|
47
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "isPremiumSupported", "(Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_generateCredential(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
51
|
-
static jmethodID cachedMethodId = nullptr;
|
|
52
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "generateCredential", "(ZZZLcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
static facebook::jsi::Value __hostFunction_NativeToothpicSdkSpecJSI_signWithCredential(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
|
|
56
|
-
static jmethodID cachedMethodId = nullptr;
|
|
57
|
-
return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, PromiseKind, "signWithCredential", "(Ljava/lang/String;Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V", args, count, cachedMethodId);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
NativeToothpicSdkSpecJSI::NativeToothpicSdkSpecJSI(const JavaTurboModule::InitParams ¶ms)
|
|
61
|
-
: JavaTurboModule(params) {
|
|
62
|
-
methodMap_["getVersion"] = MethodMetadata {0, __hostFunction_NativeToothpicSdkSpecJSI_getVersion};
|
|
63
|
-
methodMap_["getKeyType"] = MethodMetadata {1, __hostFunction_NativeToothpicSdkSpecJSI_getKeyType};
|
|
64
|
-
methodMap_["getPublicKey"] = MethodMetadata {1, __hostFunction_NativeToothpicSdkSpecJSI_getPublicKey};
|
|
65
|
-
methodMap_["deleteKey"] = MethodMetadata {1, __hostFunction_NativeToothpicSdkSpecJSI_deleteKey};
|
|
66
|
-
methodMap_["deleteAllKeys"] = MethodMetadata {0, __hostFunction_NativeToothpicSdkSpecJSI_deleteAllKeys};
|
|
67
|
-
methodMap_["getKeys"] = MethodMetadata {0, __hostFunction_NativeToothpicSdkSpecJSI_getKeys};
|
|
68
|
-
methodMap_["isPremiumSupported"] = MethodMetadata {0, __hostFunction_NativeToothpicSdkSpecJSI_isPremiumSupported};
|
|
69
|
-
methodMap_["generateCredential"] = MethodMetadata {3, __hostFunction_NativeToothpicSdkSpecJSI_generateCredential};
|
|
70
|
-
methodMap_["signWithCredential"] = MethodMetadata {2, __hostFunction_NativeToothpicSdkSpecJSI_signWithCredential};
|
|
71
|
-
eventEmitterMap_["onProgress"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
|
|
72
|
-
setEventEmitterCallback(params.instance);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
std::shared_ptr<TurboModule> ToothpicSdkSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams ¶ms) {
|
|
76
|
-
if (moduleName == "ToothpicSdk") {
|
|
77
|
-
return std::make_shared<NativeToothpicSdkSpecJSI>(params);
|
|
78
|
-
}
|
|
79
|
-
return nullptr;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
} // namespace facebook::react
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateModuleJniH.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#pragma once
|
|
12
|
-
|
|
13
|
-
#include <ReactCommon/JavaTurboModule.h>
|
|
14
|
-
#include <ReactCommon/TurboModule.h>
|
|
15
|
-
#include <jsi/jsi.h>
|
|
16
|
-
|
|
17
|
-
namespace facebook::react {
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* JNI C++ class for module 'NativeToothpicSdk'
|
|
21
|
-
*/
|
|
22
|
-
class JSI_EXPORT NativeToothpicSdkSpecJSI : public JavaTurboModule {
|
|
23
|
-
public:
|
|
24
|
-
NativeToothpicSdkSpecJSI(const JavaTurboModule::InitParams ¶ms);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
JSI_EXPORT
|
|
29
|
-
std::shared_ptr<TurboModule> ToothpicSdkSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams ¶ms);
|
|
30
|
-
|
|
31
|
-
} // namespace facebook::react
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateComponentDescriptorCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include <react/renderer/components/ToothpicSdkSpec/ComponentDescriptors.h>
|
|
12
|
-
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
13
|
-
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
void ToothpicSdkSpec_registerComponentDescriptorsFromCodegen(
|
|
18
|
-
std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
} // namespace facebook::react
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateComponentDescriptorH.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#pragma once
|
|
12
|
-
|
|
13
|
-
#include <react/renderer/components/ToothpicSdkSpec/ShadowNodes.h>
|
|
14
|
-
#include <react/renderer/core/ConcreteComponentDescriptor.h>
|
|
15
|
-
#include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
|
|
16
|
-
|
|
17
|
-
namespace facebook::react {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
void ToothpicSdkSpec_registerComponentDescriptorsFromCodegen(
|
|
22
|
-
std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
|
|
23
|
-
|
|
24
|
-
} // namespace facebook::react
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateEventEmitterCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include <react/renderer/components/ToothpicSdkSpec/EventEmitters.h>
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
namespace facebook::react {
|
|
15
|
-
|
|
16
|
-
} // namespace facebook::react
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateEventEmitterH.js
|
|
9
|
-
*/
|
|
10
|
-
#pragma once
|
|
11
|
-
|
|
12
|
-
#include <react/renderer/components/view/ViewEventEmitter.h>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
} // namespace facebook::react
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GeneratePropsCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include <react/renderer/components/ToothpicSdkSpec/Props.h>
|
|
12
|
-
#include <react/renderer/core/PropsParserContext.h>
|
|
13
|
-
#include <react/renderer/core/propsConversions.h>
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} // namespace facebook::react
|
package/android/build/generated/source/codegen/jni/react/renderer/components/ToothpicSdkSpec/Props.h
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GeneratePropsH.js
|
|
9
|
-
*/
|
|
10
|
-
#pragma once
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
namespace facebook::react {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} // namespace facebook::react
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateShadowNodeCpp.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#include <react/renderer/components/ToothpicSdkSpec/ShadowNodes.h>
|
|
12
|
-
|
|
13
|
-
namespace facebook::react {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} // namespace facebook::react
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateShadowNodeH.js
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
#pragma once
|
|
12
|
-
|
|
13
|
-
#include <react/renderer/components/ToothpicSdkSpec/EventEmitters.h>
|
|
14
|
-
#include <react/renderer/components/ToothpicSdkSpec/Props.h>
|
|
15
|
-
#include <react/renderer/components/ToothpicSdkSpec/States.h>
|
|
16
|
-
#include <react/renderer/components/view/ConcreteViewShadowNode.h>
|
|
17
|
-
#include <jsi/jsi.h>
|
|
18
|
-
|
|
19
|
-
namespace facebook::react {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} // namespace facebook::react
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
4
|
-
*
|
|
5
|
-
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
6
|
-
* once the code is regenerated.
|
|
7
|
-
*
|
|
8
|
-
* @generated by codegen project: GenerateStateCpp.js
|
|
9
|
-
*/
|
|
10
|
-
#include <react/renderer/components/ToothpicSdkSpec/States.h>
|
|
11
|
-
|
|
12
|
-
namespace facebook::react {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} // namespace facebook::react
|
|
@@ -1,19 +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: GenerateStateH.js
|
|
8
|
-
*/
|
|
9
|
-
#pragma once
|
|
10
|
-
|
|
11
|
-
#ifdef ANDROID
|
|
12
|
-
#include <folly/dynamic.h>
|
|
13
|
-
#endif
|
|
14
|
-
|
|
15
|
-
namespace facebook::react {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} // namespace facebook::react
|