react-native-scanbot-barcode-scanner-sdk 3.3.0 → 3.3.1-beta.3
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/6.1.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.1.1/gc.properties +0 -0
- package/android/.gradle/7.0-rc-1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.0-rc-1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.0-rc-1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0-rc-1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0-rc-1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.idea/caches/build_file_checksums.ser +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +22 -0
- package/android/.idea/jarRepositories.xml +50 -0
- package/android/.idea/libraries/Gradle__androidx_activity_activity_1_2_3_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_2_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_experimental_1_1_0_rc01_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_3_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_resources_1_3_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_camera_camera_camera2_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_camera_camera_core_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_camera_camera_lifecycle_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_camera_camera_view_1_0_0_alpha24_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_cardview_cardview_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_1_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_2_0_4_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_constraintlayout_constraintlayout_solver_2_0_4.xml +9 -0
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_1_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_core_core_1_5_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_core_core_ktx_1_3_2_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_databinding_viewbinding_4_2_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_dynamicanimation_dynamicanimation_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_3_4_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_v4_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_3_1.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_3_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_3_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_ktx_2_3_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_3_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_savedstate_2_3_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_media_media_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_recyclerview_recyclerview_1_1_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_savedstate_savedstate_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_transition_transition_1_2_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_viewpager2_viewpager2_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_commonsware_cwac_camera_camera_0_6_41_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_2_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_2_0_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_2_0_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_2_0_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_2_0_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_2_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagefilters_2_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagetranscoder_2_0_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_11_2.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_60_6_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_6_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_android_material_material_1_3_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_code_gson_gson_2_8_6.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_dagger_dagger_2_35.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_guava_listenablefuture_1_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_3_12_1.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_3_12_1.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_15_0.xml +13 -0
- package/android/.idea/libraries/Gradle__commons_io_commons_io_2_4.xml +13 -0
- package/android/.idea/libraries/Gradle__io_reactivex_rxjava2_rxandroid_2_0_1_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__io_reactivex_rxjava2_rxjava_2_1_5.xml +13 -0
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_barcode_scanner_sdk_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_barcode_scanner_sdk_ui_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_sdk_barcode_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_sdk_base_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_sdk_ui_barcode_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_scanbot_sdk_ui_base_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_sdk_barcode_assets_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_sdk_core_barcode_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_sdk_core_barcode_native_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__io_scanbot_sdk_core_sap_3_0_1_aar.xml +11 -0
- package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_4_20.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_4_20.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_4_20.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_android_1_4_1.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlinx_kotlinx_coroutines_core_jvm_1_4_1.xml +13 -0
- package/android/.idea/libraries/Gradle__org_reactivestreams_reactive_streams_1_0_1.xml +13 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/modules/android.iml +133 -0
- package/android/.idea/modules.xml +8 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.idea/workspace.xml +62 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +1 -1
- package/android/build/intermediates/compile_library_classes/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties +3 -4
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +1 -1
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/JSONUtils$WritableMapBuilder.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/JSONUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ObjectMapper.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule$2$1$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule$2$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule$4.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/StorageUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/EventEmitter.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/ScanbotBarcodeCameraViewFragment$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/ScanbotBarcodeCameraViewFragment$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/ScanbotBarcodeCameraViewFragment$3$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/ScanbotBarcodeCameraViewFragment$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/ScanbotBarcodeCameraViewFragment.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/ScanbotBarcodeCameraViewManager.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/common/ScanbotComponentFrameLayout.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/components/common/ScanbotComponentRootView.class +0 -0
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +1 -1
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLibraryResources/R-def.txt +0 -1
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +3 -3
- package/android/build/intermediates/res/symbol-table-with-package/debug/package-aware-r.txt +43 -5
- package/android/build/intermediates/symbols/debug/R.txt +907 -869
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +28 -28
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactlibrary/ScanbotBarcodeSdkModule.java +0 -6
- package/android/src/main/java/com/reactlibrary/ScanbotBarcodeSdkPackage.java +7 -10
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkPackage.java +6 -10
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/ScanbotBarcodeCameraView.java +380 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/{RNScanbotBarcodeCameraConfiguration.java → ScanbotBarcodeCameraViewConfiguration.java} +18 -21
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/ScanbotBarcodeCameraViewManager.java +114 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/communication/{RNScanbotEventEmitter.java → ScanbotEventEmitter.java} +7 -7
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/communication/{RNScanbotEventReceiver.java → ScanbotEventReceiver.java} +7 -7
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/models/ScanbotFinderInset.java +8 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/ui/ScanbotViewWrapper.java +26 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/utils/ScanbotViewUtils.java +52 -0
- package/ios/Components/BarcodeCameraView/RNScanbotBarcodeCameraView.m +1 -1
- package/package.json +1 -1
- package/src/components/barcode-camera-view/scanbot-barcode-camera-view.tsx +30 -3
- package/android/build/.transforms/8cdb68f56773f65afa4976aa86d988f7/classes/classes.dex +0 -0
- package/android/build/.transforms/8cdb68f56773f65afa4976aa86d988f7.bin +0 -1
- package/android/build/.transforms/991094845a707011dcf91007d9838bb7/classes/classes.dex +0 -0
- package/android/build/.transforms/991094845a707011dcf91007d9838bb7.bin +0 -1
- package/android/build/intermediates/incremental/debug-mergeNativeLibs/merge-state +0 -0
- 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/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ReactBarcodeExtensionsFilter$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ReactBarcodeExtensionsFilter$Type.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/ReactBarcodeExtensionsFilter.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/barcode/ScanbotBarcodeDetectorAdditionalConfigBuilder.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/barcode/ScanbotBarcodeDetectorConfigBuilder.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/filters/ReactBarcodeExtensionsFilter$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/filters/ReactBarcodeExtensionsFilter$Type.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/filters/ReactBarcodeExtensionsFilter.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/utils/BitmapHelper.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/utils/JSONUtils$WritableMapBuilder.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/utils/JSONUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/utils/LogUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/io/scanbot/barcodesdk/plugin/reactnative/utils/ResponseUtils.class +0 -0
- package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
- package/android/build/intermediates/packaged_res/debug/drawable/ic_baseline_arrow_back_24.xml +0 -10
- package/android/build/intermediates/runtime_library_classes/debug/classes.jar +0 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/RNScanbotBarcodeCameraComponent.java +0 -283
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcodecameraview/RNScanbotBarcodeCameraUi.java +0 -81
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/RNScanbotNativeComponent.java +0 -90
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/RNScanbotNativeComponentManager.java +0 -133
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/RNScanbotNativeComponentManagerFactory.java +0 -40
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/RNScanbotNativeComponentUi.java +0 -131
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/views/RNScanbotNativeComponentFrameLayout.java +0 -53
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/base/views/RNScanbotNativeComponentRootView.java +0 -154
- package/android/src/main/res/layout/component_barcode_camera_view.xml +0 -28
- package/android/src/main/res/layout/fragment_barcode_scanner.xml +0 -23
- package/ios/.DS_Store +0 -0
- package/ios/ScanbotBarcodeSdk.xcodeproj/xcuserdata/mayankpatil.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
- package/ios/ScanbotBarcodeSdk.xcworkspace/xcuserdata/mayankpatil.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
package io.scanbot.barcodesdk.plugin.reactnative.components.base;
|
|
2
|
-
|
|
3
|
-
import android.view.View;
|
|
4
|
-
|
|
5
|
-
import androidx.annotation.NonNull;
|
|
6
|
-
|
|
7
|
-
import com.facebook.react.bridge.ReactContext;
|
|
8
|
-
import com.facebook.react.bridge.WritableNativeMap;
|
|
9
|
-
|
|
10
|
-
import io.scanbot.barcodesdk.plugin.reactnative.components.base.communication.RNScanbotEventEmitter;
|
|
11
|
-
import io.scanbot.barcodesdk.plugin.reactnative.components.base.views.RNScanbotNativeComponentRootView;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* This is the UI component of your custom React Native components.
|
|
15
|
-
* It expects you to return a ScanbotComponentRootView in createRootView.
|
|
16
|
-
* It takes care of attaching listeners and handling layout changes re-measurements.
|
|
17
|
-
*/
|
|
18
|
-
public abstract class RNScanbotNativeComponentUi {
|
|
19
|
-
// The rootView created through createRootView()
|
|
20
|
-
protected RNScanbotNativeComponentRootView rootView;
|
|
21
|
-
|
|
22
|
-
// The React Context
|
|
23
|
-
protected ReactContext reactContext;
|
|
24
|
-
|
|
25
|
-
// Listener to handle the re-layout when children change... they grow up so fast
|
|
26
|
-
private RNScanbotNativeComponentRootView.IOnChildRemovedListener childRemovedListener;
|
|
27
|
-
private View.OnAttachStateChangeListener onAttachStateChangeListener;
|
|
28
|
-
private Runnable onViewRecreated;
|
|
29
|
-
|
|
30
|
-
public RNScanbotNativeComponentUi(@NonNull final ReactContext reactContext) { this.reactContext = reactContext; }
|
|
31
|
-
|
|
32
|
-
/*
|
|
33
|
-
* Disposes the component
|
|
34
|
-
*/
|
|
35
|
-
public void dispose() {
|
|
36
|
-
if (childRemovedListener != null) {
|
|
37
|
-
rootView.removeOneShotChildRemovedListener(childRemovedListener);
|
|
38
|
-
}
|
|
39
|
-
if (onAttachStateChangeListener != null) {
|
|
40
|
-
rootView.removeOnAttachStateChangeListener(onAttachStateChangeListener);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
childRemovedListener = null;
|
|
44
|
-
onAttachStateChangeListener = null;
|
|
45
|
-
|
|
46
|
-
this.rootView = null;
|
|
47
|
-
this.reactContext = null;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/*
|
|
51
|
-
* Returns the rootView created by createRootView, after performing some UI post operations
|
|
52
|
-
*/
|
|
53
|
-
public RNScanbotNativeComponentRootView getRootView() {
|
|
54
|
-
if (this.rootView == null) {
|
|
55
|
-
this.rootView = createAndSetupRootView();
|
|
56
|
-
this.notifyViewRecreated();
|
|
57
|
-
}
|
|
58
|
-
return this.rootView;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
public void _setOnViewRecreatedListener(final Runnable runnable) {
|
|
62
|
-
this.onViewRecreated = runnable;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
public void removeOnViewRecreatedListener() {
|
|
66
|
-
this.onViewRecreated = null;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
private void notifyViewRecreated() {
|
|
70
|
-
if (this.onViewRecreated == null) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
this.onViewRecreated.run();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/*
|
|
77
|
-
* You must construct your view inside this method, and then return it.
|
|
78
|
-
*/
|
|
79
|
-
protected abstract RNScanbotNativeComponentRootView createRootView(@NonNull final ReactContext reactContext);
|
|
80
|
-
|
|
81
|
-
/*
|
|
82
|
-
* Calls the inheriting class's Root View custom creator, and performs some additional setup to
|
|
83
|
-
* it, before returning it.
|
|
84
|
-
*/
|
|
85
|
-
private RNScanbotNativeComponentRootView createAndSetupRootView() {
|
|
86
|
-
final RNScanbotNativeComponentRootView rootView = createRootView(this.reactContext);
|
|
87
|
-
onAttachStateChangeListener = new View.OnAttachStateChangeListener() {
|
|
88
|
-
@Override
|
|
89
|
-
public void onViewAttachedToWindow(View v) {
|
|
90
|
-
remeasureViews(rootView, reactContext);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@Override
|
|
94
|
-
public void onViewDetachedFromWindow(View v) {}
|
|
95
|
-
};
|
|
96
|
-
rootView.addOnAttachStateChangeListener(onAttachStateChangeListener);
|
|
97
|
-
return rootView;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/*
|
|
101
|
-
* UI Thread: Remeasures and layouts the views
|
|
102
|
-
*/
|
|
103
|
-
public void remeasureViews(
|
|
104
|
-
@NonNull final RNScanbotNativeComponentRootView rootView,
|
|
105
|
-
@NonNull final ReactContext reactContext
|
|
106
|
-
) {
|
|
107
|
-
reactContext.runOnUiQueueThread(() -> {
|
|
108
|
-
// The view is remeasured as soon as it is attached to the window
|
|
109
|
-
rootView.post(rootView.measureAndLayout);
|
|
110
|
-
|
|
111
|
-
// Runs custom logic that has to be performed after the remeasuring of the views
|
|
112
|
-
rootView.post(this::onViewsRemeasured);
|
|
113
|
-
|
|
114
|
-
// Take care of your children
|
|
115
|
-
if (childRemovedListener != null) {
|
|
116
|
-
rootView.removeOneShotChildRemovedListener(childRemovedListener);
|
|
117
|
-
}
|
|
118
|
-
childRemovedListener = child -> new RNScanbotEventEmitter(reactContext, rootView)
|
|
119
|
-
.emitEvent(
|
|
120
|
-
RNScanbotEventEmitter.CommonEvents.REQUEST_COMPONENT_RELOAD,
|
|
121
|
-
new WritableNativeMap());
|
|
122
|
-
rootView.addOneShotChildRemovedListener(childRemovedListener);
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Called after the remeasuring of the views has been completed. Override this if you want
|
|
128
|
-
* to apply some custom UI logic in that point of the lifecycle.
|
|
129
|
-
*/
|
|
130
|
-
protected void onViewsRemeasured() {}
|
|
131
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
package io.scanbot.barcodesdk.plugin.reactnative.components.base.views;
|
|
2
|
-
|
|
3
|
-
import android.content.Context;
|
|
4
|
-
import android.util.AttributeSet;
|
|
5
|
-
import android.widget.FrameLayout;
|
|
6
|
-
|
|
7
|
-
import java.util.ArrayList;
|
|
8
|
-
import java.util.List;
|
|
9
|
-
|
|
10
|
-
public class RNScanbotNativeComponentFrameLayout extends FrameLayout {
|
|
11
|
-
|
|
12
|
-
interface ILayoutChangeListener {
|
|
13
|
-
void onFrameLayoutChanged(int width, int height, int left, int top, int right, int bottom);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
public RNScanbotNativeComponentFrameLayout(Context context, AttributeSet attrs) {
|
|
17
|
-
super(context, attrs);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
public RNScanbotNativeComponentFrameLayout(Context context, AttributeSet attrs, int defStyle) {
|
|
21
|
-
super(context, attrs, defStyle);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
public final Runnable measureAndLayout =
|
|
25
|
-
new Runnable() {
|
|
26
|
-
@Override
|
|
27
|
-
public void run() {
|
|
28
|
-
measure(
|
|
29
|
-
MeasureSpec.makeMeasureSpec(getWidth(), MeasureSpec.EXACTLY),
|
|
30
|
-
MeasureSpec.makeMeasureSpec(getHeight(), MeasureSpec.EXACTLY));
|
|
31
|
-
layout(getLeft(), getTop(), getRight(), getBottom());
|
|
32
|
-
notifyListeners(getWidth(), getHeight(), getLeft(), getTop(), getRight(), getBottom());
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
private final List<ILayoutChangeListener> layoutChangeListeners = new ArrayList<>();
|
|
37
|
-
|
|
38
|
-
@Override
|
|
39
|
-
public void requestLayout() {
|
|
40
|
-
super.requestLayout();
|
|
41
|
-
post(measureAndLayout);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
public void addLayoutChangeListener(ILayoutChangeListener listener) {
|
|
45
|
-
layoutChangeListeners.add(listener);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
private void notifyListeners(int width, int height, int left, int top, int right, int bottom) {
|
|
49
|
-
for(ILayoutChangeListener listener : layoutChangeListeners) {
|
|
50
|
-
listener.onFrameLayoutChanged(width, height, left, top, right, bottom);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
package io.scanbot.barcodesdk.plugin.reactnative.components.base.views;
|
|
2
|
-
|
|
3
|
-
import android.content.Context;
|
|
4
|
-
import android.util.AttributeSet;
|
|
5
|
-
import android.view.Choreographer;
|
|
6
|
-
import android.view.MotionEvent;
|
|
7
|
-
import android.view.View;
|
|
8
|
-
import android.widget.FrameLayout;
|
|
9
|
-
|
|
10
|
-
import com.facebook.react.ReactRootView;
|
|
11
|
-
|
|
12
|
-
import java.lang.reflect.Type;
|
|
13
|
-
import java.util.ArrayList;
|
|
14
|
-
import java.util.List;
|
|
15
|
-
|
|
16
|
-
public class RNScanbotNativeComponentRootView extends ReactRootView {
|
|
17
|
-
|
|
18
|
-
public interface ILayoutChangeListener {
|
|
19
|
-
void onFrameLayoutChanged(int width, int height, int left, int top, int right, int bottom);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public interface IOnChildRemovedListener {
|
|
23
|
-
void onChildRemoved(final View child);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public final Runnable measureAndLayout = () -> {
|
|
27
|
-
measure(
|
|
28
|
-
MeasureSpec.makeMeasureSpec(getWidth(), MeasureSpec.EXACTLY),
|
|
29
|
-
MeasureSpec.makeMeasureSpec(getHeight(), MeasureSpec.EXACTLY));
|
|
30
|
-
layout(getLeft(), getTop(), getRight(), getBottom());
|
|
31
|
-
notifyLayoutChangeListeners(getWidth(), getHeight(), getLeft(), getTop(), getRight(), getBottom());
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
private final List<ILayoutChangeListener> layoutChangeListeners = new ArrayList<>();
|
|
35
|
-
private final List<IOnChildRemovedListener> childRemovedListeners = new ArrayList<>();
|
|
36
|
-
private boolean shouldNotifyWhenChildIsRemoved = false;
|
|
37
|
-
|
|
38
|
-
public RNScanbotNativeComponentRootView(Context context) {
|
|
39
|
-
super(context);
|
|
40
|
-
instantiate();
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
public RNScanbotNativeComponentRootView(Context context, AttributeSet attrs) {
|
|
44
|
-
super(context, attrs);
|
|
45
|
-
instantiate();
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
public RNScanbotNativeComponentRootView(Context context, AttributeSet attrs, int defStyle) {
|
|
49
|
-
super(context, attrs, defStyle);
|
|
50
|
-
instantiate();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
private void instantiate() {}
|
|
54
|
-
|
|
55
|
-
@Override
|
|
56
|
-
protected void onAttachedToWindow() {
|
|
57
|
-
super.onAttachedToWindow();
|
|
58
|
-
applyChildrenMeasureWorkaround();
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
public void applyChildrenMeasureWorkaround() {
|
|
62
|
-
Choreographer.getInstance().postFrameCallback(frameTimeNanos -> {
|
|
63
|
-
for (int i = 0; i < getChildCount(); i++) {
|
|
64
|
-
View child = getChildAt(i);
|
|
65
|
-
if (child instanceof FrameLayout) {
|
|
66
|
-
child.measure(MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.EXACTLY),
|
|
67
|
-
MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.EXACTLY));
|
|
68
|
-
child.layout(0, 0, child.getMeasuredWidth(), child.getMeasuredHeight());
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
getViewTreeObserver().dispatchOnGlobalLayout();
|
|
72
|
-
shouldNotifyWhenChildIsRemoved = true;
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@Override
|
|
77
|
-
public boolean onInterceptTouchEvent(MotionEvent ev) {
|
|
78
|
-
return super.onInterceptTouchEvent(ev);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
@Override
|
|
82
|
-
public void requestLayout() {
|
|
83
|
-
super.requestLayout();
|
|
84
|
-
post(measureAndLayout);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
public void addLayoutChangeListener(ILayoutChangeListener listener) {
|
|
88
|
-
layoutChangeListeners.add(listener);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
public void addOneShotChildRemovedListener(IOnChildRemovedListener listener) {
|
|
92
|
-
if (!childRemovedListeners.contains(listener)) {
|
|
93
|
-
childRemovedListeners.add(listener);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
public void removeOneShotChildRemovedListener(IOnChildRemovedListener listener) {
|
|
98
|
-
childRemovedListeners.remove(listener);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
private void notifyLayoutChangeListeners(int width, int height, int left, int top, int right, int bottom) {
|
|
102
|
-
for(ILayoutChangeListener listener : layoutChangeListeners) {
|
|
103
|
-
listener.onFrameLayoutChanged(width, height, left, top, right, bottom);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
private void notifyChildRemovedListeners(final View childView) {
|
|
108
|
-
// if (!shouldNotifyWhenChildIsRemoved) {
|
|
109
|
-
// return;
|
|
110
|
-
// }
|
|
111
|
-
// -> Might be useful one day
|
|
112
|
-
// for (IOnChildRemovedListener listener : childRemovedListeners) {
|
|
113
|
-
// if (!lastNotifiedChildViews.contains(childView)) {
|
|
114
|
-
// listener.onChildRemoved(childView);
|
|
115
|
-
// lastNotifiedChildViews.add(childView);
|
|
116
|
-
// } else {
|
|
117
|
-
// lastNotifiedChildViews.clear();
|
|
118
|
-
// }
|
|
119
|
-
// }
|
|
120
|
-
//
|
|
121
|
-
// childRemovedListeners.clear();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
@Override
|
|
125
|
-
public void onViewAdded(View child) {
|
|
126
|
-
super.onViewAdded(child);
|
|
127
|
-
child.bringToFront();
|
|
128
|
-
child.setZ(2.0f);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Called when a child view is removed from this ViewGroup. Overrides should always
|
|
133
|
-
* call super.onViewRemoved.
|
|
134
|
-
*
|
|
135
|
-
* @param child the removed child view
|
|
136
|
-
*/
|
|
137
|
-
@Override
|
|
138
|
-
public void onViewRemoved(View child) {
|
|
139
|
-
super.onViewRemoved(child);
|
|
140
|
-
notifyChildRemovedListeners(child);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@Override
|
|
144
|
-
public void onAttachedToReactInstance() {
|
|
145
|
-
super.onAttachedToReactInstance();
|
|
146
|
-
shouldNotifyWhenChildIsRemoved = false;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
@Override
|
|
150
|
-
protected void onDetachedFromWindow() {
|
|
151
|
-
super.onDetachedFromWindow();
|
|
152
|
-
shouldNotifyWhenChildIsRemoved = false;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<io.scanbot.barcodesdk.plugin.reactnative.components.base.views.RNScanbotNativeComponentRootView
|
|
3
|
-
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
-
android:descendantFocusability="afterDescendants"
|
|
5
|
-
android:layout_width="match_parent"
|
|
6
|
-
android:layout_height="match_parent">
|
|
7
|
-
<io.scanbot.barcodesdk.plugin.reactnative.components.base.views.RNScanbotNativeComponentFrameLayout
|
|
8
|
-
android:id="@+id/barcode_camera_layout"
|
|
9
|
-
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
10
|
-
android:layout_width="match_parent"
|
|
11
|
-
android:layout_height="match_parent">
|
|
12
|
-
|
|
13
|
-
<io.scanbot.sdk.ui.camera.ScanbotCameraXView
|
|
14
|
-
android:id="@+id/barcode_camera"
|
|
15
|
-
android:orientation="vertical"
|
|
16
|
-
android:layout_width="match_parent"
|
|
17
|
-
android:layout_height="match_parent"
|
|
18
|
-
android:background="@android:color/black"
|
|
19
|
-
app:finder_view_id="@id/barcode_finder_overlay"/>
|
|
20
|
-
|
|
21
|
-
<io.scanbot.sdk.ui.camera.FinderOverlayView
|
|
22
|
-
android:id="@+id/barcode_finder_overlay"
|
|
23
|
-
app:min_padding="64dp"
|
|
24
|
-
android:layout_width="match_parent"
|
|
25
|
-
android:layout_height="match_parent" />
|
|
26
|
-
|
|
27
|
-
</io.scanbot.barcodesdk.plugin.reactnative.components.base.views.RNScanbotNativeComponentFrameLayout>
|
|
28
|
-
</io.scanbot.barcodesdk.plugin.reactnative.components.base.views.RNScanbotNativeComponentRootView>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<io.scanbot.barcodesdk.plugin.reactnative.components.common.ScanbotComponentFrameLayout
|
|
3
|
-
android:id="@+id/barcode_camera_layout"
|
|
4
|
-
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
5
|
-
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
6
|
-
android:layout_width="match_parent"
|
|
7
|
-
android:layout_height="match_parent">
|
|
8
|
-
|
|
9
|
-
<io.scanbot.sdk.camera.ScanbotCameraView
|
|
10
|
-
android:id="@+id/barcode_camera"
|
|
11
|
-
android:orientation="vertical"
|
|
12
|
-
android:layout_width="match_parent"
|
|
13
|
-
android:layout_height="match_parent"
|
|
14
|
-
android:background="@android:color/black"
|
|
15
|
-
app:finder_view_id="@id/barcode_finder_overlay"/>
|
|
16
|
-
|
|
17
|
-
<io.scanbot.sdk.ui.camera.FinderOverlayView
|
|
18
|
-
android:id="@+id/barcode_finder_overlay"
|
|
19
|
-
app:min_padding="64dp"
|
|
20
|
-
android:layout_width="match_parent"
|
|
21
|
-
android:layout_height="match_parent" />
|
|
22
|
-
|
|
23
|
-
</io.scanbot.barcodesdk.plugin.reactnative.components.common.ScanbotComponentFrameLayout>
|
package/ios/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>SchemeUserState</key>
|
|
6
|
-
<dict>
|
|
7
|
-
<key>ScanbotBarcodeSdk.xcscheme_^#shared#^_</key>
|
|
8
|
-
<dict>
|
|
9
|
-
<key>orderHint</key>
|
|
10
|
-
<integer>0</integer>
|
|
11
|
-
</dict>
|
|
12
|
-
</dict>
|
|
13
|
-
</dict>
|
|
14
|
-
</plist>
|