plugins {
	id 'com.android.library'
	id 'kotlin-android'
	id 'kotlin-android-extensions'
	id 'com.novoda.bintray-release'
}

publish {
	bintrayUser = rootProject.ext.publish_user_org
	bintrayKey = rootProject.ext.publish_bintray_key
	uploadName = rootProject.ext.arcsoft2x_package_name
	userOrg = rootProject.ext.publish_user_org
	groupId = rootProject.ext.publish_group_id
	artifactId = rootProject.ext.arcsoft2x_artifact_id
	publishVersion = rootProject.ext.arcsoft2x_version_name
	desc = rootProject.ext.arcsoft2x_artifact_id
	website = rootProject.ext.website + rootProject.ext.arcsoft2x_artifact_id
	dryRun = false
}

android {
	compileSdkVersion rootProject.ext.compile_sdk_version
	defaultConfig {
		minSdkVersion rootProject.ext.min_sdk_version
		versionCode rootProject.ext.arcsoft2x_version_code
		versionName rootProject.ext.arcsoft2x_version_name
	}
	compileOptions {
		sourceCompatibility rootProject.ext.java_version
		targetCompatibility rootProject.ext.java_version
	}
	sourceSets {
		main.java.srcDirs += 'src/main/kotlin'
	}
}

dependencies {
	compileOnly fileTree(dir: 'libs', include: ['*.jar'])
	//https://www.kotlincn.net/docs/reference/using-gradle.html
	implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
	implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
	//https://maven.google.com
	compileOnly "androidx.annotation:annotation:$androidx_annotation_version"
}
