SDK Setup

Add the JitPack repository to your root's build.gradle file

Add it in your root build.gradle at the end of repositories.

allprojects {
    repositories {
        ...
        maven {
            url 'https://jitpack.io'
            credentials { username authToken }
        }
    }
}

Add the token to gradle.properties

authToken=jp_45kf9tvkijvd9c7cf34mehj1b6

Add the dependency in App's build.gradle

Set Accura SDK as a dependency to our app/build.gradle file.

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'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
	
}
dependencies {
    ...
    // for Accura OCR
    implementation 'com.github.accurascan:AccuraOCR:7.0.2'
}

Add licence files to project assets folder:

Create "assets" folder under app/src/main and Add license file in to assets folder.
- key.license // for Accura OCR

Last updated