apply plugin: 'com.android.library'

def DEFAULT_COMPILE_SDK_VERSION             = 27
def DEFAULT_BUILD_TOOLS_VERSION             = "27.0.3"
def DEFAULT_TARGET_SDK_VERSION              = 27
def DEFAULT_CONSTRAINT_LAYOUT_VERSION		= "1.0.2"

android {
    compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
    buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION

	defaultConfig {
		minSdkVersion 19
        targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
		versionCode 1
		versionName "1.0"
	}
}

repositories {
	mavenCentral()
	flatDir {
		dirs 'libs'
	}
}

dependencies {

    def constraintLayoutVersion = project.hasProperty('constraintLayoutVersion') ? project.constraintLayoutVersion : DEFAULT_CONSTRAINT_LAYOUT_VERSION

	//compile fileTree(include: ['*.jar'], dir: 'libs')
	implementation project(':wikitudesdk')
    implementation 'com.facebook.react:react-native:+'
    implementation 'com.android.support.constraint:constraint-layout:' + constraintLayoutVersion
}