npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-abbyy-mobile-capture-sample-ui-imagecapture

v1.0.2

Published

ABBYY Mobile Capture React Native Module allows to use the Image Capture feature of ABBYY Mobile Capture in apps based on the [React Native](https://reactnative.dev/) framework.

Downloads

56

Readme

ABBYY Mobile Capture React Native Module

ABBYY Mobile Capture React Native Module allows to use the Image Capture feature of ABBYY Mobile Capture in apps based on the React Native framework.

This plugin requires the ABBYY Mobile Capture native libraries which are available for Android and iOS. You can request ABBYY Mobile Capture trial version on the ABBYY website.

The native libraries support the following systems:

  • Android version: 5.0 or later for ARMv7 (armeabi-v7a), ARMv8 (arm64-v8a), x86 and x86_64 processors
  • iOS: versions 11.x and later

Getting started

Note If you are new to React Native, set up development environment first. You will need yarn, npx and cocoapods (for iOS) utilities. See React Native documentation for details.

  1. Choose one of the following ways to add the module to your project:

    • From npm:
    yarn add react-native-abbyy-mobile-capture
    • From sources:
    yarn add file:"Path to react-native-abbyy-mobile-capture sources"
  2. Request ABBYY Mobile Capture trial version on the ABBYY website and add it to your project:

    • Copy iOS assets directory to the project into ./assets folder.
    • Copy your license into ./assets with MobileCapture.License name
    • Copy Android libs directory to the project into ./android/libs folder
    • Copy iOS libs directory to the project into ./ios/libs folder
  3. Proceed setup depending on the platform:

    • Android:
      • Add gradle file to the project. Usually it is located at ./android/build.gradle:
        allprojects {
            repositories {
                flatDir {
                dirs "$rootDir/libs"
                }
            }
        }
        subprojects {
            afterEvaluate {
                dependencies {
                    // Change abbyy-mi-sdk-2.0 to abbyy-rtr-sdk-1.0 if you need to use
                    recognition API (MI+Extended or MI+ExtendedDC)
                    implementation(name: 'abbyy-mi-sdk-2.0', ext: 'aar')
                    implementation(name: 'abbyy-ui-1.0', ext: 'aar')
                }
            }
        }
      • Add to application gradle file. Usually it is located at ./android/app/build.gradle:
        android {
            defaultConfig {
                ndk {
                    // Filter out mips
                    abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
                }
            }
            sourceSets {
                main {
                    assets.srcDirs += [ "$rootDir/../assets" ]
                }
            }
            packagingOptions {
                pickFirst 'lib/x86/libc++_shared.so'
                pickFirst 'lib/armeabi-v7a/libc++_shared.so'
                pickFirst 'lib/arm64-v8a/libc++_shared.so'
                pickFirst 'lib/x86_64/libc++_shared.so'
            }
        }
      • Set minimum SDK version to '21'.
      • Add adb utility to PATH environment variable. adb is located in Android sdk directory/platform-tools directory.
    • iOS:
      • Run pod install from iOS directory.
      • Select your project in the Target group and open the Build Settings tab. In the Search Paths section add to the Framework Search Paths the following path:
      ${PROJECT_DIR}/libs
      • On the Build Options tab set Enable Bitcode option to No.
      • Open the Build Phases tab. In the Link Binary With Libraries section, click "+" and add the AbbyyRtrSDK.framework and AbbyyUI.framework.
      • In Build Phases, add a new Run Script phase. Run the copy_frameworks.sh script that removes the frameworks for the non-active CPU architectures (the complete list depends on the project settings), and sign the resulting framework. This is a required step before uploading your application to App Store.
      /bin/sh "${SRCROOT}/libs/copy_frameworks.sh"
      • To add the resource files and set up the copying rules, in Build Phases add one more Run Script phase. Run the copy_assets.py script to automatically copy all resource files to corresponding destinations and add necessary dictionaries.
      python "${SRCROOT}/../assets/copy_assets.py"  
      • In Build Phases, go to the Copy Bundle Resources section and add the MobileCapture.License file.
      • In the info.plist file add permission for working with camera and gallery if necessary.

ABBYY Mobile Capture React Native Module Example

How to run samples

  1. Request ABBYY Mobile Capture trial version on the ABBYY website and add it to your project:

    • Copy iOS assets directory to the project into ./assets folder.
    • Copy your license into ./assets with MobileCapture.License name
    • Copy Android libs directory to the project into ./android/libs folder
    • Copy iOS libs directory to the project into ./ios/libs folder
  2. Run yarn install from the sample root

  3. Run pod install from the sample/ios directory

  4. To run application do the following:

    • Android:
      • From console:
        • Execute npx react-native run-android from the sample root
      • From Android Studio:
        • Open sample/android project
        • Click Run app button
    • iOS:
      • From console:
        • Execute npx react-native run-ios from the sample root It runs sample in the simulator
      • From XCode
        • Open sample/ios project
        • Click Run button

Documentation

See full documentation on the ABBYY Documentation website.