DyScan
  • DyScan Integration Guide
  • iOS Integration Guide
  • Android Integration Guide
  • React Native Integration Guide
  • Cordova Integration Guide
  • Integrity Verification
  • Migrating from card.io
    • Migrating from card.io (iOS)
    • Migrating from card.io (Android)
  • Integrating with Stripe
    • Integrating with Stripe (iOS)
    • Integrating with Stripe (Android)
  • Alternate Ways to Integrate iOS
    • Integrating with Swift Package Manager
    • Integrating with Carthage
    • Integrating as a Framework
  • Alternate Ways To Integrate Android
    • Manually Importing the Library
    • Using DyScanView
  • MIGRATING FROM 1.0.X TO 1.1.X
    • Migrating from 1.0.x to 1.1.x (iOS)
    • Migrating from 1.0.x to 1.1.x (Android)
    • Migrating from 1.0.x to 1.1.x (React Native)
Powered by GitBook
On this page

Was this helpful?

  1. Alternate Ways To Integrate Android

Manually Importing the Library

PreviousIntegrating as a FrameworkNextUsing DyScanView

Last updated 10 months ago

Was this helpful?

Using our Nexus repository is the easiest way to integrate DyScan. You can see instructions for this process on the .

After getting the access token for Dyneti's repo access, go to any temporary directory outside your project directory and clone our repository with the following terminal commands:

git clone https://dyscan@github.com/Dyneti/dyscan-android-distribution.git
git checkout master

When asked for a password for user "dyscan", paste the access token that we provided.

Import dyscan.aar file from the cloned repository into Android Studio by going to File -> New -> New Module... and selecting Import .JAR/.AAR Package. On the following page, select the dyscan.aar and leave the subproject name as dyscan, and then finally click finish.

This has created the new subproject, but now you must add the dependencies to your app-level build.gradle file:

dependencies {
    // Other dependencies are here
    implementation project(':dyscan')
    
    // required since version 1.2.0
    implementation 'org.tensorflow:tensorflow-lite:2.4.0'
    
    // required since version 1.5.0
    def camerax_version = "1.2.2"
    implementation "androidx.camera:camera-core:${camerax_version}"
    implementation "androidx.camera:camera-camera2:${camerax_version}"
    implementation "androidx.camera:camera-lifecycle:${camerax_version}"
    implementation "androidx.camera:camera-view:${camerax_version}"
}

You will have to keep track of the library version manually, and when you want to upgrade to a more recent version, you will have to manually download the library and replace it.

Android Integration Guide