36 lines
1.3 KiB
Groovy
36 lines
1.3 KiB
Groovy
apply plugin: 'com.android.library'
|
|
apply plugin: 'com.novoda.bintray-release'
|
|
|
|
android {
|
|
compileSdkVersion rootProject.ext.android.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
targetSdkVersion rootProject.ext.android.targetSdkVersion
|
|
minSdkVersion rootProject.ext.android.minSdkVersion
|
|
versionCode Integer.valueOf(VERSION_CODE)
|
|
versionName getValueFromRootProperties("${project.name.replace("-", "_").toUpperCase()}_VERSION")
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation rootProject.ext.dependencies.androidxappcompat
|
|
implementation rootProject.ext.dependencies.androidxrecyclerview
|
|
testImplementation 'org.robolectric:robolectric:3.0'
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation 'org.mockito:mockito-core:2.13.0'
|
|
testImplementation 'org.hamcrest:hamcrest-library:1.3'
|
|
androidTestImplementation 'org.hamcrest:hamcrest-library:1.3'
|
|
}
|
|
apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString()
|
|
|
|
//publish {
|
|
// artifactId = 'discrete-scrollview'
|
|
// userOrg = rootProject.userOrg
|
|
// groupId = rootProject.groupId
|
|
// uploadName = rootProject.uploadName
|
|
// publishVersion = rootProject.publishVersion
|
|
// description = rootProject.description
|
|
// licences = rootProject.licences
|
|
//} |