    buildscript {
        repositories {
            jcenter { url "https://jcenter.bintray.com/" }
            maven {url "https://repo.spring.io/plugins-release/"}
            mavenCentral()
            maven {
                url "$rootDir/../node_modules/react-native/android"
            }
            maven {
                url 'https://maven.google.com'
            }
        }

        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.4'
        }
    }

    apply plugin: 'com.android.library'
    apply plugin: 'com.facebook.react'

android {
    compileSdkVersion 30
    buildToolsVersion '30.0.3'

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 24
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    lintOptions {
        disable 'InvalidPackage'
    }
}

def safeExtGet(prop, fallback) {
    rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.facebook.react:react-native:0.69.1'
    implementation "com.google.zxing:core:3.3.0"
    implementation "com.android.support:support-v4:${safeExtGet('supportLibVersion', '30.0.0')}"
    implementation files('libs/com.datecs.api.jar')
}
