// Top-level build file where you can add configuration options common to all sub-projects/modules.
def safeExtGet(prop, fallback) {
    rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

apply plugin: 'com.android.library'

android {
    compileSdkVersion safeExtGet('compileSdkVersion', 28)
    buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
    defaultConfig {
        minSdkVersion safeExtGet('minSdkVersion', 16)
        targetSdkVersion safeExtGet('targetSdkVersion', 28)
    }
}

dependencies {
    implementation project(':openCVLibrary310')
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.facebook.react:react-native:+'
    implementation 'com.google.zxing:core:3.0.1'
    implementation 'org.piwik.sdk:piwik-sdk:0.0.4'
    implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
    implementation 'us.feras.mdv:markdownview:1.1.0'
}