Skip to content

Instantly share code, notes, and snippets.

@mikkipastel
Created September 28, 2017 06:35
Show Gist options
  • Save mikkipastel/aac5f68a18f13d8438ba43ffca4b7495 to your computer and use it in GitHub Desktop.
Save mikkipastel/aac5f68a18f13d8438ba43ffca4b7495 to your computer and use it in GitHub Desktop.
build.gradle of feature module for instant app
apply plugin: 'com.android.feature'
android {
buildToolsVersion '26.0.0'
compileSdkVersion 26
dataBinding {
enabled = true
}
defaultConfig {
minSdkVersion 23
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled false
}
}
packagingOptions {
exclude 'LICENSE.txt'
}
baseFeature = true
}
ext {
supportLibVersion = "26.0.0"
espressoVersion = "3.0.1"
androidTestVersion = "0.5"
hamcrestVersion = "1.3"
junitVersion = "4.12"
}
dependencies {
api 'com.android.support:appcompat-v7:26.0.0'
compile "com.android.support:appcompat-v7:${supportLibVersion}"
compile "com.android.support:cardview-v7:${supportLibVersion}"
compile "com.android.support:design:${supportLibVersion}"
compile "com.android.support:recyclerview-v7:${supportLibVersion}"
compile "com.android.support.test.espresso:espresso-idling-resource:${espressoVersion}"
testCompile "junit:junit:${junitVersion}"
androidTestCompile("com.android.support.test.espresso:espresso-core:${espressoVersion}") {
exclude module: "espresso-idling-resource"
exclude group: "com.android.support"
}
androidTestCompile("com.android.support.test.espresso:espresso-contrib:${espressoVersion}") {
exclude module: "espresso-core"
exclude module: "recyclerview-v7"
exclude group: "com.android.support"
}
androidTestCompile("com.android.support.test:rules:${androidTestVersion}") {
exclude group: "com.android.support"
}
androidTestCompile("com.android.support.test:runner:${androidTestVersion}") {
exclude group: "com.android.support"
}
androidTestCompile "org.hamcrest:hamcrest-core:${hamcrestVersion}"
feature project(":ui")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment