apply plugin: 'com.android.library'

buildscript {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        maven { url 'https://jitpack.io' }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:4.2.1'
    }
}


android {
    compileSdkVersion 31
    buildToolsVersion '30.0.2'

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 31
        versionCode 1
        versionName "1.0"
        vectorDrawables.useSupportLibrary = true
    }
    lintOptions {
        abortOnError false
    }
}


dependencies {
    implementation 'com.facebook.react:react-native:+' // From node_modules
      // libs
    implementation fileTree(dir: 'libs', include: [ 'vnidreader-library-1.0.1.aar'])
    // dependencies
    implementation group: 'org.slf4j', name: 'slf4j-android', version: '1.7.28'
    implementation group: 'commons-io', name: 'commons-io', version: '20030203.000550'
    implementation 'com.github.mhshams:jnbis:1.1.0'
    implementation 'com.gemalto.jp2:jp2-android:1.0.3'
    implementation 'com.rmtheis:tess-two:9.0.0'
    implementation 'com.google.code.gson:gson:2.8.7'
    implementation 'com.otaliastudios:cameraview:2.7.2'
    implementation 'com.google.android.gms:play-services-mlkit-text-recognition:18.0.2'
//    implementation 'com.github.yuriy-budiyev:code-scanner:2.3.2'
    // Other Deps (mentioned in docs - not needed)x
    /*
    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
    implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.0'
    */

    // Other Deps (not mentioned in docs)
    implementation 'com.google.android.flexbox:flexbox:3.0.0'
    implementation 'com.google.code.gson:gson:2.8.1'
    implementation 'com.google.crypto.tink:tink-android:1.5.0'
    implementation 'com.github.bumptech.glide:glide:4.12.0'
}
