apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
    compileSdkVersion 30
    buildToolsVersion '30.0.3'

    defaultConfig {
        minSdkVersion 21
        targetSdkVersion 30

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        consumerProguardFiles 'consumer-rules.pro'
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    testOptions {
        unitTests.includeAndroidResources = true
    }

    lintOptions {
        enable "Interoperability"
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_1_8.toString()
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation project(":scan-framework")
    implementation project(':scan-camera')

    implementation "androidx.appcompat:appcompat:[1.3.0,1.3.1]"
    implementation "androidx.camera:camera-camera2:[1.0.0,1.0.1]"
    implementation "androidx.camera:camera-core:[1.0.0,1.0.1]"
    implementation "androidx.camera:camera-lifecycle:[1.0.0,1.0.1]"
    implementation "androidx.camera:camera-view:[1.0.0-alpha26,1.0.0-alpha28)"
    implementation "androidx.core:core-ktx:[1.3.1,1.6.0]"
}

dependencies {
    testImplementation "androidx.test:core:1.4.0"
    testImplementation "androidx.test:runner:1.4.0"
    testImplementation "junit:junit:4.13.2"
    testImplementation "org.jetbrains.kotlin:kotlin-test:1.5.30"
}

dependencies {
    androidTestImplementation "androidx.test.ext:junit:1.1.3"
    androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
    androidTestImplementation "org.jetbrains.kotlin:kotlin-test:1.5.30"
}

apply from: 'deploy.gradle'
