Project Setup

Add Accura SDK's to your App

Step 1: Add the JitPack repository

  1. In your root-level (project-level) Gradle file (<project>/build.gradle)

    allprojects {
        repositories {
            ...
            maven {
                url 'https://jitpack.io'
                credentials { username authToken }
            }
        }
    }
  2. Add the token to gradle.properties

    authToken=jp_ssguccab6c5ge2l4jitaj92ek2
    

Step 2: Add dependency

In your module (app-level) Gradle file (usually <project>/<app-module>/build.gradle), add the dependencies for the Accura Products.

dependencies {
    ...
    implementation 'com.github.accurascan:AccuraOCR:5.1.0'
}

Step 3: Required Adanced setup as per requirement

Add some more setup in your module (app-level) Gradle file (usually <project>/<app-module>/build.gradle), for the Accura Products.

  1. Specify CPU architectures as per your Requirement.

    android {
        defaultConfig {
            ...
            ndk {
                // Specify CPU architecture.
                // 'armeabi-v7a' & 'arm64-v8a' are respectively 32 bit and 64 bit device architecture 
                // 'x86' & 'x86_64' are respectively 32 bit and 64 bit emulator architecture
                abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
            }
        }
    }
  2. Add Packaging option for some .so files, for multiple Accura Products

    android {
        ...
        packagingOptions {
            pickFirst 'lib/arm64-v8a/libcrypto.so'
            pickFirst 'lib/arm64-v8a/libssl.so'
    
            pickFirst 'lib/armeabi-v7a/libcrypto.so'
            pickFirst 'lib/armeabi-v7a/libssl.so'
    
            pickFirst 'lib/x86/libcrypto.so'
            pickFirst 'lib/x86/libssl.so'
    
            pickFirst 'lib/x86_64/libcrypto.so'
            pickFirst 'lib/x86_64/libssl.so'
    	}
    	
    }

Note: Add Packaging options are required for multiple Accura Products used in same Project

Last updated