Skip to content

Instantly share code, notes, and snippets.

@krzysztofbalana
Created April 1, 2017 09:00
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
test.java.srcDirs += 'src/test/kotlin'
androidTest.java.srcDirs += 'src/androidTest/kotlin'
}
}
dependencies {
def commonDependencies = rootProject.ext.commonDependencies
def dataDependencies = rootProject.ext.dataDependencies
def testDependencies = rootProject.ext.testDependencies
compile project(path: ':domain')
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.2.0'
compile dataDependencies.dagger
kapt dataDependencies.daggerCompiler
compile commonDependencies.kotlin
provided commonDependencies.javaAnnotations
testCompile 'junit:junit:4.12'
testCompile commonDependencies.kotlin
testCompile testDependencies.kjunit
testCompile 'com.nhaarman:mockito-kotlin:1.1.0'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment