2022-03-06 15:22:32 +01:00
|
|
|
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 {
|
2022-03-06 16:24:19 +01:00
|
|
|
def androidVer = androidSdkVersion
|
2022-06-11 15:10:17 +02:00
|
|
|
api files("${properties.getProperty("sdk.dir")}/platforms/android-${androidVer}/android.jar")
|
|
|
|
|
2022-03-06 15:22:32 +01:00
|
|
|
kotlinFixtures(it)
|
|
|
|
testFixturesImplementation testFixtures(project(":core"))
|
|
|
|
testFixturesImplementation files("${properties.getProperty("sdk.dir")}/platforms/android-${androidVer}/android.jar")
|
|
|
|
}
|