2.0.0-beta.19 • Published 4 months ago

@mobaibio/mobai-biometric v2.0.0-beta.19

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

React Native version of Mobai Biometric Capture SDK

Installation

  1. Use the following command to add the dependency to your package.json file:

    npm i @mobaibio/mobai-biometric
  2. Run the following command to install the dependency

    yarn

iOS

  1. The SDK needs to access the camera on the device. A NSCameraUsageDescription must be added to the Info.plist for your application.
  2. Some additions must be added to the podfile for the iOS project in order to integrate the SDK correctly.

    • If use_frameworks! :linkage => :static is used then the following must be added to the podfile to ensure dependency is built as a dynamic framework:

      pre_install do |installer|
          installer.pod_targets.each do |pod|
          if ['SwiftProtobuf'].include?(pod.name)
              def pod.dynamic_framework?;
                  true
              end
              def pod.build_type;
                  Pod::BuildType.dynamic_framework
              end
          end
          end
      end
    • A post install script to enable module stability in the SDK and its dependencies:

      post_install do |installer|
          installer.pods_project.targets.each do |target|
              if ['MobaiBiometric', 'SwiftProtobuf'].include? target.name
                  target.build_configurations.each do |config|
                  config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
              end
          end
      end

Android

The repository where the MobaiBiometric SDK used by the React Native module is located must be added to the list of repositories.

// build.gradle (Project)
allprojects {
    repositories {
        maven {
            url "https://gitlab.com/api/v4/projects/36441060/packages/maven"
        }
    }
}

Usage

Please check out the developer documentation for detailed instructions on how to use the library.

2.0.0-beta.19

4 months ago

2.0.0-beta.18

5 months ago

2.0.0-beta.17

5 months ago

2.0.0-beta.16

5 months ago

2.0.0-beta.15

5 months ago

2.0.0-beta.14

6 months ago

2.0.0-beta.13

6 months ago

2.0.0-beta.12

7 months ago

2.0.0-beta.11

7 months ago