GithubHelp home page GithubHelp logo

veryfi / veryfi-lens-flutter-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 2.0 1.27 MB

Example Demo App about how to use our Flutter wrapper

Kotlin 0.48% Ruby 4.82% Swift 1.38% Objective-C 0.13% Dart 93.20%
android example-project flutter ios mobile mobile-app sdk android-app veryfi android-lens

veryfi-lens-flutter-demo's Introduction

License: MIT

Veryfi Lens Flutter

Veryfi Lens is code (a framework) with UI for your mobile app to give it document capture superpowers in minutes.

Let Veryfi handle the complexities of frame processing, asset preprocessing, edge routing, and machine vision challenges in document capture. We have been at this for a long time and understand the intricate nature of mobile capture. That’s why we built Lens. Veryfi Lens is built by developers for developers; making the whole process of integrating Lens into your app fast and easy with as few lines as possible.

Veryfi Lens is a Framework: a self-contained, reusable chunks of code and resources you can import into you app.

Lens is built in native code and optimized for fast performance, clean user experience and low memory usage.

You can read further about Lens in Veryfi's dedicated page: https://www.veryfi.com/lens/

You can watch our video: Veryfi Lens

Table of content

  1. Configuration
  2. iOS Localization
  3. Other platforms
  4. Get in contact with our team

Configuration

  • Go to Lens: Maven (Android) section and generate your access credentials here.
  • Add your Maven credentials to your system environment. Replace [USERNAME] and [PASSWORD] with the credentials that were set up in the previous step.
export MAVEN_VERYFI_USERNAME=[USERNAME]
export MAVEN_VERYFI_PASSWORD=[PASSWORD]
  • Clone this repository

  • Go to Lens: Flutter (iOS + Android) section and generate your access credentials here.

  • Go pubspec.yml and go to the veryfi on the dependencies section:

  • Find the line https://[USERNAME]:[PASSWORD]@repo.veryfi.com/shared/lens/flutter-plugin-veryfi-lens.git

  • Replace [USERNAME] and [PASSWORD] with the credentials that were set up in the previous step.

  • Fetch the dependencies using your IDE or run flutter pub get

  • Note: The wrapper supports the following Flutter SDK versions:

flutter: ">=3.19.3"
  • Replace credentials in main.dart with yours
Map<String, dynamic> credentials = {
  'clientId': 'XXXX', //Replace with your clientId
  'userName': 'XXXX', //Replace with your username
  'apiKey': 'XXXX', //Replace with your apiKey
  'url': 'XXXX' //Replace with your url
};

We are using flutter_dotenv, that means that you need to create a [.env] file in the root of your flutter project if you want keep safe your credentials in your personal project, if not, please remove the next declaration inside the [pubspec.yml].

# To add assets to your application, add an assets section, like this:
  assets:
    - .env

iOS Localization (Optional)

  • In order to be able to enable iOS Lens native localization you need to enable a supported language on the project file: Step 1

  • Generate localization files for the desired language (for example in storyboard): Step 2

  • At the end you should have at least 1 file localized for each language that you want to enable localization, see example: Step 3

Other platforms

We also support the following wrappers for native and hybrid frameworks:

If you don't have access to our Hub, please contact our sales team, you can find the contact bellow.

Get in contact with our sales team

Contact [email protected] to learn more about Veryfi's awesome products.

veryfi-lens-flutter-demo's People

Contributors

alejocram avatar alejouribesanchez avatar beresmo avatar decim92 avatar seramirezdev avatar sevasvalveryfi avatar sgiraldog avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

veryfi-lens-flutter-demo's Issues

Flutter build issue

Swift Compiler Error (Xcode): Compiling for iOS 12.0, but module 'AWSCore' has a minimum deployment target of iOS 14.0: /Users/aaanand/airmiles_flutter_workspace/apps/airmiles_flutter/build/ios/Debug-iphonesimulator/AWSCore/AWSCore.framework/Modules/AWSCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

Swift Compiler Error (Xcode): Failed to build module 'VeryfiLens'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)', while this compiler is 'Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)'). Please select a toolchain which matches the SDK.
/Users/aaanand/.pub-cache/git/flutter-plugin-veryfi-lens-fa34a6f1a860838ab5f96702fce1440de4f0a563/ios/Classes/SwiftVeryfiPlugin.swift:9:7

verfi lens git url not working

Hello,

Describe the bug

Unfortunately, despite testing the verfi-lens-flutter-demo, we were unsuccessful in firing the pub get command on the terminal.
Let me provide you some information. We updated the username and password to the git url in the same way as we did for the pubspec. After we cleaned the project and run the pub get command, we encountered the error shown below.

Added veryfi plugin:

Screenshot from 2023-05-05 11-12-48

Screenshot from 2023-05-05 11-08-07

Please check the flutter / dart sdk version

[✓] Flutter (Channel stable, 3.7.10, on Ubuntu 20.04.4 LTS 5.15.0-71-generic, locale en_IN)
• Flutter version 3.7.10 on channel stable at /home/cmr069/snap/flutter/common/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4b12645012 (4 weeks ago), 2023-04-03 17:46:48 -0700
• Engine revision ec975089ac
• Dart version 2.19.6
• DevTools version 2.20.1

if have any solutions for above issue please help us.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.