113 lines
3.7 KiB
Groovy
113 lines
3.7 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
android {
|
|
compileSdkVersion sdk_compile
|
|
buildToolsVersion sdk_tools
|
|
|
|
repositories {
|
|
jcenter()
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
multiDexEnabled true
|
|
applicationId "org.lemiesz.perfometer"
|
|
minSdkVersion 18
|
|
targetSdkVersion sdk_compile
|
|
versionCode 1
|
|
versionName "1.0"
|
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
debug {
|
|
debuggable true
|
|
minifyEnabled false
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
incremental = false
|
|
sourceCompatibility java_version
|
|
targetCompatibility java_version
|
|
}
|
|
configurations.all {
|
|
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
|
|
}
|
|
|
|
packagingOptions {
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/LICENSE.txt'
|
|
exclude 'META-INF/license.txt'
|
|
exclude 'META-INF/NOTICE'
|
|
exclude 'META-INF/NOTICE.txt'
|
|
exclude 'META-INF/notice.txt'
|
|
exclude 'META-INF/ASL2.0'
|
|
exclude 'META-INF/main.kotlin_module'
|
|
}
|
|
|
|
}
|
|
|
|
kotlin {
|
|
|
|
}
|
|
|
|
// Kotlin tests
|
|
afterEvaluate {
|
|
android.sourceSets.all { sourceSet ->
|
|
if (!sourceSet.name.startsWith("androidTest"))
|
|
{
|
|
sourceSet.kotlin.setSrcDirs([])
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "com.android.support:multidex:$multidex"
|
|
implementation "com.android.support:design:$compat_version"
|
|
implementation "com.android.support:appcompat-v7:$compat_version"
|
|
implementation "com.android.support:cardview-v7:$compat_version"
|
|
implementation "com.android.support:recyclerview-v7:$compat_version"
|
|
implementation "com.android.support:support-v13:$compat_version"
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:$unit")
|
|
androidTestImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
|
|
androidTestImplementation "com.android.support:support-annotations:$compat_version"
|
|
androidTestImplementation "com.android.support.test:runner:$test"
|
|
androidTestImplementation "com.android.support.test:rules:$test"
|
|
androidTestImplementation "com.android.support.test.espresso:espresso-contrib:$espresso"
|
|
androidTestImplementation ("com.android.support.test.espresso:espresso-core:$espresso", {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
})
|
|
androidTestImplementation "com.android.support.test.uiautomator:uiautomator-v18:$uiautomator"
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutine"
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutine"
|
|
|
|
//implementation "org.jetbrains.kotlin:kotlin-runtime:$kotlin_version"
|
|
implementation "org.jetbrains.anko:anko-design:$anko_version"
|
|
implementation "org.jetbrains.anko:anko-sdk25:$anko_version"
|
|
|
|
// sdk15, sdk19, sdk21, sdk23 are also available
|
|
implementation "org.jetbrains.anko:anko-cardview-v7:$anko_version"
|
|
implementation "org.jetbrains.anko:anko-commons:$anko_version"
|
|
implementation "org.jetbrains.anko:anko-appcompat-v7-commons:$anko_version"
|
|
implementation project(':aklibvisiblesf7s')
|
|
implementation project(':aklibperfogps')
|
|
implementation project(':aklib')
|
|
implementation project(':klib')
|
|
}
|