
def DEFAULT_COMPILE_SDK_VERSION = 29
def DEFAULT_BUILD_TOOLS_VERSION = '29.0.3'
def DEFAULT_MIN_SDK_VERSION = 21
def DEFAULT_TARGET_SDK_VERSION = 29

def safeExtGet(prop, fallback) {
    rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

apply plugin: 'com.android.library'
apply plugin: 'maven'

buildscript {
    if (project == rootProject) {
        repositories {
            google()
            jcenter()
             maven {
            allowInsecureProtocol = true
            url "http://ai.xtion.net:9999/repository/maven-releases"
        }
        }
        dependencies {
            classpath("com.android.tools.build:gradle:4.1.0")
        }
    }
}

apply plugin: 'com.android.library'
apply plugin: 'maven'

android {
    compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
    buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
    defaultConfig {
        minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION)
        targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
        versionCode 1
        versionName "1.0"
    }
    lintOptions {
        abortOnError false
    }

}

repositories {
    mavenLocal()
    google()
    jcenter()
     maven {
            allowInsecureProtocol = true
            url "http://ai.xtion.net:9999/repository/maven-releases"
        }
}

dependencies {
    implementation 'com.facebook.react:react-native:0.64.0'  
    implementation fileTree(dir: "libs", include: ["*.aar"])
    implementation 'com.xw.ai:android-camera:1.1.12-RN'
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'com.google.android.material:material:1.1.0'
}

