expo-ocr-kit 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +143 -0
  2. package/android/build/.transforms/0ccd80621f9d41140b150fb1d1a89374/results.bin +1 -0
  3. package/android/build/.transforms/0ccd80621f9d41140b150fb1d1a89374/transformed/classes/classes_dex/classes.dex +0 -0
  4. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/results.bin +1 -0
  5. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/BuildConfig.dex +0 -0
  6. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$Companion.dex +0 -0
  7. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$DecodedBitmap.dex +0 -0
  8. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$PreparedImage.dex +0 -0
  9. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$await$2$1.dex +0 -0
  10. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$await$2$2.dex +0 -0
  11. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$await$2$3.dex +0 -0
  12. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$definition$1$2$1.dex +0 -0
  13. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$Coroutine$1.dex +0 -0
  14. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$Coroutine$2.dex +0 -0
  15. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$View$1.dex +0 -0
  16. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$lambda$1$$inlined$Prop$1.dex +0 -0
  17. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$recognizeText$1.dex +0 -0
  18. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$recognizeText$preparedImage$1.dex +0 -0
  19. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule$sam$com_google_android_gms_tasks_OnSuccessListener$0.dex +0 -0
  20. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitModule.dex +0 -0
  21. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitView$webView$1$1.dex +0 -0
  22. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/expo/modules/ocrkit/ExpoOcrKitView.dex +0 -0
  23. package/android/build/.transforms/e1d05a683f9f90125c897565d1f6e5cb/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  24. package/android/build/generated/source/buildConfig/debug/expo/modules/ocrkit/BuildConfig.java +10 -0
  25. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +7 -0
  26. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
  27. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
  28. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
  29. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  30. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  31. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  32. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
  33. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  34. package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
  35. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  36. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  37. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/expo-ocr-kit_debug.kotlin_module +0 -0
  38. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/expo/modules/ocrkit/BuildConfig.class +0 -0
  39. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
  40. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +7 -0
  41. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +7 -0
  42. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
  43. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
  44. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/expo-ocr-kit_debug.kotlin_module +0 -0
  45. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/BuildConfig.class +0 -0
  46. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$Companion.class +0 -0
  47. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$DecodedBitmap.class +0 -0
  48. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$PreparedImage.class +0 -0
  49. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$await$2$1.class +0 -0
  50. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$await$2$2.class +0 -0
  51. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$await$2$3.class +0 -0
  52. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$definition$1$2$1.class +0 -0
  53. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$Coroutine$1.class +0 -0
  54. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$Coroutine$2.class +0 -0
  55. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$View$1.class +0 -0
  56. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$lambda$1$$inlined$Prop$1.class +0 -0
  57. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$recognizeText$1.class +0 -0
  58. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$recognizeText$preparedImage$1.class +0 -0
  59. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule$sam$com_google_android_gms_tasks_OnSuccessListener$0.class +0 -0
  60. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitModule.class +0 -0
  61. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitView$webView$1$1.class +0 -0
  62. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/expo/modules/ocrkit/ExpoOcrKitView.class +0 -0
  63. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  64. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  135. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  136. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  137. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  138. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  139. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  140. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  141. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  142. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  143. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  144. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  145. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  146. package/android/build/outputs/logs/manifest-merger-debug-report.txt +14 -0
  147. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  148. package/android/build/tmp/kotlin-classes/debug/META-INF/expo-ocr-kit_debug.kotlin_module +0 -0
  149. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$Companion.class +0 -0
  150. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$DecodedBitmap.class +0 -0
  151. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$PreparedImage.class +0 -0
  152. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$await$2$1.class +0 -0
  153. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$await$2$2.class +0 -0
  154. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$await$2$3.class +0 -0
  155. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$definition$1$2$1.class +0 -0
  156. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$Coroutine$1.class +0 -0
  157. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$Coroutine$2.class +0 -0
  158. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$$inlined$View$1.class +0 -0
  159. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$definition$lambda$2$lambda$1$$inlined$Prop$1.class +0 -0
  160. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$recognizeText$1.class +0 -0
  161. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$recognizeText$preparedImage$1.class +0 -0
  162. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule$sam$com_google_android_gms_tasks_OnSuccessListener$0.class +0 -0
  163. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitModule.class +0 -0
  164. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitView$webView$1$1.class +0 -0
  165. package/android/build/tmp/kotlin-classes/debug/expo/modules/ocrkit/ExpoOcrKitView.class +0 -0
  166. package/android/build.gradle +23 -0
  167. package/android/src/main/AndroidManifest.xml +2 -0
  168. package/android/src/main/java/expo/modules/ocrkit/ExpoOcrKitModule.kt +185 -0
  169. package/android/src/main/java/expo/modules/ocrkit/ExpoOcrKitView.kt +30 -0
  170. package/app.plugin.js +21 -0
  171. package/build/ExpoOcrKit.types.d.ts +32 -0
  172. package/build/ExpoOcrKit.types.d.ts.map +1 -0
  173. package/build/ExpoOcrKit.types.js +2 -0
  174. package/build/ExpoOcrKit.types.js.map +1 -0
  175. package/build/ExpoOcrKitModule.d.ts +8 -0
  176. package/build/ExpoOcrKitModule.d.ts.map +1 -0
  177. package/build/ExpoOcrKitModule.js +4 -0
  178. package/build/ExpoOcrKitModule.js.map +1 -0
  179. package/build/ExpoOcrKitModule.web.d.ts +8 -0
  180. package/build/ExpoOcrKitModule.web.d.ts.map +1 -0
  181. package/build/ExpoOcrKitModule.web.js +8 -0
  182. package/build/ExpoOcrKitModule.web.js.map +1 -0
  183. package/build/ExpoOcrKitView.d.ts +4 -0
  184. package/build/ExpoOcrKitView.d.ts.map +1 -0
  185. package/build/ExpoOcrKitView.js +7 -0
  186. package/build/ExpoOcrKitView.js.map +1 -0
  187. package/build/ExpoOcrKitView.web.d.ts +4 -0
  188. package/build/ExpoOcrKitView.web.d.ts.map +1 -0
  189. package/build/ExpoOcrKitView.web.js +7 -0
  190. package/build/ExpoOcrKitView.web.js.map +1 -0
  191. package/build/index.d.ts +8 -0
  192. package/build/index.d.ts.map +1 -0
  193. package/build/index.js +9 -0
  194. package/build/index.js.map +1 -0
  195. package/expo-module.config.json +9 -0
  196. package/ios/ExpoOcrKit.podspec +29 -0
  197. package/ios/ExpoOcrKitModule.swift +176 -0
  198. package/ios/ExpoOcrKitView.swift +38 -0
  199. package/package.json +61 -0
package/README.md ADDED
@@ -0,0 +1,143 @@
1
+ # Expo OCR Kit
2
+
3
+ On-device text recognition for Expo and React Native.
4
+
5
+ `expo-ocr-kit` is a native OCR module built with the Expo Modules API. It uses ML Kit on Android and Vision on iOS, and exposes a single typed API for both platforms.
6
+
7
+ ## Demo
8
+
9
+ <p align="center">
10
+ <img src="./assets/demo.gif" alt="Expo OCR Kit demo" width="320" />
11
+ </p>
12
+
13
+ ## Why this package
14
+
15
+ - Built with the Expo Modules API
16
+ - Works in Expo development builds, prebuild workflows, EAS Build, and bare React Native
17
+ - Uses platform OCR engines directly instead of a generic wrapper
18
+ - Returns normalized cross-platform bounding boxes
19
+ - Includes a minimal Expo config plugin for camera permission setup
20
+ - Downsamples large images before OCR to reduce memory pressure
21
+
22
+ ## Installation
23
+
24
+ ```bash
25
+ npm install expo-ocr-kit
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```ts
31
+ import { recognizeText, type OcrResult } from 'expo-ocr-kit';
32
+
33
+ const result: OcrResult = await recognizeText(uri);
34
+ ```
35
+
36
+ `uri` should be a local image URI.
37
+
38
+ ## API
39
+
40
+ ```ts
41
+ type OcrBoundingBox = {
42
+ x: number;
43
+ y: number;
44
+ width: number;
45
+ height: number;
46
+ };
47
+
48
+ type OcrBlock = {
49
+ text: string;
50
+ boundingBox: OcrBoundingBox;
51
+ };
52
+
53
+ type OcrResult = {
54
+ text: string;
55
+ blocks: OcrBlock[];
56
+ };
57
+ ```
58
+
59
+ Bounding boxes are returned in image-space coordinates with a top-left origin on both platforms.
60
+
61
+ ## Expo support
62
+
63
+ This package contains native code.
64
+
65
+ - Supported: Expo development builds
66
+ - Supported: `expo prebuild`
67
+ - Supported: EAS Build
68
+ - Supported: bare React Native
69
+ - Not supported: Expo Go
70
+
71
+ Typical Expo workflow:
72
+
73
+ ```bash
74
+ npx expo prebuild
75
+ npx expo run:android
76
+ npx expo run:ios
77
+ ```
78
+
79
+ ## Camera support
80
+
81
+ The OCR API is image-based. Camera capture should stay in your app layer or use a helper package such as `expo-image-picker`.
82
+
83
+ If your Expo app captures images with the camera, add the bundled config plugin:
84
+
85
+ ```json
86
+ {
87
+ "expo": {
88
+ "plugins": [
89
+ [
90
+ "expo-ocr-kit",
91
+ {
92
+ "cameraPermission": "Allow this app to capture images for OCR."
93
+ }
94
+ ]
95
+ ]
96
+ }
97
+ }
98
+ ```
99
+
100
+ The plugin adds:
101
+
102
+ - iOS: `NSCameraUsageDescription`
103
+ - Android: `android.permission.CAMERA`
104
+
105
+ Runtime permission requests are still your responsibility.
106
+
107
+ ## What makes it different
108
+
109
+ Most OCR packages in this space fall into one of three buckets:
110
+
111
+ - older React Native wrappers with dated native integrations
112
+ - platform-specific text recognition packages
113
+ - Vision Camera frame-processor plugins focused on real-time OCR
114
+
115
+ `expo-ocr-kit` is aimed at a different use case:
116
+
117
+ - Expo-first native module architecture
118
+ - batch OCR on local images
119
+ - clean JS API for both Expo and bare React Native apps
120
+ - native implementation details kept behind a small, typed surface
121
+
122
+ If you need real-time OCR from camera frames, a Vision Camera plugin is the right tool. If you need a production-friendly OCR module for captured images, scanned documents, screenshots, and imported files, this package is the better fit.
123
+
124
+ ## Implementation notes
125
+
126
+ - Android uses ML Kit with URI loading, EXIF-aware rotation handling, and image downsampling.
127
+ - iOS uses Vision with `CGImageSource` thumbnail decoding and coordinate normalization.
128
+ - Large images are processed on reduced-size native buffers, but bounding boxes are scaled back to the original image space before they are returned.
129
+
130
+ ## Design direction
131
+
132
+ The core API stays intentionally generic:
133
+
134
+ ```ts
135
+ recognizeText(uri: string): Promise<OcrResult>
136
+ ```
137
+
138
+ Receipt parsing, invoice extraction, field detection, and domain-specific post-processing belong above OCR rather than inside the low-level recognition API.
139
+
140
+ ## Notes for contributors
141
+
142
+ - Native iOS builds can be sensitive to filesystem paths with spaces. A path without spaces is recommended when working on the example app locally.
143
+ - If you change native Kotlin or Swift code, rebuild the app. Metro reload is only enough for JavaScript changes.
@@ -0,0 +1 @@
1
+ o/bundleLibRuntimeToDirDebug
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Automatically generated file. DO NOT MODIFY
3
+ */
4
+ package expo.modules.ocrkit;
5
+
6
+ public final class BuildConfig {
7
+ public static final boolean DEBUG = Boolean.parseBoolean("true");
8
+ public static final String LIBRARY_PACKAGE_NAME = "expo.modules.ocrkit";
9
+ public static final String BUILD_TYPE = "debug";
10
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="expo.modules.ocrkit" >
4
+
5
+ <uses-sdk android:minSdkVersion="24" />
6
+
7
+ </manifest>
@@ -0,0 +1,18 @@
1
+ {
2
+ "version": 3,
3
+ "artifactType": {
4
+ "type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
5
+ "kind": "Directory"
6
+ },
7
+ "applicationId": "expo.modules.ocrkit",
8
+ "variantName": "debug",
9
+ "elements": [
10
+ {
11
+ "type": "SINGLE",
12
+ "filters": [],
13
+ "attributes": [],
14
+ "outputFile": "AndroidManifest.xml"
15
+ }
16
+ ],
17
+ "elementType": "File"
18
+ }
@@ -0,0 +1,6 @@
1
+ aarFormatVersion=1.0
2
+ aarMetadataVersion=1.0
3
+ minCompileSdk=1
4
+ minCompileSdkExtension=0
5
+ minAndroidGradlePluginVersion=1.0.0
6
+ coreLibraryDesugaringEnabled=false
@@ -0,0 +1,2 @@
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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/android/build/generated/res/resValues/debug"/></dataSet><mergedItems/></merger>
@@ -0,0 +1,2 @@
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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/android/build/intermediates/shader_assets/debug/compileDebugShaders/out"/></dataSet></merger>
@@ -0,0 +1,2 @@
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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/android/src/debug/jniLibs"/></dataSet></merger>
@@ -0,0 +1,2 @@
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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/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/manojkanth/Desktop/Projects/mine/npm packages/Expo-ocr-kit/expo-ocr-kit/android/src/debug/shaders"/></dataSet></merger>
@@ -0,0 +1,2 @@
1
+ R_DEF: Internal format may change without notice
2
+ local
@@ -0,0 +1,7 @@
1
+ 1<?xml version="1.0" encoding="utf-8"?>
2
+ 2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ 3 package="expo.modules.ocrkit" >
4
+ 4
5
+ 5 <uses-sdk android:minSdkVersion="24" />
6
+ 6
7
+ 7</manifest>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="expo.modules.ocrkit" >
4
+
5
+ <uses-sdk android:minSdkVersion="24" />
6
+
7
+ </manifest>