1 buildscript { 2 repositories { 3 jcenter() 4 } 5 ext.kotlin_version = '1.1.3-2' 6 dependencies { 7 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 8 } 9 } 10 11 apply plugin: 'com.android.application' 12 apply plugin: 'kotlin-android' 13 apply plugin: 'kotlin-android-extensions' 14 15 android { 16 compileSdkVersion 26 17 buildToolsVersion "26.0.2" 18 defaultConfig { 19 applicationId "com.example.android.pictureinpicture" 20 minSdkVersion 26 21 targetSdkVersion 26 22 versionCode 1 23 versionName "1.0" 24 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 25 } 26 buildTypes { 27 release { 28 minifyEnabled false 29 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 30 } 31 } 32 } 33 34 dependencies { 35 compile fileTree(dir: 'libs', include: ['*.jar']) 36 androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 37 exclude group: 'com.android.support', module: 'support-annotations' 38 }) 39 compile 'com.android.support:appcompat-v7:26.1.0' 40 compile 'com.android.support:support-media-compat:26.1.0' 41 42 testCompile 'junit:junit:4.12' 43 compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" 44 } 45