react-native-inapp-inspector 2.3.13 → 2.3.14
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/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/results.bin +1 -0
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/results.bin +1 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +10 -0
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +104 -0
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +128 -0
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +31 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +22 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +24 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +19 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +18 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +177 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +17 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +23 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +16 -0
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +20 -0
- package/android/build/generated/source/codegen/schema.json +1 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +7 -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 +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -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/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +7 -0
- package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-inapp-inspector.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +7 -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/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.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 +1 -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/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-inapp-inspector-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +17 -0
- package/android/build/reports/problems/problems-report.html +659 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/bin/cli.js +6 -0
- package/dist/commonjs/components/Inspector/DebuggingTab.js +741 -438
- package/dist/commonjs/components/Inspector/MainScreen.js +4 -1
- package/dist/commonjs/components/Inspector/SettingsPanel.js +6 -4
- package/dist/commonjs/components/Inspector/TabBar.js +6 -2
- package/dist/commonjs/components/QRCodeView.js +1 -1
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +3 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +11 -1
- package/dist/commonjs/helpers/qrGenerator.d.ts +1 -0
- package/dist/commonjs/helpers/qrGenerator.js +356 -33
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +5 -3
- package/dist/commonjs/metro.d.ts +25 -0
- package/dist/commonjs/metro.js +478 -0
- package/dist/esm/components/Inspector/DebuggingTab.js +744 -441
- package/dist/esm/components/Inspector/MainScreen.js +4 -1
- package/dist/esm/components/Inspector/SettingsPanel.js +7 -5
- package/dist/esm/components/Inspector/TabBar.js +7 -3
- package/dist/esm/components/QRCodeView.js +1 -1
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +3 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +9 -0
- package/dist/esm/helpers/qrGenerator.d.ts +1 -0
- package/dist/esm/helpers/qrGenerator.js +356 -30
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/metro.d.ts +25 -0
- package/dist/esm/metro.js +469 -0
- package/metro.d.ts +1 -0
- package/metro.js +1 -0
- package/package.json +16 -5
- package/src/components/Inspector/DebuggingTab.tsx +842 -514
- package/src/components/Inspector/MainScreen.tsx +4 -1
- package/src/components/Inspector/SettingsPanel.tsx +85 -75
- package/src/components/Inspector/TabBar.tsx +16 -2
- package/src/components/QRCodeView.tsx +2 -2
- package/src/constants/telemetryConfig.ts +5 -3
- package/src/constants/version.ts +1 -1
- package/src/helpers/index.ts +15 -0
- package/src/helpers/qrGenerator.ts +418 -37
- package/src/index.tsx +5 -3
- package/src/metro.ts +598 -0
|
@@ -1,49 +1,430 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ISO/IEC 18004
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Zero-Dependency Pure TypeScript ISO/IEC 18004 QR Code Matrix Generator.
|
|
3
|
+
* Self-contained engine with Reed-Solomon Error Correction & BCH Format encoding.
|
|
4
|
+
* 100% compatible with Android Camera & Google Lens.
|
|
5
5
|
*/
|
|
6
|
-
import qrcode from 'qrcode-generator';
|
|
7
6
|
|
|
8
7
|
export type QRECC = 'L' | 'M' | 'Q' | 'H';
|
|
9
8
|
|
|
9
|
+
const QR_ECC_LEVEL: Record<QRECC, number> = {
|
|
10
|
+
L: 1,
|
|
11
|
+
M: 0,
|
|
12
|
+
Q: 3,
|
|
13
|
+
H: 2,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
// Galois field tables for GF(256)
|
|
17
|
+
const EXP_TABLE = new Uint8Array(256);
|
|
18
|
+
const LOG_TABLE = new Uint8Array(256);
|
|
19
|
+
|
|
20
|
+
(function initGaloisField() {
|
|
21
|
+
let x = 1;
|
|
22
|
+
for (let i = 0; i < 255; i++) {
|
|
23
|
+
EXP_TABLE[i] = x;
|
|
24
|
+
LOG_TABLE[x] = i;
|
|
25
|
+
x <<= 1;
|
|
26
|
+
if (x & 0x100) {
|
|
27
|
+
x ^= 0x11d; // GF(256) polynomial: x^8 + x^4 + x^3 + x^2 + 1
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
EXP_TABLE[255] = EXP_TABLE[0];
|
|
31
|
+
})();
|
|
32
|
+
|
|
33
|
+
function glog(n: number): number {
|
|
34
|
+
if (n < 1) throw new Error(`glog(${n})`);
|
|
35
|
+
return LOG_TABLE[n]!;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function gexp(n: number): number {
|
|
39
|
+
while (n < 0) n += 255;
|
|
40
|
+
while (n >= 256) n -= 255;
|
|
41
|
+
return EXP_TABLE[n]!;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
class Polynomial {
|
|
45
|
+
num: number[];
|
|
46
|
+
constructor(num: number[], shift = 0) {
|
|
47
|
+
let offset = 0;
|
|
48
|
+
while (offset < num.length && num[offset] === 0) {
|
|
49
|
+
offset++;
|
|
50
|
+
}
|
|
51
|
+
this.num = new Array(num.length - offset + shift);
|
|
52
|
+
for (let i = 0; i < num.length - offset; i++) {
|
|
53
|
+
this.num[i] = num[i + offset]!;
|
|
54
|
+
}
|
|
55
|
+
for (let i = num.length - offset; i < this.num.length; i++) {
|
|
56
|
+
this.num[i] = 0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
get(index: number): number {
|
|
61
|
+
return this.num[index] || 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
getLength(): number {
|
|
65
|
+
return this.num.length;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
multiply(e: Polynomial): Polynomial {
|
|
69
|
+
const num = new Array(this.getLength() + e.getLength() - 1).fill(0);
|
|
70
|
+
for (let i = 0; i < this.getLength(); i++) {
|
|
71
|
+
for (let j = 0; j < e.getLength(); j++) {
|
|
72
|
+
num[i + j] ^= gexp(glog(this.get(i)) + glog(e.get(j)));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return new Polynomial(num);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
mod(e: Polynomial): Polynomial {
|
|
79
|
+
if (this.getLength() - e.getLength() < 0) {
|
|
80
|
+
return this;
|
|
81
|
+
}
|
|
82
|
+
const ratio = glog(this.get(0)) - glog(e.get(0));
|
|
83
|
+
const num = new Array(this.getLength());
|
|
84
|
+
for (let i = 0; i < this.getLength(); i++) {
|
|
85
|
+
num[i] = this.get(i);
|
|
86
|
+
}
|
|
87
|
+
for (let i = 0; i < e.getLength(); i++) {
|
|
88
|
+
num[i] ^= gexp(glog(e.get(i)) + ratio);
|
|
89
|
+
}
|
|
90
|
+
return new Polynomial(num).mod(e);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// QR Code RS Block definition tables [totalCount, dataCount]
|
|
95
|
+
const RS_BLOCK_TABLE: number[][][] = [
|
|
96
|
+
// 1
|
|
97
|
+
[[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9]],
|
|
98
|
+
// 2
|
|
99
|
+
[[1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16]],
|
|
100
|
+
// 3
|
|
101
|
+
[[1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13]],
|
|
102
|
+
// 4
|
|
103
|
+
[[1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9]],
|
|
104
|
+
// 5
|
|
105
|
+
[[1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12]],
|
|
106
|
+
// 6
|
|
107
|
+
[[2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15]],
|
|
108
|
+
// 7
|
|
109
|
+
[[2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14]],
|
|
110
|
+
// 8
|
|
111
|
+
[[2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15]],
|
|
112
|
+
// 9
|
|
113
|
+
[[2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13]],
|
|
114
|
+
// 10
|
|
115
|
+
[[2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16]],
|
|
116
|
+
];
|
|
117
|
+
|
|
118
|
+
// Alignment pattern centers for Versions 1-10
|
|
119
|
+
const PATTERN_POSITION_TABLE: number[][] = [
|
|
120
|
+
[],
|
|
121
|
+
[6, 18],
|
|
122
|
+
[6, 22],
|
|
123
|
+
[6, 26],
|
|
124
|
+
[6, 30],
|
|
125
|
+
[6, 34],
|
|
126
|
+
[6, 22, 38],
|
|
127
|
+
[6, 24, 42],
|
|
128
|
+
[6, 26, 46],
|
|
129
|
+
[6, 28, 50],
|
|
130
|
+
];
|
|
131
|
+
|
|
132
|
+
const G15 = (1 << 10) | (1 << 8) | (1 << 5) | (1 << 4) | (1 << 2) | (1 << 1) | (1 << 0);
|
|
133
|
+
const G15_MASK = (1 << 14) | (1 << 12) | (1 << 10) | (1 << 4) | (1 << 1);
|
|
134
|
+
|
|
135
|
+
function getBCHTypeInfo(data: number): number {
|
|
136
|
+
let d = data << 10;
|
|
137
|
+
while (getBCHDigit(d) - getBCHDigit(G15) >= 0) {
|
|
138
|
+
d ^= G15 << (getBCHDigit(d) - getBCHDigit(G15));
|
|
139
|
+
}
|
|
140
|
+
return ((data << 10) | d) ^ G15_MASK;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function getBCHDigit(data: number): number {
|
|
144
|
+
let digit = 0;
|
|
145
|
+
while (data !== 0) {
|
|
146
|
+
digit++;
|
|
147
|
+
data >>>= 1;
|
|
148
|
+
}
|
|
149
|
+
return digit;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function getMask(maskPattern: number, i: number, j: number): boolean {
|
|
153
|
+
switch (maskPattern) {
|
|
154
|
+
case 0: return (i + j) % 2 === 0;
|
|
155
|
+
case 1: return i % 2 === 0;
|
|
156
|
+
case 2: return j % 3 === 0;
|
|
157
|
+
case 3: return (i + j) % 3 === 0;
|
|
158
|
+
case 4: return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 === 0;
|
|
159
|
+
case 5: return ((i * j) % 2) + ((i * j) % 3) === 0;
|
|
160
|
+
case 6: return (((i * j) % 2) + ((i * j) % 3)) % 2 === 0;
|
|
161
|
+
case 7: return (((i * j) % 3) + ((i + j) % 2)) % 2 === 0;
|
|
162
|
+
default: return false;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
class BitBuffer {
|
|
167
|
+
buffer: number[] = [];
|
|
168
|
+
length = 0;
|
|
169
|
+
|
|
170
|
+
get(index: number): boolean {
|
|
171
|
+
const bufIndex = Math.floor(index / 8);
|
|
172
|
+
return ((this.buffer[bufIndex]! >>> (7 - (index % 8))) & 1) === 1;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
put(num: number, length: number): void {
|
|
176
|
+
for (let i = 0; i < length; i++) {
|
|
177
|
+
this.putBit(((num >>> (length - i - 1)) & 1) === 1);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
putBit(bit: boolean): void {
|
|
182
|
+
const bufIndex = Math.floor(this.length / 8);
|
|
183
|
+
if (this.buffer.length <= bufIndex) {
|
|
184
|
+
this.buffer.push(0);
|
|
185
|
+
}
|
|
186
|
+
if (bit) {
|
|
187
|
+
this.buffer[bufIndex] |= 0x80 >>> (this.length % 8);
|
|
188
|
+
}
|
|
189
|
+
this.length++;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
function getErrorCorrectionPolynomial(errorCorrectionLength: number): Polynomial {
|
|
194
|
+
let a = new Polynomial([1], 0);
|
|
195
|
+
for (let i = 0; i < errorCorrectionLength; i++) {
|
|
196
|
+
a = a.multiply(new Polynomial([1, gexp(i)], 0));
|
|
197
|
+
}
|
|
198
|
+
return a;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Generates boolean matrix for QR code string.
|
|
203
|
+
* Zero external dependencies.
|
|
204
|
+
*/
|
|
10
205
|
export function generateQRMatrix(text: string, ecc: QRECC = 'M'): boolean[][] {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
206
|
+
const eccLevel = QR_ECC_LEVEL[ecc] ?? 0;
|
|
207
|
+
const utf8Bytes: number[] = [];
|
|
208
|
+
|
|
209
|
+
for (let i = 0; i < text.length; i++) {
|
|
210
|
+
let c = text.charCodeAt(i);
|
|
211
|
+
if (c < 128) {
|
|
212
|
+
utf8Bytes.push(c);
|
|
213
|
+
} else if (c < 2048) {
|
|
214
|
+
utf8Bytes.push((c >> 6) | 192);
|
|
215
|
+
utf8Bytes.push((c & 63) | 128);
|
|
216
|
+
} else {
|
|
217
|
+
utf8Bytes.push((c >> 12) | 224);
|
|
218
|
+
utf8Bytes.push(((c >> 6) & 63) | 128);
|
|
219
|
+
utf8Bytes.push((c & 63) | 128);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Determine minimum viable QR Version (1 to 10)
|
|
224
|
+
let version = 1;
|
|
225
|
+
for (let v = 1; v <= 10; v++) {
|
|
226
|
+
const blockList = RS_BLOCK_TABLE[v - 1]![eccLevel]!;
|
|
227
|
+
let totalDataCount = 0;
|
|
228
|
+
for (let i = 0; i < blockList.length; i += 3) {
|
|
229
|
+
totalDataCount += blockList[i]! * blockList[i + 2]!;
|
|
230
|
+
}
|
|
231
|
+
// 8-bit byte mode overhead: 4 bits mode + 8 bits length
|
|
232
|
+
if (utf8Bytes.length + 2 <= totalDataCount) {
|
|
233
|
+
version = v;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
version = v;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const moduleCount = version * 4 + 17;
|
|
240
|
+
const modules: (boolean | null)[][] = Array.from({ length: moduleCount }, () =>
|
|
241
|
+
Array(moduleCount).fill(null),
|
|
242
|
+
);
|
|
243
|
+
|
|
244
|
+
// 1. Position detection patterns
|
|
245
|
+
function setupPositionProbePattern(row: number, col: number) {
|
|
246
|
+
for (let r = -1; r <= 7; r++) {
|
|
247
|
+
if (row + r <= -1 || moduleCount <= row + r) continue;
|
|
248
|
+
for (let c = -1; c <= 7; c++) {
|
|
249
|
+
if (col + c <= -1 || moduleCount <= col + c) continue;
|
|
250
|
+
if (
|
|
251
|
+
(0 <= r && r <= 6 && (c === 0 || c === 6)) ||
|
|
252
|
+
(0 <= c && c <= 6 && (r === 0 || r === 6)) ||
|
|
253
|
+
(2 <= r && r <= 4 && 2 <= c && c <= 4)
|
|
254
|
+
) {
|
|
255
|
+
modules[row + r]![col + c] = true;
|
|
256
|
+
} else {
|
|
257
|
+
modules[row + r]![col + c] = false;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
setupPositionProbePattern(0, 0);
|
|
264
|
+
setupPositionProbePattern(moduleCount - 7, 0);
|
|
265
|
+
setupPositionProbePattern(0, moduleCount - 7);
|
|
266
|
+
|
|
267
|
+
// 2. Alignment patterns
|
|
268
|
+
const pos = PATTERN_POSITION_TABLE[version - 1] || [];
|
|
269
|
+
for (let i = 0; i < pos.length; i++) {
|
|
270
|
+
for (let j = 0; j < pos.length; j++) {
|
|
271
|
+
const row = pos[i]!;
|
|
272
|
+
const col = pos[j]!;
|
|
273
|
+
if (modules[row]![col] !== null) continue;
|
|
274
|
+
|
|
275
|
+
for (let r = -2; r <= 2; r++) {
|
|
276
|
+
for (let c = -2; c <= 2; c++) {
|
|
277
|
+
if (r === -2 || r === 2 || c === -2 || c === 2 || (r === 0 && c === 0)) {
|
|
278
|
+
modules[row + r]![col + c] = true;
|
|
279
|
+
} else {
|
|
280
|
+
modules[row + r]![col + c] = false;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// 3. Timing patterns
|
|
288
|
+
for (let r = 8; r < moduleCount - 8; r++) {
|
|
289
|
+
if (modules[r]![6] === null) modules[r]![6] = r % 2 === 0;
|
|
290
|
+
}
|
|
291
|
+
for (let c = 8; c < moduleCount - 8; c++) {
|
|
292
|
+
if (modules[6]![c] === null) modules[6]![c] = c % 2 === 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// 4. Encode data stream
|
|
296
|
+
const buffer = new BitBuffer();
|
|
297
|
+
buffer.put(4, 4); // 8-bit byte mode indicator
|
|
298
|
+
buffer.put(utf8Bytes.length, 8); // character count
|
|
299
|
+
for (let i = 0; i < utf8Bytes.length; i++) {
|
|
300
|
+
buffer.put(utf8Bytes[i]!, 8);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
const rsBlocks = RS_BLOCK_TABLE[version - 1]![eccLevel]!;
|
|
304
|
+
let totalDataCount = 0;
|
|
305
|
+
for (let i = 0; i < rsBlocks.length; i += 3) {
|
|
306
|
+
totalDataCount += rsBlocks[i]! * rsBlocks[i + 2]!;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// Terminator
|
|
310
|
+
if (buffer.length + 4 <= totalDataCount * 8) {
|
|
311
|
+
buffer.put(0, 4);
|
|
312
|
+
}
|
|
313
|
+
while (buffer.length % 8 !== 0) {
|
|
314
|
+
buffer.putBit(false);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// Padding
|
|
318
|
+
while (buffer.length < totalDataCount * 8) {
|
|
319
|
+
buffer.put(0xec, 8);
|
|
320
|
+
if (buffer.length < totalDataCount * 8) {
|
|
321
|
+
buffer.put(0x11, 8);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// RS Error Correction calculation
|
|
326
|
+
const dataBytes = buffer.buffer;
|
|
327
|
+
let offset = 0;
|
|
328
|
+
const dcData: number[][] = [];
|
|
329
|
+
const ecData: number[][] = [];
|
|
330
|
+
|
|
331
|
+
for (let i = 0; i < rsBlocks.length; i += 3) {
|
|
332
|
+
const numBlocks = rsBlocks[i]!;
|
|
333
|
+
const totalCount = rsBlocks[i + 1]!;
|
|
334
|
+
const dataCount = rsBlocks[i + 2]!;
|
|
335
|
+
const ecCount = totalCount - dataCount;
|
|
336
|
+
const rsPoly = getErrorCorrectionPolynomial(ecCount);
|
|
337
|
+
|
|
338
|
+
for (let b = 0; b < numBlocks; b++) {
|
|
339
|
+
const rawDc = dataBytes.slice(offset, offset + dataCount);
|
|
340
|
+
offset += dataCount;
|
|
341
|
+
dcData.push(rawDc);
|
|
342
|
+
|
|
343
|
+
const rawPoly = new Polynomial(rawDc, rsPoly.getLength() - 1);
|
|
344
|
+
const modPoly = rawPoly.mod(rsPoly);
|
|
345
|
+
const ec = new Array(rsPoly.getLength() - 1).fill(0);
|
|
346
|
+
for (let k = 0; k < ec.length; k++) {
|
|
347
|
+
const modIndex = k + modPoly.getLength() - ec.length;
|
|
348
|
+
ec[k] = modIndex >= 0 ? modPoly.get(modIndex) : 0;
|
|
24
349
|
}
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
350
|
+
ecData.push(ec);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
// Interleave data & error correction codewords
|
|
355
|
+
const finalCodewords: number[] = [];
|
|
356
|
+
let maxDcCount = 0;
|
|
357
|
+
for (const block of dcData) maxDcCount = Math.max(maxDcCount, block.length);
|
|
358
|
+
for (let i = 0; i < maxDcCount; i++) {
|
|
359
|
+
for (const block of dcData) {
|
|
360
|
+
if (i < block.length) finalCodewords.push(block[i]!);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
let maxEcCount = 0;
|
|
365
|
+
for (const block of ecData) maxEcCount = Math.max(maxEcCount, block.length);
|
|
366
|
+
for (let i = 0; i < maxEcCount; i++) {
|
|
367
|
+
for (const block of ecData) {
|
|
368
|
+
if (i < block.length) finalCodewords.push(block[i]!);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// 5. Place data into matrix using standard mask 0
|
|
373
|
+
let inc = -1;
|
|
374
|
+
let row = moduleCount - 1;
|
|
375
|
+
let bitIndex = 0;
|
|
376
|
+
const maskPattern = 0;
|
|
377
|
+
|
|
378
|
+
for (let col = moduleCount - 1; col > 0; col -= 2) {
|
|
379
|
+
if (col === 6) col--;
|
|
380
|
+
while (true) {
|
|
381
|
+
for (let c = 0; c < 2; c++) {
|
|
382
|
+
if (modules[row]![col - c] === null) {
|
|
383
|
+
let dark = false;
|
|
384
|
+
if (bitIndex < finalCodewords.length * 8) {
|
|
385
|
+
const byte = finalCodewords[Math.floor(bitIndex / 8)]!;
|
|
386
|
+
dark = ((byte >>> (7 - (bitIndex % 8))) & 1) === 1;
|
|
387
|
+
bitIndex++;
|
|
388
|
+
}
|
|
389
|
+
const mask = getMask(maskPattern, row, col - c);
|
|
390
|
+
modules[row]![col - c] = mask ? !dark : dark;
|
|
41
391
|
}
|
|
42
|
-
matrix.push(rowData);
|
|
43
392
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
393
|
+
row += inc;
|
|
394
|
+
if (row < 0 || moduleCount <= row) {
|
|
395
|
+
row -= inc;
|
|
396
|
+
inc = -inc;
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// 6. Format Info (Type Info)
|
|
403
|
+
const typeData = (eccLevel << 3) | maskPattern;
|
|
404
|
+
const bits = getBCHTypeInfo(typeData);
|
|
405
|
+
|
|
406
|
+
for (let i = 0; i < 15; i++) {
|
|
407
|
+
const mod = ((bits >> i) & 1) === 1;
|
|
408
|
+
if (i < 6) {
|
|
409
|
+
modules[i]![8] = mod;
|
|
410
|
+
} else if (i < 8) {
|
|
411
|
+
modules[i + 1]![8] = mod;
|
|
412
|
+
} else {
|
|
413
|
+
modules[moduleCount - 15 + i]![8] = mod;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
if (i < 8) {
|
|
417
|
+
modules[8]![moduleCount - i - 1] = mod;
|
|
418
|
+
} else if (i < 9) {
|
|
419
|
+
modules[8]![15 - i - 1 + 1] = mod;
|
|
420
|
+
} else {
|
|
421
|
+
modules[8]![15 - i - 1] = mod;
|
|
47
422
|
}
|
|
48
423
|
}
|
|
424
|
+
|
|
425
|
+
modules[moduleCount - 8]![8] = true;
|
|
426
|
+
|
|
427
|
+
return modules.map(r => r.map(cell => cell === true));
|
|
49
428
|
}
|
|
429
|
+
|
|
430
|
+
export default generateQRMatrix;
|
package/src/index.tsx
CHANGED
|
@@ -365,7 +365,7 @@ const NetworkInspector = ({
|
|
|
365
365
|
crash: false,
|
|
366
366
|
device: false,
|
|
367
367
|
storage: false,
|
|
368
|
-
debugging:
|
|
368
|
+
debugging: false,
|
|
369
369
|
});
|
|
370
370
|
|
|
371
371
|
const [maxNetworkLogs, setMaxNetworkLogs] = useState<number>(100);
|
|
@@ -428,7 +428,7 @@ const NetworkInspector = ({
|
|
|
428
428
|
crash: false,
|
|
429
429
|
device: false,
|
|
430
430
|
storage: false,
|
|
431
|
-
debugging:
|
|
431
|
+
debugging: false,
|
|
432
432
|
});
|
|
433
433
|
setDefaultTab('apis');
|
|
434
434
|
setIsAutoRamLimitEnabled(true);
|
|
@@ -2439,4 +2439,6 @@ export {
|
|
|
2439
2439
|
addTranslations,
|
|
2440
2440
|
setTranslations,
|
|
2441
2441
|
I18nextProvider,
|
|
2442
|
-
} from './i18n';
|
|
2442
|
+
} from './i18n';
|
|
2443
|
+
|
|
2444
|
+
export { LIB_VERSION } from './constants/version';
|