mirror of
https://github.com/ouchadam/small-talk.git
synced 2024-12-26 09:32:41 +01:00
19 lines
603 B
Groovy
19 lines
603 B
Groovy
plugins {
|
|
id 'kotlin'
|
|
id 'java-test-fixtures'
|
|
}
|
|
|
|
def properties = new Properties()
|
|
def localProperties = rootProject.file("local.properties")
|
|
if (localProperties.exists()) {
|
|
properties.load(rootProject.file("local.properties").newDataInputStream())
|
|
} else {
|
|
properties.setProperty("sdk.dir", System.getenv("ANDROID_HOME"))
|
|
}
|
|
|
|
dependencies {
|
|
def androidVer = androidSdkVersion
|
|
kotlinFixtures(it)
|
|
testFixturesImplementation testFixtures(project(":core"))
|
|
testFixturesImplementation files("${properties.getProperty("sdk.dir")}/platforms/android-${androidVer}/android.jar")
|
|
} |