Home | History | Annotate | Download | only in Application
      1 apply plugin: 'com.android.application'
      2 apply plugin: 'kotlin-android'
      3 apply plugin: 'kotlin-android-extensions'
      4 
      5 android {
      6     compileSdkVersion rootProject.ext.compileSdkVersion
      7     defaultConfig {
      8         applicationId "com.example.android.cardview"
      9         minSdkVersion rootProject.ext.minSdkVersion
     10         targetSdkVersion rootProject.ext.targetSdkVersion
     11         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
     12         versionCode 1
     13         versionName "1.0"
     14     }
     15     buildTypes {
     16         release {
     17             minifyEnabled false
     18             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
     19         }
     20     }
     21 
     22     sourceSets {
     23         main {
     24             java.srcDirs "src/main/java"
     25             res.srcDirs "src/main/res"
     26         }
     27         androidTest.setRoot('tests')
     28         androidTest.java.srcDirs = ['tests/src']
     29     }
     30 }
     31 
     32 dependencies {
     33     implementation'com.android.support:cardview-v7:27.0.2'
     34     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$rootProject.ext.kotlinVersion"
     35     androidTestImplementation "com.android.support.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
     36 }
     37