Manually Importing the Library

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

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.

Last updated